nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
config_channel_transport.h File Reference
#include "config_event.h"

Go to the source code of this file.

Data Structures

struct  config_channel_transport
 Configuration channel transport. More...
 

Enumerations

enum  config_channel_transport_state { CONFIG_CHANNEL_TRANSPORT_DISABLED , CONFIG_CHANNEL_TRANSPORT_IDLE , CONFIG_CHANNEL_TRANSPORT_WAIT_RSP , CONFIG_CHANNEL_TRANSPORT_RSP_READY }
 Config channel transport states. More...
 

Functions

int config_channel_report_parse (const uint8_t *buffer, size_t length, struct config_event *event)
 Parse the configuration channel report.
 
int config_channel_report_fill (uint8_t *buffer, const size_t length, const struct config_event *event)
 Fill the configuration channel report with values from a provided event.
 
void config_channel_transport_init (struct config_channel_transport *transport)
 Initialize the configuration channel transport instance.
 
int config_channel_transport_get (struct config_channel_transport *transport, uint8_t *buffer, size_t length)
 Handle a get operation on the configuration channel.
 
int config_channel_transport_set (struct config_channel_transport *transport, const uint8_t *buffer, size_t length)
 Handle a set operation on the configuration channel.
 
int config_channel_transport_get_disabled (uint8_t *buffer, size_t length)
 Handle a get operation and inform that the transport is disabled.
 
bool config_channel_transport_rsp_receive (struct config_channel_transport *transport, struct config_event *event)
 Handle the response received from higher layer.
 
void config_channel_transport_disconnect (struct config_channel_transport *transport)
 Handle the configuration channel transport disconnection.