swixteen  0.03
Switch a lamp on/off with X10 RF commands
 All Files Functions Variables Macros Pages
SendByte.c
Go to the documentation of this file.
1 #include "../MarmitekX10/MarmitekX10.h"
2 #include "../config.h"
3 
9 int SendByte( int DataByte )
10  {
11  int BitMask=128;
12 
13  while( BitMask > 0 )
14  {
15  SendBit(DataByte & BitMask); /* if Mask AND Address are not 0, the bit is on */
16  BitMask = BitMask >> 1; /* shift mask to the right, bit 7 is send first */
17  }
18 
19  return(0);
20  }