File tree Expand file tree Collapse file tree 4 files changed +36
-4
lines changed Expand file tree Collapse file tree 4 files changed +36
-4
lines changed Original file line number Diff line number Diff line change @@ -865,7 +865,7 @@ void SX1272_LoRaRadio::transmit(uint32_t timeout)
865
865
* and finally a DIO0 interrupt let's the state machine know that a packet is
866
866
* ready to be read from the FIFO
867
867
*/
868
- void SX1272_LoRaRadio::receive (uint32_t )
868
+ void SX1272_LoRaRadio::receive (void )
869
869
{
870
870
switch (_rf_settings.modem ) {
871
871
case MODEM_FSK:
Original file line number Diff line number Diff line change @@ -200,10 +200,26 @@ class SX1272_LoRaRadio: public LoRaRadio {
200
200
* setting the receiver in continuous mode is by using set_rx_config()
201
201
* API.
202
202
*
203
+ * NOTE: This API will be deprecated
204
+ *
203
205
* @param timeout Reception timeout [ms]
204
206
*
205
207
*/
206
- virtual void receive (uint32_t /* *timeout**/ );
208
+ MBED_DEPRECATED_SINCE (" mbed-os-5.10" , " receive(uint32_t) will be deprecated. "
209
+ " Use receive(void) instead" )
210
+ virtual void receive (uint32_t timeout)
211
+ {
212
+ (void ) timeout;
213
+ receive ();
214
+ }
215
+
216
+ /* *
217
+ * Sets the radio to receive
218
+ *
219
+ * All necessary configuration options for receptions are set in
220
+ * 'set_rx_config(parameters)' API.
221
+ */
222
+ virtual void receive (void );
207
223
208
224
/* *
209
225
* Sets the carrier frequency
Original file line number Diff line number Diff line change @@ -844,7 +844,7 @@ void SX1276_LoRaRadio::standby( void )
844
844
* and finally a DIO0 interrupt let's the state machine know that a packet is
845
845
* ready to be read from the FIFO
846
846
*/
847
- void SX1276_LoRaRadio::receive (uint32_t )
847
+ void SX1276_LoRaRadio::receive (void )
848
848
{
849
849
switch (_rf_settings.modem ) {
850
850
case MODEM_FSK:
Original file line number Diff line number Diff line change @@ -215,10 +215,26 @@ class SX1276_LoRaRadio: public LoRaRadio {
215
215
* setting the receiver in continuous mode is by using set_rx_config()
216
216
* API.
217
217
*
218
+ * NOTE: This API will be deprecated
219
+ *
218
220
* @param timeout Reception timeout [ms]
219
221
*
220
222
*/
221
- virtual void receive (uint32_t /* *timeout**/ );
223
+ MBED_DEPRECATED_SINCE (" mbed-os-5.10" , " receive(uint32_t) will be deprecated. "
224
+ " Use receive(void) instead" )
225
+ virtual void receive (uint32_t timeout)
226
+ {
227
+ (void ) timeout;
228
+ receive ();
229
+ }
230
+
231
+ /* *
232
+ * Sets the radio to receive
233
+ *
234
+ * All necessary configuration options for receptions are set in
235
+ * 'set_rx_config(parameters)' API.
236
+ */
237
+ virtual void receive (void );
222
238
223
239
/* *
224
240
* Sets the carrier frequency
You can’t perform that action at this time.
0 commit comments