BSP430  20141115
Board Support Package for MSP430 microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Data Fields
sBSP430eventPeriodicConfig Struct Reference

#include <bsp430/utility/event.h>

Data Fields

sBSP430timerMuxAlarm alarm_
 
unsigned long interval_tck
 
unsigned char tag
 
unsigned char flags
 

Detailed Description

Information used to support a periodic event.

This uses the Multiplexed Alarm Infrastructure with wrapper functions. It allows xBSP430eventRecordEvent_ni() to be invoked at a regular interval automatically. The tag and flags fields of the event may be customized. The u.p field of the event will point to this configuration structure.

Note
None of the fields in this structure may be mutated while the periodic event is registered.

Field Documentation

sBSP430timerMuxAlarm sBSP430eventPeriodicConfig::alarm_

A standard alarm structure. No fields in this need be initialized: that will be done when iBSP430eventPeriodicAdd_ni() is invoked to register the periodic event.

unsigned char sBSP430eventPeriodicConfig::flags

The flags parameter passed to xBSP430eventRecordEvent_ni() in the callback for alarm_.

unsigned long sBSP430eventPeriodicConfig::interval_tck

The interval at which the periodic alarm should repeat. The periodic event infrastructure will automatically reschedule the event to be posted again this many ticks after the last posting. A zero interval results in a single event with no re-schedule.

Note that the interval is not coupled to the processing of the event; an unresponsive handler may result in multiple events being queued.

unsigned char sBSP430eventPeriodicConfig::tag

The tag parameter passed to xBSP430eventRecordEvent_ni() in the callback for alarm_.


The documentation for this struct was generated from the following file: