mQ Branch for NA mote testing
Dependencies: LoRaWAN-lib SX1272Lib-mQ lib_gps lib_mma8451q lib_mpl3115a2 mbed
Fork of LoRaWAN-NAMote72-Application-Demo by
Diff: app/LoRaDeviceStateProc.h
- Revision:
- 18:18408c3c2d0c
- Parent:
- 5:6ffeac53b7cb
--- a/app/LoRaDeviceStateProc.h Sun Apr 16 23:12:47 2017 +0000 +++ b/app/LoRaDeviceStateProc.h Mon Apr 24 13:47:27 2017 +0000 @@ -31,7 +31,7 @@ /*! * MCPS-Request type */ - Mcps_t Type; + Mcps_t Type; uint8_t Acked; int8_t Datarate; uint16_t UplinkCounter; @@ -39,6 +39,7 @@ uint8_t *Buffer; uint8_t BufferSize; int8_t TxPower; + uint32_t UpLinkFrequency; }; /*! @@ -57,6 +58,15 @@ }; /*! + * Structure containing OTAA Join status + */ +struct sLoRaMacJoinStatus +{ + int8_t LastDatarate; + int8_t Status; +}; + +/*! * Device states */ enum eDevicState @@ -73,6 +83,8 @@ extern eDevicState DeviceState; +extern sLoRaMacJoinStatus LoRaMacJoinStatus; + /*! * \brief Initialize Device: Timer, MAC Services, MAC */ @@ -102,4 +114,4 @@ */ bool SendFrame( void ); -#endif // __LORA_DEVICE_STATE_H__ \ No newline at end of file +#endif // __LORA_DEVICE_STATE_H__