SWRA770 august 2023 CC2564C
The following function is responsible for sending a SET_PROTOCOL Transaction to the remote HID Device. This function returns a zero on successful execution and a negative value on all errors.
SetProtocolRequest needs one parameter which is Protocol, 0= ptReport and 1=ptBoot.
HID_Set_Protocol_Request(BluetoothStackID, HIDID, (HID_Protocol_Type_t)TempParam->Params[0].intParam)
int BTPSAPI HID_Set_Protocol_Request(unsigned int BluetoothStackID, unsigned int HIDID, HID_Protocol_Type_t Protocol)
The following function is responsible for sending a SET_PROTOCOL transaction to the remote HID Device. This function accepts the Bluetooth Stack ID of the Bluetooth Stack which is to send the request and the HID ID for which the connection has been established. The last parameter is the protocol to be set. This function returns a zero if successful or a negative return error code if there was an error.