BLE_HOGPS_SetKeyboardInputReport

C

uint16_t BLE_HOGPS_SetKeyboardInputReport(uint8_t *p_keyCodeArray);

Description

Sets HID keyboard input report.

Note

This function prepares the input report for a keyboard device in the Human Interface Device (HID) profile. The report includes modifier keys, reserved byte, and up to six keycodes representing the keys that are pressed.

Parameters

ParameterDescription
[in] p_keyCodeArrayAn array of 8 bytes representing the keyboard report. The array is structured as follows:

- Byte 0: Modifier keys (e.g., Shift, Ctrl) - Byte 1: Reserved (typically 0x00) - Bytes 2 to 7: Keycodes 1 to 6, indicating keys that are currently pressed|

Return values

Return valueDescription
MBA_RES_SUCCESSThe input report was successfully set.
MBA_RES_INVALID_PARAThe input parameters are invalid.