Interface: tos.chips.cc1000.ByteRadio
interface ByteRadio
Radio logic is split between Csma (media-access control, low-power
listening and general control) and SendReceive (packet reception and
transmission). This interface specifies the interaction between these
two components.
- Author:
-
David Gay
Commands
command void cts()
command message_t *getTxMessage()
command void listen()
command void off()
command bool syncing()
Events
event void idleByte(bool preamble)
event void rts(message_t *msg)
event void rx()
event void rxDone()
event void sendDone()
Commands - Details
cts
command void cts()
getPreambleLength
command uint16_t getPreambleLength()
- Returns:
-
Preamble length in bytes
getTxMessage
command message_t *getTxMessage()
- Returns:
-
Message being transmitted.
listen
command void listen()
off
command void off()
setPreambleLength
command void setPreambleLength(uint16_t bytes)
- Parameters:
-
bytes - Preamble length in bytes
syncing
command bool syncing()
- Returns:
-
TRUE if a sync attempt is in progress, FALSE if not.
Events - Details
idleByte
event void idleByte(bool preamble)
- Parameters:
-
preamble - TRUE if a message preamble byte has been received
rts
event void rts(message_t *msg)
- Parameters:
-
msg - Message to be sent.
rx
event void rx()
rxDone
event void rxDone()
sendDone
event void sendDone()