nRF Connect SDK Bare Metal API 2.0.99
Loading...
Searching...
No Matches

◆ ble_hids_outp_rep_get()

uint32_t ble_hids_outp_rep_get ( struct ble_hids * hids,
uint8_t report_index,
uint16_t len,
uint8_t offset,
uint16_t conn_handle,
uint8_t * outp_rep )

#include <ble_hids.h>

Function for getting the current value of Output Report from the stack.

Fetches the current value of the output report characteristic from the stack.

Parameters
[in]hidsHID Service structure.
[in]report_indexIndex of the characteristic (corresponding to the index in struct ble_hids.outp_rep_array as passed to ble_hids_init()).
[in]lenLength of output report needed.
[in]offsetOffset in bytes to read from.
[in]conn_handleConnection handle.
[out]outp_repOutput report buffer.
Return values
NRF_SUCCESSOn success.
NRF_ERROR_NULLIf hids or outp_rep are NULL.
NRF_ERROR_NOT_FOUNDUnknown connection handle.
NRF_ERROR_INVALID_PARAMReport index rep_index is invalid.
NRF_ERROR_DATA_SIZEThe operation exceeds the maximum characteristic length.