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

ParameterDescription
[in] connHandleThe connection handle associated with the connection.
[in] p_keyCodeArrayA 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 valueDescription
MBA_RES_SUCCESSThe input report was sent successfully.
MBA_RES_OOMInternal memory allocation failure.
MBA_RES_INVALID_PARAThe parameters provided are invalid.