SX1278 RA-01, RA-02 LoRa library

Embed: (wiki syntax)

« Back to documentation index

RadioEvents_t Struct Reference

RadioEvents_t Struct Reference

Radio driver callback functions. More...

#include <sx1278.h>

Data Fields

void(* TxDone )(void)
 Callback when Transmission is done.
void(* TxTimeout )(void)
 Callback when Transmission is timed out.
void(* RxDone )(uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr)
 Rx Done callback prototype.
void(* RxTimeout )(void)
 Callback when Reception is timed out.
void(* RxError )(void)
 Callback when Reception ends up in error.
void(* FhssChangeChannel )(uint8_t currentChannel)
 FHSS Change Channel callback prototype.
void(* CadDone )(bool channelActivityDetected)
 CAD Done callback prototype.

Detailed Description

Radio driver callback functions.

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 144 of file sx1278.h.


Field Documentation

void(* CadDone)(bool channelActivityDetected)

CAD Done callback prototype.

Parameters:
[IN]channelDetected True, if Channel activity detected.

Definition at line 190 of file sx1278.h.

void(* FhssChangeChannel)(uint8_t currentChannel)

FHSS Change Channel callback prototype.

Parameters:
[IN]currentChannel Index number of the current channel

Definition at line 183 of file sx1278.h.

void(* RxDone)(uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr)

Rx Done callback prototype.

Parameters:
[IN]payload Received buffer pointer
[IN]size Received buffer size
[IN]rssi RSSI value computed while receiving the frame [dBm]
[IN]snr Raw SNR value given by the radio hardware FSK : N/A (set to 0) LoRa: SNR value in dB

Definition at line 166 of file sx1278.h.

void(* RxError)(void)

Callback when Reception ends up in error.

Definition at line 176 of file sx1278.h.

void(* RxTimeout)(void)

Callback when Reception is timed out.

Definition at line 171 of file sx1278.h.

void(* TxDone)(void)

Callback when Transmission is done.

Definition at line 149 of file sx1278.h.

void(* TxTimeout)(void)

Callback when Transmission is timed out.

Definition at line 154 of file sx1278.h.