interface ti.sysbios.interfaces.ISeconds

Seconds interface

XDCspec summary sourced in ti/sysbios/interfaces/ISeconds.xdc
interface ISeconds {  ...
// inherits xdc.runtime.IModule
XDCspec declarations sourced in ti/sysbios/interfaces/ISeconds.xdc
 
struct ISeconds.Time

Structure to hold a time value in seconds plus nanoseconds

XDCspec declarations sourced in ti/sysbios/interfaces/ISeconds.xdc
struct Time {
    UInt32 secs;
    // Seconds
    UInt32 nsecs;
    // Nanoseconds
};
 
 
metaonly config ISeconds.common$  // module-wide

Common module configuration parameters

XDCspec declarations sourced in ti/sysbios/interfaces/ISeconds.xdc
metaonly config Types.Common$ common$;
 
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)

XDCspec declarations sourced in ti/sysbios/interfaces/ISeconds.xdc
UInt32 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.
 
ISeconds.getTime()  // module-wide

Fills in a Seconds_Time structure with seconds and nanoseconds elapsed since 1970 (the Unix epoch)

XDCspec declarations sourced in ti/sysbios/interfaces/ISeconds.xdc
UInt32 getTime(ISeconds.Time *ts);
 
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

XDCspec declarations sourced in ti/sysbios/interfaces/ISeconds.xdc
Void set(UInt32 seconds);
 
DETAILS
Note: This function is non-reentrant.
 
ISeconds.setTime()  // module-wide

Update the real time clock with the number of seconds and nanoseconds that have elapsed since 1970 (the Unix epoch). The Seconds_Time structure passed to setTime() contains the seconds and nanoseconds to set the real time clock to. This API can be called instead of Seconds_set(), if finer granularity of the time is required

XDCspec declarations sourced in ti/sysbios/interfaces/ISeconds.xdc
UInt32 setTime(ISeconds.Time *ts);
 
generated on Thu, 23 May 2019 00:23:08 GMT