![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| 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.
| [in] | hids | HID Service structure. |
| [in] | report_index | Index of the characteristic (corresponding to the index in struct ble_hids.outp_rep_array as passed to ble_hids_init()). |
| [in] | len | Length of output report needed. |
| [in] | offset | Offset in bytes to read from. |
| [in] | conn_handle | Connection handle. |
| [out] | outp_rep | Output report buffer. |
| NRF_SUCCESS | On success. |
| NRF_ERROR_NULL | If hids or outp_rep are NULL. |
| NRF_ERROR_NOT_FOUND | Unknown connection handle. |
| NRF_ERROR_INVALID_PARAM | Report index rep_index is invalid. |
| NRF_ERROR_DATA_SIZE | The operation exceeds the maximum characteristic length. |