cmd.h File Reference


Detailed Description

Commands.

Author:
Modtronix Engineering
Dependencies:
Compiler:
MPLAB C18 v2.10 or higher
HITECH PICC-18 V8.35PL3 or higher

Description

This module contains the code that implements that


Defines

#define CMD_UD_ADC   0x0010
#define CMD_UD_CPU_IO   0x0008
#define CMD_UD_NETWORK   0x0002
#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 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_LOGOUT   ('o')
#define CMDCODE_GENNOVAL_RESET   ('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')

Functions

WORD execNameValueCmd (BYTE *name, BYTE *value, BYTE user)


Define Documentation

#define CMD_UD_ADC   0x0010

#define CMD_UD_CPU_IO   0x0008

#define CMD_UD_NETWORK   0x0002

#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 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_LOGOUT   ('o')

#define CMDCODE_GENNOVAL_RESET   ('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')


Function Documentation

WORD execNameValueCmd ( BYTE name,
BYTE value,
BYTE  user 
)

Execute the given name-value command. The command might not be executed if a higher user level is required.

Parameters:
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
Returns:
Returns an UD_XXX flag (or multiple ones ORed together) indicating what has been updated. Not all name-value commands will return a value here.


Generated on Mon Oct 9 13:22:06 2006 for SBC65EC Web Server by  doxygen 1.4.7