BLE_HOGPS_SendBootKeyboardInputReport
C
uint16_t BLE_HOGPS_SendBootKeyboardInputReport(uint16_t connHandle, uint8_t *p_keyCodeArray);
Description
Sends a HID boot keyboard input report.
Note
This function transmits a keyboard input report in the boot protocol mode. The report consists of an array of key codes that represent the keys currently pressed. The first byte of the array indicates modifier keys (such as Shift, Ctrl, etc.), followed by a reserved byte, and then up to six key codes representing the keys being pressed simultaneously.
Parameters
Parameter | Description |
---|---|
[in] connHandle | The connection handle associated with the connection. |
[in] p_keyCodeArray | A pointer to an 8-byte array containing the key report. The array is structured as follows: |
- Byte 0: Modifier keys bit mask - Byte 1: Reserved (typically 0x00) - Bytes 2-7: Key codes (up to 6 keys)|
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | The input report was sent successfully. |
MBA_RES_OOM | Internal memory allocation failure. |
MBA_RES_INVALID_PARA | The parameters provided are invalid. |