Main Page | Modules | Directories | File List | Globals | Related Pages

cgi.c File Reference

CGI Callbacks. More...

Go to the source code of this file.

Functions

static void HtmlLedRow (FILE *stream, u_char num, u_char desc, u_long ival, u_long oval, u_long dir)
 Print HTML code for a row of LEDs.
static void HtmlCheckboxRow (FILE *stream, u_char num, u_char desc, u_char *name, u_long check, u_long enable)
 Print HTML code for a row of checkboxes.
static void HtmlSeparatorRow (FILE *stream, u_char width, u_char height)
 Print HTML code for a separator row.
static void HtmlInOutPortRow (FILE *stream, char name, u_char pin, u_char port, u_char ddr, u_char enable)
 Print HTML code to display a single I/O port.
static void ProcessCgiPortRequest (REQUEST *req)
 Process request parameters for CPU port control.
static void ProcessCgiRelayRequest (char *query)
 Process request parameters for relay output control.
int CpuPortControl (FILE *stream, REQUEST *req)
 CGI callback function to control the CPU ports.
int CpuPortStatus (FILE *stream, REQUEST *req)
 CGI callback function to display the status of the CPU ports.
int SpiRelayControl (FILE *stream, REQUEST *req)
 CGI callback function to control a shift register output board.
int SpiOptoStatus (FILE *stream, REQUEST *req)
 CGI callback function to query a shift register input board.
int CharonLedControl (FILE *stream, REQUEST *req)
 CGI callback function to control the Charon II LEDs.
int CharonSwitchStatus (FILE *stream, REQUEST *req)
 CGI callback function to query the Charon II switches.

Variables

static u_char spi_ni = 255
 Number of detected opto inputs.
static u_char spi_no = 255
 Number of detected relays.
static u_long relay_status
 Relays status.
static u_char relay_known
 Equals zero as long as the relay status is unknown.


Detailed Description

CGI Callbacks.

Definition in file cgi.c.


© 2002-2004 by egnite Software GmbH - visit http://www.ethernut.de/