BSP430
20141115
Board Support Package for MSP430 microcontrollers
|
#include <bsp430/periph/timer.h>
Data Fields | |
hBSP430halTIMER | timer |
unsigned char | ccidx |
unsigned char | flags |
unsigned long | setting_tck |
iBSP430timerAlarmCallback_ni | callback_ni |
sBSP430halISRVoidChainNode | overflow_cb |
sBSP430halISRIndexedChainNode | cc_cb |
A structure holding information related to timer-based alarms.
iBSP430timerAlarmCallback_ni sBSP430timerAlarm::callback_ni |
The function invoked by the infrastructure when the alarm goes off. If this is a null pointer, the infrastructure will act as though it was a function that did nothing but return BSP430_HAL_ISR_CALLBACK_EXIT_LPM.
sBSP430halISRIndexedChainNode sBSP430timerAlarm::cc_cb |
The callback chain node used when the alarm must be hooked into a capture/compare chain.
unsigned char sBSP430timerAlarm::ccidx |
The capture/compare resource used by the alarm.
unsigned char sBSP430timerAlarm::flags |
Assorted flags recording alarm state. Bit values BSP430_TIMER_ALARM_FLAG_SET and BSP430_TIMER_ALARM_FLAG_ENABLED may be inspected; other bits are reserved for internal use.
sBSP430halISRVoidChainNode sBSP430timerAlarm::overflow_cb |
The callback chain node used when the alarm must be hooked into a timer overflow chain.
unsigned long sBSP430timerAlarm::setting_tck |
The absolute time as determined by timer at which the alarm fired (when the callback is invoked), or at which the next alarm should fire (when returning from callback with BSP430_HAL_ISR_CALLBACK_DISABLE_INTERRUPT cleared). This is the scheduled time of the alarm, not the time at which the callback is entered which is likely to be later due to processing overhead.
hBSP430halTIMER sBSP430timerAlarm::timer |
The timer registered as owner of this alarm structure.