swixteen
0.03
Switch a lamp on/off with X10 RF commands
Main Page
Files
File List
Globals
All
Files
Functions
Variables
Macros
Pages
MarmitekX10
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
}
Generated on Sat Oct 5 2013 21:30:15 for swixteen by
1.8.3.1