module ti.mcu.msp430.runtime.utils.Clock |
![](../../../../../Arrow_left.png) |
![](../../../../../Arrow_up.png) |
![](../../../../../Arrow_right.png) |
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 |
![](../../../../../Arrow_up.png) |
const Clock_T0A5 |
![](../../../../../Arrow_up.png) |
const Clock_T0B7 |
![](../../../../../Arrow_up.png) |
const Clock_T1A2 |
![](../../../../../Arrow_up.png) |
const Clock_T1A3 |
![](../../../../../Arrow_up.png) |
const Clock_T1A5 |
![](../../../../../Arrow_up.png) |
const Clock_T2A3 |
![](../../../../../Arrow_up.png) |
const Clock_TA2 |
![](../../../../../Arrow_up.png) |
const Clock_TA3 |
![](../../../../../Arrow_up.png) |
const Clock_TA5 |
![](../../../../../Arrow_up.png) |
const Clock_TB3 |
![](../../../../../Arrow_up.png) |
const Clock_TB7 |
![](../../../../../Arrow_up.png) |
typedef Clock_TimeValue |
![](../../../../../Arrow_up.png) |
Time value type
typedef UInt16 Clock_TimeValue;
struct Clock_TimerRegs |
![](../../../../../Arrow_up.png) |
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 |
![](../../../../../Arrow_up.png) |
Base address of timer peripheral to use
DETAILS
Timer B on 2274
config Clock_fastClockKHz // module-wide |
![](../../../../../Arrow_up.png) |
Main System clock frequency (KHz)
extern const Int Clock_fastClockKHz;
config Clock_slowClockHz // module-wide |
![](../../../../../Arrow_up.png) |
Auxiliary clock frequency (Hz)
extern const Int Clock_slowClockHz;
Clock_delay() // module-wide |
![](../../../../../Arrow_up.png) |
Spin for specified number of micro seconds
Void Clock_delay(UInt16 usec);
Clock_getTime() // module-wide |
![](../../../../../Arrow_up.png) |
Get the current time in Auxiliary clock ticks
Clock_sleep() // module-wide |
![](../../../../../Arrow_up.png) |
Idle the CPU for specified number of micro seconds
Void Clock_sleep(UInt16 usec, UInt lpm);
Module-Wide Built-Ins |
![](../../../../../Arrow_up.png) |
// 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 Fri, 14 Sep 2012 21:28:31 GMT