Apps
Components
Interfaces
All Files
Source Tree
source:
tos.system.NoCRCPacket.nc
Component: NoCRCPacket
Author:
Jason Hill
Alec Woo
David Gay
Philip Levis
Required Interfaces
ByteComm
StdControl
ByteControl
Leds
Provided Interfaces
StdControl
Control
BareSendMsg
Send
ReceiveMsg
Receive
SendVarLenPacket
result_t
txBytes
(uint8_t *bytes, uint8_t numBytes)
Variables
uint8_t rxCount
uint8_t rxLength
uint8_t txCount
uint8_t txLength
TOS_Msg buffers[2]
TOS_Msg *bufferPtrs[2]
uint8_t bufferIndex
uint8_t *recPtr
uint8_t *sendPtr
uint8_t state
Function Index
command result_t
Control.init
(void)
command result_t
Control.start
(void)
command result_t
Control.stop
(void)
command result_t
txBytes
(uint8_t *bytes, uint8_t numBytes)
command result_t
Send.send
(TOS_MsgPtr msg)
command result_t
SendVarLenPacket.send
(uint8_t *packet, uint8_t numBytes)
task void
sendDoneFailTask
(void)
task void
sendDoneSuccessTask
(void)
task void
sendVarLenFailTask
(void)
task void
sendVarLenSuccessTask
(void)
void
sendComplete
(result_t success)
event result_t
SendVarLenPacket.sendDone
(uint8_t *packet, result_t success)
event result_t
Send.sendDone
(TOS_MsgPtr msg, result_t success)
async event result_t
ByteComm.txByteReady
(bool success)
async event result_t
ByteComm.txDone
(void)
task void
receiveTask
(void)
async event result_t
ByteComm.rxByteReady
(uint8_t data, bool error, uint16_t strength)