Interface: moteiv.tos.lib.CC2420Radio.HPLCC2420
interface HPLCC2420
Access to hardware presentation layer of the CC2420 transceiver.
This interface primary allows register access to the CC2420.
- Author:
-
Joe Polastre, Moteiv Corporation
Commands
command uint8_t cmd(uint8_t rh, uint8_t addr)
command uint16_t read(uint8_t rh, uint8_t addr)
command uint8_t write(uint8_t rh, uint8_t addr, uint16_t data)
Commands - Details
cmd
command uint8_t cmd(uint8_t rh, uint8_t addr)
- Parameters:
-
rh
- either RESOURCE_NONE for automatic resource scheduling or a
resource handle acquired by CC2420ResourceC
-
addr
- 8-bit address
- Returns:
-
status byte from the chipcon
read
command uint16_t read(uint8_t rh, uint8_t addr)
- Parameters:
-
rh
- either RESOURCE_NONE for automatic resource scheduling or a
resource handle acquired by CC2420ResourceC
-
addr
- 8-bit address
- Returns:
-
16-bit register value
write
command uint8_t write(uint8_t rh, uint8_t addr, uint16_t data)
- Parameters:
-
rh
- either RESOURCE_NONE for automatic resource scheduling or a
resource handle acquired by CC2420ResourceC
-
addr
- 8-bit address
-
data
- 16-bit data
- Returns:
-
status byte from the chipcon. 0xff is return of command failed.