Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
SxRadioEvents.h
- Committer:
- Jenkins@KEILDM1.dc.multitech.prv
- Date:
- 2019-08-29
- Revision:
- 68:5f787643e7d7
- Parent:
- 64:64982192a2af
- Child:
- 69:e22889c7eaa9
File content as of revision 68:5f787643e7d7:
/*
/ _____) _ | |
( (____ _____ ____ _| |_ _____ ____| |__
\____ \| ___ | (_ _) ___ |/ ___) _ \
_____) ) ____| | | || |_| ____( (___| | | |
(______/|_____)_|_|_| \__)_____)\____)_| |_|
(C)2013 Semtech
Description: Generic radio driver definition
License: Revised BSD License, see LICENSE.TXT file include in the project
Maintainer: Miguel Luis and Gregory Cristian
*/
#ifndef __SXRADIOEVENTS_H__
#define __SXRADIOEVENTS_H__
/*!
* \brief Radio driver callback functions
*/
class SxRadioEvents
{
public:
/*!
* \brief Tx Start callback prototype.
*/
virtual void TxStart( void ) {}
/*!
* \brief Tx Done callback prototype.
*/
virtual void TxDone( void ) {}
/*!
* \brief Tx Timeout callback prototype.
*/
virtual void TxTimeout( void ) {}
/*!
* \brief Rx Done callback prototype.
*
* \param [IN] payload Received buffer pointer
* \param [IN] size Received buffer size
* \param [IN] rssi RSSI value computed while receiving the frame [dBm]
* \param [IN] snr Raw SNR value given by the radio hardware
* FSK : N/A ( set to 0 )
* LoRa: SNR value is two's complement in 1/4 dB
*/
virtual void RxDone( uint8_t *payload, uint16_t size, int16_t rssi, int16_t snr ) {}
/*!
* \brief Rx Timeout callback prototype.
*/
virtual void RxTimeout( void ) {}
/*!
* \brief Rx Error callback prototype.
*/
virtual void RxError( void ) {}
/*!
* \brief FHSS Change Channel callback prototype.
*
* \param [IN] currentChannel Index number of the current channel
*/
virtual void FhssChangeChannel( uint8_t currentChannel ) {}
/*!
* \brief CAD Done callback prototype.
*
* \param [IN] channelActivityDetected Channel Activity detected during the CAD
*/
virtual void CadDone( bool channelActivityDetected ) {}
/*!
* \brief Mac Event callback prototype.
*/
virtual void MacEvent( void ) {}
virtual void LinkIdle(void) {}
};
#endif // __SXRADIOEVENTS_H__