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.
Fork of SX1276GenericLib by
Diff: radio/radio.h
- Revision:
- 50:43f7160e869c
- Parent:
- 48:62af1e692f00
- Child:
- 51:aef3234bcb71
--- a/radio/radio.h Sun May 14 14:27:37 2017 +0000 +++ b/radio/radio.h Tue May 16 17:51:21 2017 +0200 @@ -205,7 +205,7 @@ /*! * @brief Return current radio status * - * @param status Radio status.[RF_IDLE, RF_RX_RUNNING, RF_TX_RUNNING] + * @param status Radio status. [RF_IDLE, RX_RUNNING, TX_RUNNING, CAD_RUNNING] */ virtual RadioState GetStatus( void ) = 0; @@ -350,8 +350,10 @@ * * @param [IN]: buffer Buffer pointer * @param [IN]: size Buffer size + * @param [IN]: buffer Header pointer + * @param [IN]: size Header size */ - virtual void Send( uint8_t *buffer, uint8_t size ) = 0; + virtual void Send( uint8_t *buffer, uint8_t size, uint8_t *header = NULL, uint8_t hsize = 0) = 0; /*! * @brief Sets the radio in sleep mode @@ -392,6 +394,13 @@ virtual void SetTxContinuousWave( uint32_t freq, int8_t power, uint16_t time ) = 0; /*! + * @brief Returns the maximal transfer unit for a given modem + * + * @retval MTU size in bytes + */ + virtual int16_t MaxMTUSize( RadioModems_t modem ) = 0; + + /*! * @brief Reads the current RSSI value * * @retval rssiValue Current RSSI value in [dBm]