BLE_HOGPS_SetKeyboardOutputReport
C
uint16_t BLE_HOGPS_SetKeyboardOutputReport(uint8_t ledValue);
Description
Sets the HID keyboard output report.
Note
This function updates the LED status indicators for a HID keyboard, such as Num Lock, Caps Lock, and Scroll Lock LEDs. The state of each LED is represented by individual bits within the provided 'ledValue' parameter.
Parameters
Parameter | Description |
---|---|
[in] ledValue | A 8-bit value where each bit corresponds to an LED on the keyboard: |
- Bit 0: Num Lock LED\n - Bit 1: Caps Lock LED - Bit 2: Scroll Lock LED - Bit 3: Compose LED - Bit 4: Kana LED The remaining bits (5-7) are reserved and should be set to 0.|
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | The output report was successfully set. |
MBA_RES_INVALID_PARA | The input parameters are invalid. |