interface ti.sysbios.interfaces.ISeconds |
|
|
|
Seconds interface
interface ISeconds {
module-wide constants & types
};
module-wide config parameters
module-wide functions
}
struct ISeconds.Time |
|
Structure to hold a time value in seconds plus nanoseconds
struct Time {
UInt32 secs;
// Seconds
UInt32 nsecs;
// Nanoseconds
};
metaonly config ISeconds.common$ // module-wide |
|
Common module configuration parameters
DETAILS
All modules have this configuration parameter. Its name
contains the '$' character to ensure it does not conflict with
configuration parameters declared by the module. This allows
new configuration parameters to be added in the future without
any chance of breaking existing modules.
ISeconds.get() // module-wide |
|
Returns number of seconds since 1970 (the Unix epoch)
DETAILS
The user must call Seconds_set() before making any calls to Seconds_get(),
otherwise the value returned by Seconds_get() will be meaningless.
ISeconds.getTime() // module-wide |
|
Fills in a Seconds_Time structure with seconds and nanoseconds
elapsed since 1970 (the Unix epoch)
DETAILS
Seconds_set() must have been called before making any calls to
Seconds_getTime(), otherwise the value returned by Seconds_getTime()
will be meaningless.
ISeconds.set() // module-wide |
|
Update the real time clock with number of seconds since 1970
Void set(UInt32 seconds);
DETAILS
Note: This function is non-reentrant.
generated on Fri, 10 Jun 2016 23:29:35 GMT