Interface: tos.chips.cc1000.HplCC1000

interface HplCC1000

Low-level CC1000 radio-access operations that must be provided by a platform wishing to use this CC1000 implementation.

Author:
Jason Hill
David Gay
Philip Levis

Commands
command bool getLOCK() Read the state of the CHP_OUT pin
command void init() Initialize CC1K pins
command uint8_t read(uint8_t addr) Read a value from a CC1000 register.
command void write(uint8_t addr, uint8_t data) Write a value to a CC1000 register.

Commands - Details

getLOCK

command bool getLOCK()

Read the state of the CHP_OUT pin

Returns:
State of CHP_OUT as a boolean (TRUE for high)

init

command void init()

Initialize CC1K pins

read

command uint8_t read(uint8_t addr)

Read a value from a CC1000 register.

Parameters:
addr - Which CC1000 register
Returns:
Value of register

write

command void write(uint8_t addr, uint8_t data)

Write a value to a CC1000 register.

Parameters:
addr - Which CC1000 register
data - Value to write