37 #define HID_INFO_CONTROL_POINT 0 38 #define HID_INFO_PROTOCOL_MODE 1 45 #define HID_KEYBOARD_BOOT_ID 0xFF 46 #define HID_MOUSE_BOOT_ID 0xFE uint8_t dmConnId_t
Connection identifier.
uint8_t reportIdMapSize
The number of Reports in the ID map (pReportIdMap)
void(* hidOutputReportCback_t)(dmConnId_t connId, uint8_t id, uint16_t len, uint8_t *pReport)
This callback function sends a received Output Report to the application.
void(* hidFeatureReportCback_t)(dmConnId_t connId, uint8_t id, uint16_t len, uint8_t *pReport)
This callback function sends a received Feature Report to the application.
hidFeatureReportCback_t featureCback
Callback called on receipt of a Feature Report.
uint8_t HidGetControlPoint(void)
Gets the HID control point value.
void HidInit(const hidConfig_t *pConfig)
Initialize the HID profile.
void HidSetProtocolMode(uint8_t protocolMode)
Sets the HID protocol mode for keyboard and mouse devices that support Boot Mode. ...
HID Report Type/ID to Attribute handle map item.
hidOutputReportCback_t outputCback
Callback called on receipt of an Output Report.
hidReportIdMap_t * pReportIdMap
A map between report Type/ID and Attribute handle.
void(* hidInfoCback_t)(dmConnId_t connId, uint8_t type, uint8_t value)
This callback function notifies the application of a change in the protocol mode or control point fro...
void HidSendInputReport(dmConnId_t connId, uint8_t reportId, uint16_t len, uint8_t *pValue)
Sends an input report to the host.
uint8_t HidGetProtocolMode(void)
Gets the HID protocol mode value.
hidInfoCback_t infoCback
Callback called on receipt of protocol mode or control point.
unsigned short uint16_t
Unsigned 16-bit value.
HID Profile Configuration.
unsigned char uint8_t
Unsigned 8-bit value.
uint8_t HidAttsWriteCback(dmConnId_t connId, uint16_t handle, uint8_t operation, uint16_t offset, uint16_t len, uint8_t *pValue, attsAttr_t *pAttr)
Called on an ATTS Write to the HID Service.