Interface: moteiv.tos.platform.msp430.timer.MSP430Capture
interface MSP430CaptureCommands
command void clearOverflow()
command uint16_t getEvent()
command void setEdge(uint8_t cm)
command void setSynchronous(bool synchronous)
Events
event void captured(uint16_t time)
Commands - Details
clearOverflow
command void clearOverflow()
getEvent
command uint16_t getEvent()
isOverflowPending
command bool isOverflowPending()
- Returns:
-
TRUE if the capture register has overflowed
setEdge
command void setEdge(uint8_t cm)
- Parameters:
-
cm
- Capture Mode for edge capture.
enums exist for:
MSP430TIMER_CM_NONE is no capture.
MSP430TIMER_CM_RISING is rising edge capture.
MSP430TIMER_CM_FALLING is a falling edge capture.
MSP430TIMER_CM_BOTH captures on both rising and falling edges.
setSynchronous
command void setSynchronous(bool synchronous)
- Parameters:
-
synchronous
- TRUE to synchronize the timer capture with the
next timer clock instead of occurring asynchronously.
Events - Details
captured
event void captured(uint16_t time)
- Parameters:
-
time
- The time of the capture event