53 static inline bool wireless_is_ack_required(mesh_packet_t *pkt) {
54 return mesh_is_ack_required(pkt);
58 static inline bool wireless_send(uint8_t dst_addr,
mesh_protocol_t protocol,
const void *data, uint8_t
len, uint8_t max_hops) {
59 return mesh_send(dst_addr, protocol, data, len, max_hops);
63 static inline bool wireless_send_formed_pkt(mesh_packet_t *pkt) {
68 #define wireless_form_pkt(pkt, dst, protocol, max_hops, num_ptrs, args...)\ 69 mesh_form_pkt(pkt, dst, protocol, max_hops, num_ptrs, args) 72 #define wireless_deform_pkt(pkt, num_ptrs, args...)\ 73 mesh_deform_pkt(pkt, num_ptrs, args) Simple Mesh Network Algorithm.VERSION:
unsigned int unsigned int len
Definition: startup.cpp:197
void wireless_service(void)
Definition: wireless.c:113
bool wireless_init(void)
Definition: wireless.c:80
char wireless_get_rx_pkt(mesh_packet_t *pkt, const uint32_t timeout_ms)
Definition: wireless.c:93
bool mesh_send_formed_pkt(mesh_packet_t *pkt)
Definition: mesh.c:1053
int wireless_flush_rx(void)
Definition: wireless.c:103
bool mesh_send(const uint8_t dst, const mesh_protocol_t type, const void *pData, const uint8_t len, const uint8_t hop_count_max)
Definition: mesh.c:928
mesh_protocol_t
Mesh packet type.
Definition: mesh_typedefs.h:86
char wireless_get_ack_pkt(mesh_packet_t *pkt, const uint32_t timeout_ms)
Same as wireless_get_rx_pkt(), except this will retrieve an ACK response.
Definition: wireless.c:98