38 #ifndef NRF_MESH_PROV_BEARER_H__ 39 #define NRF_MESH_PROV_BEARER_H__ 82 typedef uint32_t (*
prov_bearer_if_tx_t)(prov_bearer_t * p_bearer,
const uint8_t * p_data, uint16_t length);
96 uint32_t link_timeout_us);
116 const uint8_t * p_uuid,
117 uint32_t link_timeout_us);
163 const uint8_t * p_data,
207 #define NRF_MESH_PROV_BEARER_COUNT (3) uint32_t(* prov_bearer_if_listen_stop_t)(prov_bearer_t *p_bearer)
Function used to stop listening for incoming provisioning links.
prov_bearer_if_listen_start_t listen_start
Function to start listening for incoming provisioning links.
Mesh-based provisioning bearer.
prov_bearer_cb_rx_t rx
The callback function for passing up all the incoming packets except the control packets.
GATT-based provisioning bearer, PB-GATT.
The link was closed beacuse of an error.
const prov_bearer_callbacks_t * p_callbacks
Provisioning bearer callbacks.
void(* prov_bearer_cb_rx_t)(prov_bearer_t *p_bearer, const uint8_t *p_data, uint16_t length)
Callback function type used when a provisioning packet has been received.
prov_bearer_if_link_open_t link_open
Function for opening a provisioning link.
const prov_bearer_interface_t * p_interface
Provisioning bearer interface.
prov_bearer_if_tx_t tx
Function for transmitting packets.
nrf_mesh_prov_link_close_reason_t
Reason for why a provisioning link was closed.
Advertising-based provisioning bearer, PB-ADV.
prov_bearer_if_link_close_t link_close
Function for closing a provisioning link.
void(* prov_bearer_cb_link_closed_t)(prov_bearer_t *p_bearer, nrf_mesh_prov_link_close_reason_t reason)
Callback function type used when a provisioning link has been closed.
The link timed out and was closed.
void(* prov_bearer_cb_link_opened_t)(prov_bearer_t *p_bearer)
Callback function type used when a provisioning link has been opened.
void(* prov_bearer_cb_ack_t)(prov_bearer_t *p_bearer)
Callback function type used when the previous provisioning packet has been acknowledged.
prov_bearer_if_listen_stop_t listen_stop
Function to stop listening for incoming provisioning links.
Struct defining the bearer callback functions.
The highest known link close reason, values higher are unrecognized.
The link was closed because provisioning was completed successfully.
void * p_parent
Pointer to the parent context structure.
Struct used to provide an interface to provisioning bearers.
prov_bearer_cb_link_opened_t opened
The callback function for notifying the users that a link has been opened.
list_node_t node
Linked-list node parameter.
uint32_t(* prov_bearer_if_tx_t)(prov_bearer_t *p_bearer, const uint8_t *p_data, uint16_t length)
Function used for transmitting a provisioning packet.
Provisioning bearer context.
nrf_mesh_prov_bearer_type_t bearer_type
Bearer type.
uint32_t(* prov_bearer_if_link_open_t)(prov_bearer_t *p_bearer, const uint8_t *p_uuid, uint32_t link_timeout_us)
Function used for opening a new provisioning link.
nrf_mesh_prov_bearer_type_t
Provisioning bearer types.
prov_bearer_cb_ack_t ack
The callback function for passing up all the incoming acknowledgments.
prov_bearer_cb_link_closed_t closed
The callback function for notifying the users that a link has been closed.
uint32_t(* prov_bearer_if_listen_start_t)(prov_bearer_t *p_bearer, const char *p_uri, uint16_t oob_info, uint32_t link_timeout_us)
Function used to start listening for incoming provisioning links.
void(* prov_bearer_if_link_close_t)(prov_bearer_t *p_bearer, nrf_mesh_prov_link_close_reason_t close_reason)
Function used for closing a provisioning link.