Skeleton program for Federico's 4YP project.
Dependencies: WebSocketClient WiflyInterface mbed messages
Fork of IoT_Ex by
Diff: headers/Commands.h
- Revision:
- 1:4403f2ed1c1f
- Child:
- 5:0c7d131e6089
diff -r c5607b31fb07 -r 4403f2ed1c1f headers/Commands.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/headers/Commands.h Tue Oct 04 13:19:19 2016 +0000 @@ -0,0 +1,65 @@ +// ************** +// * Commands.h * +// ************** +// +// Created: 2016/03/24 +// By: Damien Frost +// +// Description: +// Status registers + +#ifndef IQ_COMMANDS_H +#define IQ_COMMANDS_H + +#include "StatusReg.h" +#include "globals.h" + +#define BIT0 0x1 +#define BIT1 0x2 +#define BIT2 0x4 +#define BIT3 0x8 +#define BIT4 0x10 +#define BIT5 0x20 +#define BIT6 0x40 +#define BIT7 0x80 +#define BIT8 0x100 +#define BIT9 0x200 +#define BIT10 0x400 +#define BIT11 0x800 +#define BIT12 0x1000 +#define BIT13 0x2000 +#define BIT14 0x4000 +#define BIT15 0x8000 + +#define BIT16 0x10000 +#define BIT17 0x20000 +#define BIT18 0x40000 +#define BIT19 0x80000 +#define BIT20 0x100000 +#define BIT21 0x200000 +#define BIT22 0x400000 +#define BIT23 0x800000 +#define BIT24 0x1000000 +#define BIT25 0x2000000 +#define BIT26 0x4000000 +#define BIT27 0x8000000 +#define BIT28 0x10000000 +#define BIT29 0x20000000 +#define BIT30 0x40000000 +#define BIT31 0x80000000 + +// Status regsiter flags: +#define SF_SERVERCONNECTED BIT0 +#define SF_AUTOCONNECT BIT1 // Set this flag to automatically start connecting to the websocket server +#define SF_WIRELESSCONNECTED BIT2 // Flag to indicate whether or not the wireless network is connected + +// Wifi Commands +#define NO_WIFI_CMD 0 +#define CHANGEVAR_WIFI_CMD 1 + +// Change variable commands: +#define CV_LED 0 + +extern StatusReg IotStatus; + +#endif /* IQ_COMMANDS_H */ \ No newline at end of file