Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

radio_events Struct Reference

Reporting functions for upper layers. More...

#include <LoRaRadio.h>

Data Fields

mbed::Callback< void()> tx_done
 Callback when Transmission is done.
mbed::Callback< void()> tx_timeout
 Callback when Transmission is timed out.
mbed::Callback< void(const
uint8_t *payload, uint16_t
size, int16_t rssi, int8_t snr) 
rx_done )
 Rx Done callback prototype.
mbed::Callback< void()> rx_timeout
 Callback when Reception is timed out.
mbed::Callback< void()> rx_error
 Callback when Reception ends up in error.
mbed::Callback< void(uint8_t
current_channel)> 
fhss_change_channel
 FHSS Change Channel callback prototype.
mbed::Callback< void(bool
channel_busy)> 
cad_done
 CAD Done callback prototype.

Detailed Description

Reporting functions for upper layers.

The radio driver reports various vital events to the upper controlling layers using callback functions provided by the upper layers at the initialization phase.

Definition at line 389 of file LoRaRadio.h.


Field Documentation

mbed::Callback<void(bool channel_busy)> cad_done

CAD Done callback prototype.

Parameters:
channel_busyTrue, if Channel activity detected.

Definition at line 434 of file LoRaRadio.h.

mbed::Callback<void(uint8_t current_channel)> fhss_change_channel

FHSS Change Channel callback prototype.

Parameters:
current_channelThe index number of the current channel.

Definition at line 427 of file LoRaRadio.h.

mbed::Callback<void(const uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr) rx_done)

Rx Done callback prototype.

Parameters:
payloadReceived buffer pointer.
sizeReceived buffer size.
rssiRSSI value computed while receiving the frame [dBm].
snrRaw SNR value given by the radio hardware. FSK : N/A (set to 0) LoRa: SNR value in dB

Definition at line 410 of file LoRaRadio.h.

mbed::Callback<void()> rx_error

Callback when Reception ends up in error.

Definition at line 420 of file LoRaRadio.h.

mbed::Callback<void()> rx_timeout

Callback when Reception is timed out.

Definition at line 415 of file LoRaRadio.h.

mbed::Callback<void()> tx_done

Callback when Transmission is done.

Definition at line 393 of file LoRaRadio.h.

mbed::Callback<void()> tx_timeout

Callback when Transmission is timed out.

Definition at line 398 of file LoRaRadio.h.