
RF12 Program V1.1
Tel: +86-755-82973805 Fax: +86-755-82973550 E-mail: [email protected] http://www.hoperf.com
oid)
Result;
16;i++)
//skip status bits
//read fifo data byte
ult=Result<<1;
|=1;
P();
EL=1;
s( uint us )
0;
uchar RF12_RDFIFO(v
{
uchar i,
SCK=0;
SDI=0;
nSEL=0;
for(i=0;i<
{
SCK=1;
NOP();
NOP();
SCK=0;
NOP();
NOP();
}
Result=0;
for(i=0;i<8;i++)
{
Res
if(SDO)
{
Result
}
SCK=1;
NOP();
NOP();
SCK=0;
NO
NOP();
}
nS
return(Result);
}
void Delayu
{
uint i;
while( us-- )
{
i=100
while( i-- )
{