swixteen  0.03
Switch a lamp on/off with X10 RF commands
 All Files Functions Variables Macros Pages
SendRfCode.c
Go to the documentation of this file.
1 #include "../MarmitekX10/MarmitekX10.h"
2 #include "../config.h"
3 
8 int SendRfCode( unsigned char Address, unsigned char Action )
9  {
10 
11  SendPreamble(); /* send the preamble */
12  SendByte(Address); /* send Address */
13  SendByte(~Address); /* send Inverted Address */
14  SendByte(Action); /* send Action */
15  SendByte(~Action); /* send Inverted Action */
16 
17  return(0);
18  }