Difference between revisions of "CC2420 Settings and Registers"

From TinyOS Wiki
Jump to: navigation, search
(New page: To interact with registers on the CC2420 chip, the SPI bus must be acquired, the chip select (CSn) pin must be cleared, and then the interaction may occur. After the interaction complete...)
 
m
 
Line 23: Line 23:
 
= Next =
 
= Next =
 
* [[CC2420 Cross-Platform Portability]]
 
* [[CC2420 Cross-Platform Portability]]
 +
[[Category:CC2420]]

Latest revision as of 09:45, 4 December 2009

To interact with registers on the CC2420 chip, the SPI bus must be acquired, the chip select (CSn) pin must be cleared, and then the interaction may occur. After the interaction completes, the CSn pin must be set high.

All registers and strobes are defined in the CC2420.h file, and most are accessible through the CC2420SpiC component. If your application requires access to a specific register or strobe, the CC2420SpiC component is the place to add access to it.

Configuring the CC2420 requires the developer to access the CC2420Config interface provided by CC2420ControlC. First call the CC2420Config commands to change the desired settings of the radio. If the radio happens to be off, the changes will be committed at the time it is turned on. Alternatively, calling sync() will commit the changes to the CC2420.

RSSI can be sampled directly by calling the ReadRssi interface provided by CC2420ControlC. See page 50 of the CC2420 datasheet for more information.

See Also

Next