XBee and XBee-PRO ZigBee RF modules provide cost-effective wireless connectivity to electronic devices. They are interoperable with other ZigBee PRO feature set devices, including devices from other vendors.

Dependencies:   BufferedArray

Dependents:   MBEDminiproject

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ModemStatusIndicator.h Source File

ModemStatusIndicator.h

00001 #ifndef UK_AC_HERTS_SMARTLAB_XBEE_ModemStatusIndicator
00002 #define UK_AC_HERTS_SMARTLAB_XBEE_ModemStatusIndicator
00003 
00004 #include "RxBase.h"
00005 
00006 class ModemStatusIndicator: public RxBase
00007 {
00008 public:
00009     ModemStatusIndicator(APIFrame * frame);
00010 
00011     /**
00012     *
00013     * @returns
00014     *
00015     *        HARDWARE_RESET = 0x00,
00016     *        WATCHDOG_TIMER_RESET = 0x01,
00017     *        JOINED_NETWORK = 0x02,
00018     *        DISASSOCIATED = 0x03,
00019     *
00020     *        CONFIGURATION_ERROR = 0x04,
00021     *        COORDINATOR_REALIGNMENT = 0x05,
00022     *
00023     *        COORDINATOR_START = 0x06,
00024     *        NETWORK_SECURITY_KEY_WAS_UPDATED = 0x07,
00025     *
00026     *        NETWORK_WOKE_UP = 0x0B,
00027     *        NETWORK_WENT_TO_SLEEP = 0x0C,
00028     *
00029     *        VOLTAGE_SPPLY_LIMIT_EXCEEDED = 0x0D,
00030     *        MODEM_CONFIGURATION_CHANGED_WHILE_JOIN_IN_PRIGRESS = 0x11,
00031     *
00032     *        //0x80+ STACK_ERROR
00033     *        STACK_ERROR = 0x80,
00034     *
00035     *        SEND_JOIN_ISSIED_WITHOUT_CONNECTING_AP = 0x82,
00036     *        ACCESS_POINT_NOT_FOUND = 0x83,
00037     *        PSK_NOT_FOUND = 0x84,
00038     *        SSID_NOT_FOUND = 0x87,
00039     *
00040     *        FAILED_TO_JOIN_WITH_SECURITY_ENABLED = 0x88,
00041     *        INVALID_CHANNEL = 0x8A,
00042     *        FAILED_TO_JOIN_ACCESS_POINT = 0x8E,
00043     *
00044     */
00045     int getModemStatus();
00046 
00047     bool convert(APIFrame * frame);
00048 };
00049 
00050 #endif