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
| Parameter | Description |
|---|---|
| [in] p_keyCodeArray | An 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 value | Description |
|---|---|
| MBA_RES_SUCCESS | The input report was successfully set. |
| MBA_RES_INVALID_PARA | The input parameters are invalid. |
