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

ParameterDescription
[in] p_keyCodeArrayAn 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 valueDescription
MBA_RES_SUCCESSThe input report was successfully set.
MBA_RES_INVALID_PARAThe input parameters are invalid.