Interface: tos.chips.cc1000.HplCC1000Spi
interface HplCC1000Spi
Interface to the CC1000 chip's serial bus. This isn't really an SPI,
but the mica2 interface was done using the Atmega128 SPI hardware. Hence
the name.
- Author:
-
Jaein Jeong
-
Philip buonadonna
Commands
command void disableIntr()
command void enableIntr()
command void initSlave()
command bool isBufBusy()
command uint8_t readByte()
command void rxMode()
command void txMode()
command void writeByte(uint8_t data)
Events
event void dataReady(uint8_t data)
Commands - Details
disableIntr
command void disableIntr()
enableIntr
command void enableIntr()
initSlave
command void initSlave()
isBufBusy
command bool isBufBusy()
- Returns:
-
TRUE if the buffer is busy, FALSE otherwise.
readByte
command uint8_t readByte()
- Returns:
-
Last byte received.
rxMode
command void rxMode()
txMode
command void txMode()
writeByte
command void writeByte(uint8_t data)
- Parameters:
-
data - Byte to write.
Events - Details
dataReady
event void dataReady(uint8_t data)
- Parameters:
-
data - In "receive" mode, the last value received from the CC1000
bus.