This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

what is this?

unsigned char cklf;

SPICLK = 0; // Max SPI clock
SPI_CTRL = 0x02; // Connect SPI controller to Radio

// switch to 16MHz clock:
RACSN = 0;
SpiReadWrite(RRC | 0x09);
cklf = SpiReadWrite(0) | 0x04;
RACSN = 1;
RACSN = 0;
SpiReadWrite(WRC | 0x09);
SpiReadWrite(cklf);
RACSN = 1;
can i know what is meaning of RACSN, why RRC need to OR with 0x09, cklf = SpiReadWrite(0) | 0x04, SpiReadWrite(WRC | 0x09)and SpiReadWrite(cklf);?