English
Language : 

SDBC-DK3UG Datasheet, PDF (72/76 Pages) Silicon Laboratories – 4 buttons and 4 LEDs for custom purposes
SDBC-DK3 UG
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+ FUNCTION NAME: uint8 SpiReadRegister(uint8 address)
+ DESCRIPTION:
Read a register of the radio
+ INPUT:
Address - register address
+ RETURN:
Value of the register
+ NOTES:
It controls the nSEL pin of the radio
+
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
uint8 SpiRfReadRegister(uint8 address)
{
uint8 temp8;
RF_NSEL_PIN = 0;
SpiReadWrite( address );
temp8 = SpiReadWrite( 0x00 );
RF_NSEL_PIN = 1;
return temp8;
}
72
Rev. 0.4