//********************************************************************* //-------------------- Cmd Configuration -------------------- //********************************************************************* //Default "UDP Command Port" #define DEFAULT_CMD_UDPPORT (54123) //Default "UDP Command Responce Port" #define DEFAULT_CMDRESP_UDPPORT (54124) //"UDP Command Port" #define CMD_UDPPORT DEFAULT_CMD_UDPPORT //"UDP Command Responce Port" #define CMDRESP_UDPPORT DEFAULT_CMDRESP_UDPPORT
| #define CMD_UD_ADC 0x0010 |
| #define CMD_UD_CPU_IO 0x0008 |
| #define CMD_UD_NETWORK 0x0002 |
| #define CMD_UD_PWM 0x0100 |
| #define CMD_UD_SMTP 0x0040 |
| #define CMD_UD_SYSTEM 0x0080 |
| #define CMD_UD_TFTP 0x0020 |
| #define CMD_UD_UNDEFINED 0x0001 |
| #define CMD_UD_USART 0x0004 |
| #define CMD_UD_WEB 0x0200 |
| #define CMDCODE_GEN_NEW_NETBIOS_NAME ('n') |
| #define CMDCODE_GEN_NEW_PASSWORD ('b') |
| #define CMDCODE_GEN_NEW_USERNAME ('a') |
| #define CMDCODE_GEN_PASSWORD ('p') |
| #define CMDCODE_GEN_USERNAME ('u') |
| #define CMDCODE_GENNOVAL_LOGIN ('l') |
| #define CMDCODE_GENNOVAL_LOGOUT ('o') |
| #define CMDCODE_GENNOVAL_RESET ('r') |
| #define CMDCODE_SPI_CFGCLK ('r') |
| #define CMDGROUP_CONFIG ('k') |
| #define CMDGROUP_GENERAL ('l') |
| #define CMDGROUP_GENERAL_NOVAL ('m') |
| #define CMDGROUP_PORTA ('a') |
| #define CMDGROUP_PORTB ('b') |
| #define CMDGROUP_PORTC ('c') |
| #define CMDGROUP_PORTD ('d') |
| #define CMDGROUP_PORTE ('e') |
| #define CMDGROUP_PORTF ('f') |
| #define CMDGROUP_PORTG ('g') |
| #define CMDGROUP_PORTH ('h') |
| #define CMDGROUP_PORTJ ('i') |
| #define CMDGROUP_PWM ('w') |
| #define CMDGROUP_SPI ('s') |
| typedef struct _CMD_GET_VAR CMD_GET_VAR |
Structure for passing variables to getVarCmd() function
| void cmdProcess | ( | void | ) |
Must be called every couple of ms
| void cmdUdpInit | ( | void | ) |
Initializes "UDP Command Port" and "UDP Command Responce Port". These ports are used for sending and receiving and commands via the UDP port.
Execute the given name-value command. The command might not be executed if a higher user level is required.
| name | The name part of the name-value command | |
| value | The value part of the name-value command | |
| user | The user level, is a HTTP_USER_XX constant |
| WORD getVarCmd | ( | CMD_GET_VAR * | pGetVar | ) |
Get the requested variable command. The command might not be executed if a higher user level is required.
| pGetVar | Pointer to CMD_GET_VAR structure. |
1.5.2