Exported Functions
- group Mesh_Bearer_Exported_Functions
Functions
-
void bearer_other_reg(pf_bearer_other_send_t send)
reg the send api of the other bearer
The other bearer extends the mesh network.
- 参数:
send – [in] send api
- 返回:
none
-
void bearer_other_receive(bearer_pkt_type_t pkt_type, uint8_t *pbuffer, uint16_t len)
receive from the other bearer
The other bearer extends the mesh network.
- 参数:
pkt_type – [in] packet type
pbuffer – [in] packet
len – [in] packet length
- 返回:
none
-
void bearer_loopback_receive(uint8_t *pbuffer, uint16_t len)
receive from the loopback bearer
- 参数:
pbuffer – [in] packet
len – [in] packet length
- 返回:
none
-
void bearer_adv_receive(gap_sched_adv_report_type_t adv_report_type, uint8_t bt_addr[6], uint8_t addr_type, int8_t rssi, uint8_t *pbuffer, uint16_t len)
receive from the adv bearer
- 参数:
adv_report_type – [in] packet type
bt_addr – [in] packet
addr_type – [in] packet length
rssi – [in] rssi
pbuffer – [in] packet
len – [in] packet length
- 返回:
none
-
bool bearer_adv_get(void)
get the state of the adv bearer
The adv bearer is default on after initialization in mesh_init.
- 返回值:
true – on
false – off
- 返回:
the adv bearer state
-
void bearer_adv_set(bool on_off)
open or close the adv bearer
- 参数:
on_off – [in] the adv bearer state
- 返回:
none
-
bool bearer_support_check(bearer_field_t bearer)
check bearer support or not
- 参数:
bearer – [in] bearer field
- 返回:
true
- 返回:
false
-
void bearer_send(bearer_pkt_type_t pkt_type, uint8_t *pbuffer, uint16_t data_len)
send to the bearer layer
- 参数:
pkt_type – [in] packet type
pbuffer – [in] packet
len – [in] packet length
- 返回:
none
-
void bearer_send_mesh_msg(bearer_mesh_pkt_type_t pkt_type, mesh_msg_p pmesh_msg)
send mesh msg to the bearer layer
- 参数:
pkt_type – [in] packet type
pmesh_msg – [in] mesh msg
- 返回:
none
-
void bearer_init(void)
initialize the bearer
- 返回:
none
-
void bearer_other_reg(pf_bearer_other_send_t send)