@CHIP-RTOS C Library - RTOS API
Set system time and date with
int RTX_Set_TimeDate_us ( const TimeDateFineS far *td );
- Input parameter, pointer to TimeDateFineS
containing time/date information set by user.
- The Day Of Week field (.dow
) in TimeDateFineS
need not be set by caller. This API function computes this
field based on the other member data.
The microsecond resolution exceeds the accuracy with which
this API can actually set the time and date due to the speed
of the software. This function requires around 280 microseconds
execution time. The time mark to which the specified time and
date are assigned is read within 20 microseconds of the time at
which this API was called, assuming that no interrupts were
serviced in the meantime.
This API may be called from within any form of
Interrupt Service routine, although due to its long
execution time this may not be appropriate for your
Inside this API the interrupts are masked for short periods
of time and then restored to the their masking state on entry.
- This library function invokes a RTOS software interrupt
to install a dynamic link into the RTOS.
Refer to this RTOS API function's
for more details.
- RTX API Overview
Supported since or modified in @CHIP-RTOS version
This API List
List of C Libraries
@CHIP-RTOS Main Index
End of document