module ti.mcu.msp430.runtime.utils.Clock |
|
|
|
Basic "wall clock" functions
#include <ti/mcu/msp430/runtime/utils/Clock.h>
Functions |
Void | |
| |
Void | |
Functions common to all target modules |
|
|
Defines |
#define | |
#define | |
#define | |
#define | |
#define | |
#define | |
#define | |
#define | |
#define | |
#define | |
#define | |
#define | |
Typedefs |
typedef struct | |
typedef UInt16 | |
Constants |
extern const Int | |
extern const Int | |
| |
const Clock_T0A3 |
|
const Clock_T0A5 |
|
const Clock_T0B7 |
|
const Clock_T1A2 |
|
const Clock_T1A3 |
|
const Clock_T1A5 |
|
const Clock_T2A3 |
|
const Clock_TA2 |
|
const Clock_TA3 |
|
const Clock_TA5 |
|
const Clock_TB3 |
|
const Clock_TB7 |
|
typedef Clock_TimeValue |
|
Time value type
typedef UInt16 Clock_TimeValue;
struct Clock_TimerRegs |
|
Timer peripheral register definition
typedef struct Clock_TimerRegs {
Bits16 CTL;
Bits16 CCTL[7];
Bits16 R;
Bits16 CCR[7];
Bits16 EX0;
Bits16 IV;
} Clock_TimerRegs;
config Clock_TIMER // module-wide |
|
Base address of timer peripheral to use
DETAILS
Timer B on 2274
config Clock_fastClockKHz // module-wide |
|
Main System clock frequency (KHz)
extern const Int Clock_fastClockKHz;
config Clock_slowClockHz // module-wide |
|
Auxiliary clock frequency (Hz)
extern const Int Clock_slowClockHz;
Clock_delay() // module-wide |
|
Spin for specified number of micro seconds
Void Clock_delay(UInt16 usec);
Clock_getTime() // module-wide |
|
Get the current time in Auxiliary clock ticks
Clock_sleep() // module-wide |
|
Idle the CPU for specified number of micro seconds
Void Clock_sleep(UInt16 usec, UInt lpm);
Module-Wide Built-Ins |
|
// Get this module's unique id
Bool Clock_Module_startupDone();
// Test if this module has completed startup
// The heap from which this module allocates memory
Bool Clock_Module_hasMask();
// Test whether this module has a diagnostics mask
Bits16 Clock_Module_getMask();
// Returns the diagnostics mask for this module
Void Clock_Module_setMask(Bits16 mask);
// Set the diagnostics mask for this module
var Clock = xdc.useModule('ti.mcu.msp430.runtime.utils.Clock');
module-wide constants & types
module-wide config parameters
generated on Thu, 27 Sep 2012 23:22:30 GMT