RTEMS CPU Kit with SuperCore
4.11.3
|
#include <rtems/score/watchdog.h>
#include <rtems/score/tod.h>
#include <rtems/rtems/status.h>
#include <rtems/rtems/types.h>
#include <rtems/config.h>
#include <rtems/score/timecounterimpl.h>
#include <sys/time.h>
Go to the source code of this file.
Enumerations | |
enum | rtems_clock_get_options { RTEMS_CLOCK_GET_TOD, RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH, RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, RTEMS_CLOCK_GET_TICKS_PER_SECOND, RTEMS_CLOCK_GET_TIME_VALUE } |
List of things which can be returned by the rtems_clock_get directive. More... | |
Functions | |
rtems_status_code | rtems_clock_get (rtems_clock_get_options option, void *time_buffer) |
Obtain Current Time of Day. More... | |
rtems_status_code | rtems_clock_get_tod (rtems_time_of_day *time_buffer) |
Obtain Current Time of Day (Classic TOD) More... | |
rtems_status_code | rtems_clock_get_tod_timeval (struct timeval *time) |
Obtain TOD in struct timeval Format. More... | |
rtems_status_code | rtems_clock_get_seconds_since_epoch (rtems_interval *the_interval) |
Obtain Seconds Since Epoch. More... | |
RTEMS_INLINE_ROUTINE rtems_interval | rtems_clock_get_ticks_since_boot (void) |
Gets the current ticks counter value. More... | |
RTEMS_INLINE_ROUTINE rtems_interval | rtems_clock_tick_later (rtems_interval delta) |
Returns the ticks counter value delta ticks in the future. More... | |
RTEMS_INLINE_ROUTINE rtems_interval | rtems_clock_tick_later_usec (rtems_interval delta_in_usec) |
Returns the ticks counter value at least delta microseconds in the future. More... | |
RTEMS_INLINE_ROUTINE bool | rtems_clock_tick_before (rtems_interval tick) |
Returns true if the current ticks counter value indicates a time before the time specified by the tick value and false otherwise. More... | |
rtems_interval | rtems_clock_get_ticks_per_second (void) |
Obtain Ticks Per Seconds. More... | |
rtems_status_code | rtems_clock_set (const rtems_time_of_day *time_buffer) |
Set the Current TOD. More... | |
rtems_status_code | rtems_clock_tick (void) |
Announce a Clock Tick. More... | |
rtems_status_code | rtems_clock_get_uptime (struct timespec *uptime) |
Obtain the System Uptime. More... | |
void | rtems_clock_get_uptime_timeval (struct timeval *uptime) |
Gets the System Uptime in the Struct Timeval Format. More... | |
RTEMS_INLINE_ROUTINE time_t | rtems_clock_get_uptime_seconds (void) |
Returns the system uptime in seconds. More... | |
uint64_t | rtems_clock_get_uptime_nanoseconds (void) |
Returns the system uptime in nanoseconds. More... | |
bool | _TOD_Validate (const rtems_time_of_day *the_tod) |
TOD Validate. More... | |
Watchdog_Interval | _TOD_To_seconds (const rtems_time_of_day *the_tod) |
TOD to Seconds. More... | |