SX1276GenericLib to support sx1276 bassed LoRa modules, including HopeRF RFM95, Murata CMWX1ZZABZ and Semtech SX1276MB1MAS/SX1276MB1LAS modules

Dependents:   DISCO-L072CZ-LRWAN1_LoRa_PingPong DISCO-L072CZ-LRWAN1_LoRa_PingPong DISCO-L072CZ-LRWAN1_LoRa_PingPong DISCO-L072CZ-LRWAN1_LoRa_USB_Rx ... more

Fork of SX1276Lib by Semtech

Embed: (wiki syntax)

« Back to documentation index

RadioEvents_t Struct Reference

RadioEvents_t Struct Reference

Radio driver callback functions. More...

#include <radio.h>

Data Fields

void(* TxDone )(void *radio, void *userThisPtr, void *userData)
 Tx Done callback prototype.
void(* TxTimeout )(void *radio, void *userThisPtr, void *userData)
 Tx Timeout callback prototype.
void(* RxDone )(void *radio, void *userThisPtr, void *userData, uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr)
 Rx Done callback prototype.
void(* RxTimeout )(void *radio, void *userThisPtr, void *userData)
 Rx Timeout callback prototype.
void(* RxError )(void *radio, void *userThisPtr, void *userData)
 Rx Error callback prototype.
void(* FhssChangeChannel )(void *radio, void *userThisPtr, void *userData, uint8_t currentChannel)
 FHSS Change Channel callback prototype.
void(* CadDone )(void *radio, void *userThisPtr, void *userData, bool channelActivityDetected)
 CAD Done callback prototype.

Detailed Description

Radio driver callback functions.

Definition at line 132 of file radio.h.


Field Documentation

void( * CadDone)(void *radio, void *userThisPtr, void *userData, bool channelActivityDetected)

CAD Done callback prototype.

Parameters:
[IN]channelDetected Channel Activity detected during the CAD

Definition at line 173 of file radio.h.

void( * FhssChangeChannel)(void *radio, void *userThisPtr, void *userData, uint8_t currentChannel)

FHSS Change Channel callback prototype.

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

Definition at line 166 of file radio.h.

void( * RxDone)(void *radio, void *userThisPtr, void *userData, 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 152 of file radio.h.

void( * RxError)(void *radio, void *userThisPtr, void *userData)

Rx Error callback prototype.

Definition at line 160 of file radio.h.

void( * RxTimeout)(void *radio, void *userThisPtr, void *userData)

Rx Timeout callback prototype.

Definition at line 156 of file radio.h.

void( * TxDone)(void *radio, void *userThisPtr, void *userData)

Tx Done callback prototype.

Definition at line 137 of file radio.h.

void( * TxTimeout)(void *radio, void *userThisPtr, void *userData)

Tx Timeout callback prototype.

Definition at line 141 of file radio.h.