module ti.sysbios.hal.SecondsCallback |
|
|
|
A Seconds module that calls user-supplied callbacks
ISeconds implementation that uses user callback functions
This module provides a implementation of the
ISystemSupport
interface that simply calls back the user defined functions to enable the
System module's functionality.
[
more ... ]
#include <ti/sysbios/hal/SecondsCallback.h>
Functions common to all ISeconds modules |
UInt32 | |
Void | |
Functions common to all target modules |
|
|
Typedefs |
typedef UInt32 | |
typedef Void | |
Constants |
| |
| |
DETAILS
ISeconds implementation that uses user callback functions
This module provides a implementation of the
ISystemSupport
interface that simply calls back the user defined functions to enable the
System module's functionality.
Configuration is as shown below.
var SecondsCallback = xdc.useModule('xdc.runtime.SecondsCallback');
SecondsCallback.getFxn = "&userSetSeconds";
SecondsCallback.setFxn = "&userGetSeconds";
typedef SecondsCallback_GetFxn |
|
'get' function signature
typedef UInt32 (*SecondsCallback_GetFxn)();
typedef SecondsCallback_SetFxn |
|
'set' function signature
typedef Void (*SecondsCallback_SetFxn)(UInt32);
config SecondsCallback_getFxn // module-wide |
|
User supplied 'get' function
DETAILS
This function is called when the application calls
Seconds.get() function.
By default, this function is configured with a default abort function.
This default abort function spins forever and never returns.
config SecondsCallback_setFxn // module-wide |
|
User supplied 'set' function
DETAILS
This function is called when the application calls
Seconds.set() function.
By default, this function is configured with a default abort function.
This default abort function spins forever and never returns.
SecondsCallback_get() // module-wide |
|
Returns number of seconds since 1970 (the Unix epoch)
UInt32 SecondsCallback_get();
DETAILS
The user must call Seconds_set() before making any calls to Seconds_get(),
otherwise the value returned by Seconds_get() will be meaningless.
SecondsCallback_set() // module-wide |
|
Update the real time clock with number of seconds since 1970
Void SecondsCallback_set(UInt32 seconds);
Module-Wide Built-Ins |
|
// Get this module's unique id
Bool SecondsCallback_Module_startupDone();
// Test if this module has completed startup
// The heap from which this module allocates memory
Bool SecondsCallback_Module_hasMask();
// Test whether this module has a diagnostics mask
Bits16 SecondsCallback_Module_getMask();
// Returns the diagnostics mask for this module
Void SecondsCallback_Module_setMask(Bits16 mask);
// Set the diagnostics mask for this module
var SecondsCallback = xdc.useModule('ti.sysbios.hal.SecondsCallback');
module-wide config parameters
generated on Wed, 15 Apr 2015 00:18:20 GMT