nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ config_channel_report_fill()

int config_channel_report_fill ( uint8_t *  buffer,
const size_t  length,
const struct config_event event 
)

#include <applications/nrf_desktop/src/util/config_channel_transport.h>

Fill the configuration channel report with values from a provided event.

Parameters
bufferPointer to the report buffer to be filled.
lengthLength of the buffer.
eventPointer to an event with values to be copied to the buffer.
Returns
Number of written bytes if the operation was successful. Otherwise, a negative error code is returned.