mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-04 16:53:48 -04:00
htc: implement complete usb driver
This commit is contained in:
parent
c878123274
commit
c59388caf1
15 changed files with 933 additions and 5 deletions
|
@ -73,5 +73,12 @@ namespace ams::htclow::ctrl {
|
|||
);
|
||||
}
|
||||
|
||||
void HtcctrlService::SetDriverType(impl::DriverType driver_type) {
|
||||
/* Lock ourselves. */
|
||||
std::scoped_lock lk(m_mutex);
|
||||
|
||||
/* Update our beacon response. */
|
||||
this->UpdateBeaconResponse(this->GetConnectionType(driver_type));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -57,6 +57,8 @@ namespace ams::htclow::ctrl {
|
|||
void UpdateBeaconResponse(const char *connection);
|
||||
public:
|
||||
HtcctrlService(HtcctrlPacketFactory *pf, HtcctrlStateMachine *sm, mux::Mux *mux);
|
||||
|
||||
void SetDriverType(impl::DriverType driver_type);
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue