RTEMS
Macros | Functions
clock.h File Reference

This header file defines the Clock Manager API. More...

#include <stdbool.h>
#include <stdint.h>
#include <time.h>
#include <rtems/config.h>
#include <sys/_timespec.h>
#include <sys/_timeval.h>
#include <rtems/rtems/status.h>
#include <rtems/rtems/types.h>
#include <rtems/score/watchdogticks.h>

Go to the source code of this file.

Macros

#define rtems_clock_get_ticks_per_second()   _Watchdog_Ticks_per_second
 %
 
#define rtems_clock_get_ticks_since_boot()   _Watchdog_Ticks_since_boot
 %
 

Functions

rtems_status_code rtems_clock_get_seconds_since_epoch (rtems_interval *the_interval)
 % More...
 
rtems_status_code rtems_clock_get_tod (rtems_time_of_day *time_buffer)
 % More...
 
rtems_status_code rtems_clock_get_tod_timeval (struct timeval *time)
 % More...
 
rtems_status_code rtems_clock_get_uptime (struct timespec *uptime)
 % More...
 
uint64_t rtems_clock_get_uptime_nanoseconds (void)
 %
 
time_t rtems_clock_get_uptime_seconds (void)
 %
 
void rtems_clock_get_uptime_timeval (struct timeval *uptime)
 % More...
 
rtems_status_code rtems_clock_set (const rtems_time_of_day *time_buffer)
 % More...
 
rtems_status_code rtems_clock_tick (void)
 %
 
static 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...
 
static rtems_interval rtems_clock_tick_later (rtems_interval delta)
 Returns the ticks counter value delta ticks in the future. More...
 
static 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...
 
Watchdog_Interval _TOD_To_seconds (const rtems_time_of_day *the_tod)
 % More...
 
bool _TOD_Validate (const rtems_time_of_day *the_tod)
 % More...
 

Detailed Description

This header file defines the Clock Manager API.

Definition in file clock.h.

Function Documentation

◆ _TOD_To_seconds()

Watchdog_Interval _TOD_To_seconds ( const rtems_time_of_day the_tod)

%

Parameters
the_tod%

Definition at line 45 of file clocktodtoseconds.c.

◆ _TOD_Validate()

bool _TOD_Validate ( const rtems_time_of_day the_tod)

%

Parameters
the_tod%

Definition at line 36 of file clocktodvalidate.c.