BLE_HOGPS_SetBootKeyboardInputReport
C
uint16_t BLE_HOGPS_SetBootKeyboardInputReport(uint8_t *p_keyCodeArray);
Description
Sets the HID boot keyboard input report.
Note
This function updates the input report for a boot keyboard with the specified key codes. The input report format follows the standard boot protocol layout.
Parameters
Parameter | Description |
---|---|
[in] p_keyCodeArray | An array representing the keyboard report. The array is expected to be 8 bytes in length, with the following structure: |
- Byte 0: Modifier keys (e.g., Shift, Ctrl) - Byte 1: Reserved (typically 0x00) - Bytes 2 to 7: Key codes 1 to 6, representing keys pressed|
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | The input report was successfully set. |
MBA_RES_INVALID_PARA | The input parameters are invalid. |