OpenSourceSimWheelESP32
Open-source wireless steering wheel/button box for ESP32 boards
Loading...
Searching...
No Matches
HidService Class Reference

HID service. More...

#include <InternalServices.hpp>

Public Member Functions

virtual void getCustomHardwareID (uint16_t &customVID, uint16_t &customPID)
 Get the user-defined custom hardware ID.
 
virtual void setCustomHardwareID (uint16_t customVID, uint16_t customPID, bool save=true)
 Set the user-defiend custom hardware ID.
 

Additional Inherited Members

- Static Public Member Functions inherited from DependencyManager< HidService >
static HidServicecall ()
 Get the service provider implementing the service.
 
static void inject (_Args &&...__args)
 Inject a service provider.
 
static void inject (HidService *provider)
 Inject a service provider.
 
static void reset ()
 Remove the injected service provider (for testing)
 

Detailed Description

HID service.

Definition at line 568 of file InternalServices.hpp.

Member Function Documentation

◆ getCustomHardwareID()

virtual void HidService::getCustomHardwareID ( uint16_t & customVID,
uint16_t & customPID )
inlinevirtual

Get the user-defined custom hardware ID.

Parameters
[out]customVIDCustom VID or zero if not configured
[out]customPIDCustom PID or zero if not configured

Definition at line 577 of file InternalServices.hpp.

◆ setCustomHardwareID()

virtual void HidService::setCustomHardwareID ( uint16_t customVID,
uint16_t customPID,
bool save = true )
inlinevirtual

Set the user-defiend custom hardware ID.

Note
if both customVID and customPID are set to zero, the factory defaults will be used instead.
Parameters
customVIDCustom VID
customPIDCustom PID
saveTrue to save to persistent storage

Definition at line 592 of file InternalServices.hpp.


The documentation for this class was generated from the following file: