Component: OscilloscopeM
This module implements the OscilloscopeM component, which
periodically takes sensor readings and sends a group of readings
over the UART. BUFFER_SIZE defines the number of readings sent
in a single packet. The Yellow LED is toggled whenever a new
packet is sent, and the red LED is turned on when the sensor
reading is above some constant value.
- uint8_t packetReadingNumber
- uint16_t readingNumber
- TOS_Msg msg[2]
- uint8_t currentMsg
-
command result_t
StdControl.init
(void)
-
command result_t
StdControl.start
(void)
-
command result_t
StdControl.stop
(void)
-
task void dataTask(void)
-
async event result_t
ADC.dataReady
(uint16_t data)
-
event result_t
DataMsg.sendDone
(TOS_MsgPtr sent, result_t success)
-
event result_t
Timer.fired
(void)
-
event TOS_MsgPtr
ResetCounterMsg.receive
(TOS_MsgPtr m)
StdControl.start
command result_t StdControl.start
(void)
StdControl.stop
command result_t StdControl.stop
(void)
ADC.dataReady
async event result_t ADC.dataReady
(uint16_t data)
DataMsg.sendDone
event result_t DataMsg.sendDone
(TOS_MsgPtr sent, result_t success)
Timer.fired
event result_t Timer.fired
(void)
ResetCounterMsg.receive
event TOS_MsgPtr ResetCounterMsg.receive
(TOS_MsgPtr m)