Driver for the SX1276 RF Transceiver(Updated to work with nucleo, tested with L073RZ)
Fork of SX1276Lib by
Diff: enums/enums.h
- Revision:
- 21:2e496deb7858
- Parent:
- 13:618826a997e2
- Child:
- 22:7f3aab69cca9
--- a/enums/enums.h Tue Oct 20 12:58:58 2015 +0000 +++ b/enums/enums.h Thu Nov 26 10:39:03 2015 +0000 @@ -16,46 +16,35 @@ #define __ENUMS_H__ /*! - * State of the radio: - * [IDLE, - * RX_RUNNING, RX_TIMEOUT, RX_ERROR, - * TX_RUNNING, TX_TIMEOUT, - CAD] + * Radio driver internal state machine states definition */ -enum RadioState +typedef enum RadioState { - LOWPOWER = 0, - IDLE, - - RX, - RX_TIMEOUT, - RX_ERROR, - - TX, - TX_TIMEOUT, - - CAD, - CAD_DONE -}; + RF_IDLE = 0, + RF_RX_RUNNING, + RF_TX_RUNNING, + RF_CAD, +}RadioState_t; /*! * Type of the modem. [LORA / FSK] */ -enum ModemType +typedef enum ModemType { MODEM_FSK = 0, MODEM_LORA -}; +}RadioModems_t; /*! - * Type of the supported board. [SX1276MB1MAS / SX1276MB1LAS] + * Type of the supported board. [SX1276MB1MAS / SX1276MB1LAS] */ -enum BoardType +typedef enum BoardType { SX1276MB1MAS = 0, SX1276MB1LAS, UNKNOWN -}; +}BoardType_t; + /*! * Radio FSK modem parameters */