swixteen  0.03
Switch a lamp on/off with X10 RF commands
 All Files Functions Variables Macros Pages
Macros | Functions | Variables
Commands.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MaxNrOfCodes   2000
 
#define MaxNameLength   20
 

Functions

int InitX10Commands ()
 fill an array with names and unsigned chars More...
 
int InitOldElroCommands ()
 fill a structure with names and unsigned chars More...
 

Variables

int Address [MaxNrOfCodes]
 
int Action [MaxNrOfCodes]
 
char * Name [MaxNrOfCodes]
 

Macro Definition Documentation

#define MaxNameLength   20

Should be enought for A11dimtoggle

Definition at line 2 of file Commands.h.

#define MaxNrOfCodes   2000

should be more then enough: 16 HouseAddresses * 16 Devices * 4 actions

Definition at line 1 of file Commands.h.

Function Documentation

int InitOldElroCommands ( )

fill a structure with names and unsigned chars

Initialize the OldElro aray with decimal codes.

Returns
the number of codes in the list

Definition at line 7 of file InitOldElroCommands.c.

Here is the caller graph for this function:

int InitX10Commands ( )

fill an array with names and unsigned chars

Initialize the X10 aray with decimal codes.

Returns
the number of codes in the list

Definition at line 7 of file InitX10Commands.c.

Here is the caller graph for this function:

Variable Documentation

int Action[MaxNrOfCodes]

aray with decimal action.

Definition at line 8 of file Commands.h.

int Address[MaxNrOfCodes]

aray with decimal addresses.

Definition at line 7 of file Commands.h.

char* Name[MaxNrOfCodes]

aray with name of the command.

Definition at line 9 of file Commands.h.