Definitions and prototypes for the HIDS interface. More...
Modules | |
Defines | |
Enumerations | |
Typedefs | |
Functions | |
Definitions and prototypes for the HIDS interface.
The HID Service exposes data and associated formatting for HID Devices and HID Hosts. This module implements the HID Service with HID Information characteristic, HID Control Point characteristic, Report Map characteristic, Input/Output/Feature Report characteristics, Boot Keyboard Input characteristic, Boot Keyboard Output characteristic, Boot Mouse Input Report characteristic.
After hids_init_t variable is initialized, the application must call hids_service_init() to add the HID Service and the characteristics to the BLE Stack database. However the array of Report map locates in user space, application must make sure the array is available.
If Notify is enabled, the value of Input Report characteristic is sent to the peer when application calls hids_input_rep_send() function. The application is reponsible for encoding Input Report data as “USB HID Spec”. If an event hanlder is provided by the application, HID Service will pass HIDS events to the application, e.g. Output Report characteristic is written.