18 #ifndef _RTEMS_TIMESPEC_H 19 #define _RTEMS_TIMESPEC_H 49 const struct timespec *time
68 const struct timespec *lhs,
69 const struct timespec *rhs
87 struct timespec *time,
88 const struct timespec *add
105 const struct timespec *time
123 struct timespec *time
142 const struct timespec *start,
143 const struct timespec *end,
144 struct timespec *result
164 const struct timespec *time,
166 struct timespec *result
186 const struct timespec *lhs,
187 const struct timespec *rhs,
188 uint32_t *ival_percentage,
189 uint32_t *fval_percentage
206 struct timespec *_time,
208 uint32_t _nanoseconds
223 struct timespec *_time
239 struct timespec *_time
255 struct timespec *_time
273 const struct timespec *_lhs,
274 const struct timespec *_rhs
291 const struct timespec *lhs,
292 const struct timespec *rhs
#define _Timespec_Equal_to(lhs, rhs)
The Timespec "equal to" operator.
Definition: timespec.h:164
uint32_t _Timespec_To_ticks(const struct timespec *time)
Converts timespec to number of ticks.
Definition: timespectoticks.c:27
RTEMS_INLINE_ROUTINE time_t rtems_timespec_get_seconds(struct timespec *_time)
Get seconds portion of timespec.
Definition: timespec.h:238
RTEMS_INLINE_ROUTINE void rtems_timespec_divide(const struct timespec *lhs, const struct timespec *rhs, uint32_t *ival_percentage, uint32_t *fval_percentage)
Divide timespec.
Definition: timespec.h:185
RTEMS_INLINE_ROUTINE bool rtems_timespec_greater_than(const struct timespec *_lhs, const struct timespec *_rhs)
Timespec greater than operator.
Definition: timespec.h:272
#define _Timespec_Set(_time, _seconds, _nanoseconds)
Set timespec to seconds nanosecond.
Definition: timespec.h:52
bool _Timespec_Is_valid(const struct timespec *time)
Checks if timespec is valid.
Definition: timespecisvalid.c:24
void _Timespec_Divide_by_integer(const struct timespec *time, uint32_t iterations, struct timespec *result)
Divides timespec by an integer.
Definition: timespecdividebyinteger.c:25
#define _Timespec_Greater_than(_lhs, _rhs)
The Timespec "greater than" operator.
Definition: timespec.h:150
void _Timespec_Subtract(const struct timespec *start, const struct timespec *end, struct timespec *result)
Subtracts two timespec.
Definition: timespecsubtract.c:24
RTEMS_INLINE_ROUTINE uint32_t rtems_timespec_to_ticks(const struct timespec *time)
Convert timespec to number of ticks.
Definition: timespec.h:104
#define _Timespec_Set_to_zero(_time)
Sets the Timespec to Zero.
Definition: timespec.h:66
void _Timespec_Divide(const struct timespec *lhs, const struct timespec *rhs, uint32_t *ival_percentage, uint32_t *fval_percentage)
Divides a timespec by another timespec.
Definition: timespecdivide.c:25
RTEMS_INLINE_ROUTINE void rtems_timespec_divide_by_integer(const struct timespec *time, uint32_t iterations, struct timespec *result)
Divide timespec by integer.
Definition: timespec.h:163
RTEMS_INLINE_ROUTINE bool rtems_timespec_is_valid(const struct timespec *time)
Is timespec valid.
Definition: timespec.h:48
RTEMS_INLINE_ROUTINE void rtems_timespec_subtract(const struct timespec *start, const struct timespec *end, struct timespec *result)
Subtract two timespec.
Definition: timespec.h:141
#define _Timespec_Get_seconds(_time)
Get seconds portion of timespec.
Definition: timespec.h:81
bool _Timespec_Less_than(const struct timespec *lhs, const struct timespec *rhs)
Checks if the left hand side timespec is less than the right one.
Definition: timespeclessthan.c:25
RTEMS_INLINE_ROUTINE uint32_t rtems_timespec_get_nanoseconds(struct timespec *_time)
Get nanoseconds portion of timespec.
Definition: timespec.h:254
void _Timespec_From_ticks(uint32_t ticks, struct timespec *time)
Converts ticks to timespec.
Definition: timespecfromticks.c:25
RTEMS_INLINE_ROUTINE void rtems_timespec_zero(struct timespec *_time)
Zero timespec.
Definition: timespec.h:222
Contains Helpers for Manipulating Timespecs.
RTEMS_INLINE_ROUTINE void rtems_timespec_set(struct timespec *_time, time_t _seconds, uint32_t _nanoseconds)
Set timespec to seconds nanosecond.
Definition: timespec.h:205
#define _Timespec_Get_nanoseconds(_time)
Get nanoseconds portion of timespec.
Definition: timespec.h:93
RTEMS_INLINE_ROUTINE bool rtems_timespec_equal_to(const struct timespec *lhs, const struct timespec *rhs)
Timespec equal to Operator.
Definition: timespec.h:290
#define RTEMS_INLINE_ROUTINE
Definition: basedefs.h:66
uint32_t _Timespec_Add_to(struct timespec *time, const struct timespec *add)
Adds two timespecs.
Definition: timespecaddto.c:25
RTEMS_INLINE_ROUTINE uint32_t rtems_timespec_add_to(struct timespec *time, const struct timespec *add)
Add to a timespec.
Definition: timespec.h:86
RTEMS_INLINE_ROUTINE bool rtems_timespec_less_than(const struct timespec *lhs, const struct timespec *rhs)
Timespec less than operator.
Definition: timespec.h:67
RTEMS_INLINE_ROUTINE void rtems_timespec_from_ticks(uint32_t ticks, struct timespec *time)
Convert ticks to timespec.
Definition: timespec.h:121