testing hex for lorawan communication
Diff: SX1272/SX1272_LoRaRadio.h
- Revision:
- 2:6c5853c2fd72
- Parent:
- 1:3bdd6f917bf5
--- a/SX1272/SX1272_LoRaRadio.h Thu Nov 12 21:35:41 2020 +0000 +++ b/SX1272/SX1272_LoRaRadio.h Thu Nov 12 22:09:59 2020 +0000 @@ -54,44 +54,6 @@ #define ALIAS_LORAWAN_TIMER mbed::Timeout #endif -enum -{ - SX1272_init_radio = 0, - SX1272_radio_reset, - SX1272_sleep, - SX1272_standby, - SX1272_set_operation_mode, - SX1272_set_modem, - SX1272_set_rx_config, - SX1272_set_tx_config, - SX1272_send, - SX1272_transmit, - SX1272_receive, - SX1272_set_channel, - SX1272_random, - SX1272_get_status, - SX1272_set_max_payload_length, - SX1272_set_public_network, - SX1272_time_on_air, - SX1272_perform_carrier_sense, - SX1272_start_cad, - SX1272_check_rf_frequency, - SX1272_set_tx_continuous_wave, - SX1272_dio0_irq, - SX1272_dio1_irq, - SX1272_dio2_irq, - SX1272_dio3_irq, - SX1272_dio4_irq, - SX1272_dio5_irq, - SX1272_timeout_irq, - SX1272_rxsymb_irq, -}; - -typedef struct { - uint32_t state; - uint32_t interval; -} SX1272_Trace; - /** * Radio driver implementation for Semtech SX1272 plus variants. * Supports only SPI at the moment. Implements pure virtual LoRaRadio class. @@ -360,18 +322,8 @@ * Release exclusive access */ virtual void unlock(void); - - void push_trace(uint32_t state); - - bool pop_trace(SX1272_Trace &trace); private: - - mbed::Timer trace_timer; - - mbed::CircularBuffer<SX1272_Trace, 64> trace_buf; - - // SPI and chip select control mbed::SPI _spi; mbed::DigitalOut _chip_select;