37 #ifndef INSTABURST_RX_H__ 38 #define INSTABURST_RX_H__ 63 #include "instaburst.h" 64 #include "adv_ext_packet.h" 66 #ifndef INSTABURST_RX_DEBUG 68 #define INSTABURST_RX_DEBUG 0 const uint8_t * p_payload
A pointer to the packet payload.
Stats structure for Instaburst.
uint8_t payload_len
Length of the packet payload.
uint32_t rx_ok
Number of successfully received packets.
void instaburst_rx_packet_release(const instaburst_rx_packet_t *p_packet)
Releases a packet acquired through the instaburst_rx function.
uint32_t busy
Number of packets dropped because the scanner was busy.
uint32_t too_late
Number of times the module failed to start RX on time.
void instaburst_rx_enable(void)
Enables the Instaburst RX module by registering its RX callback with the scanner. ...
uint32_t no_rx
Number of times the module started RX on time, but failed detecting any incoming packets.
const instaburst_rx_packet_t * instaburst_rx(void)
Fetches a single packet from the Instaburst packet queue.
uint32_t switched_timeslot
Number of packets dropped because the timeslot ended before we could handle it.
void instaburst_rx_init(bearer_event_flag_callback_t packet_process_cb)
Initializes the Instaburst RX module.
uint32_t invalid_offset
Number of packets dropped due to unsupported offset times.
bool instaburst_rx_pending(void)
Checks whether Instaburst has any packets ready for being fetched by instaburst_rx.
void instaburst_rx_disable(void)
Disables the Instaburst RX module.
nrf_mesh_rx_metadata_instaburst_t metadata
Metadata associated with the given packet.
const instaburst_rx_stats_t * instaburst_rx_stats_get(uint8_t channel)
Gets a pointer to the Instaburst RX stats structure.
A single Instaburst RX packet.
uint32_t crc_fail
Number of CRC failures detected.