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

Go to the source code of this file.

Functions

int SendPreamble (void)
 Send the X10 RF Preamble ( 9 mS on, 4.5 mS off ) More...
 
int SendRfCode (unsigned char Address, unsigned char Action)
 Send the X10 RF Code. More...
 
int SendByte (int Byte)
 Split a byte in bits and send them. More...
 
int SendBit (int Bit)
 Send a bit of an X10 RF code with the correct timing. More...
 
int GetX10CommandsBy (char *Name)
 Find the given name in a table with names and codes and return an index to the name and the codes. More...
 

Function Documentation

int GetX10CommandsBy ( char *  NameToFind)

Find the given name in a table with names and codes and return an index to the name and the codes.

Lookup the given name in a table with names and codes

Parameters
Name
Returns
Index to the coresponding codes

Definition at line 15 of file GetX10CommandsBy.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int SendBit ( int  Bit)

Send a bit of an X10 RF code with the correct timing.

Send one bit of RF code

Parameters
Bit( 0 or a positive integer )
Returns
zero on succes and a negative number on failure

Definition at line 13 of file SendBit.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int SendByte ( int  DataByte)

Split a byte in bits and send them.

Send one byte of RF code

Parameters
Databyteto send
Returns
zero

Definition at line 9 of file SendByte.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int SendPreamble ( void  )

Send the X10 RF Preamble ( 9 mS on, 4.5 mS off )

Send the preamble, so receivers can adjust their AGC

Returns
zero on succes and a negative number on failure

Definition at line 12 of file SendPreamble.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int SendRfCode ( unsigned char  Address,
unsigned char  Action 
)

Send the X10 RF Code.

Send the RF code containing an address and an action

Returns
zero

Definition at line 8 of file SendRfCode.c.

Here is the call graph for this function:

Here is the caller graph for this function: