![]() |
RTEMS 6.3
|
This group contains the Clock Manager implementation. More...
Enumerations | |
| enum | TOD_Ticks_validation { TOD_DISABLE_TICKS_VALIDATION = 0 , TOD_ENABLE_TICKS_VALIDATION = -1 } |
| The enumerators of this type determine if the ticks member is validated in _TOD_Validate(). More... | |
Functions | |
| rtems_status_code | _TOD_Validate (const rtems_time_of_day *the_tod, TOD_Ticks_validation ticks_validation) |
| Validates the time of day. | |
| Watchdog_Interval | _TOD_To_seconds (const rtems_time_of_day *the_tod) |
| TOD to Seconds. | |
This group contains the Clock Manager implementation.
| enum TOD_Ticks_validation |
The enumerators of this type determine if the ticks member is validated in _TOD_Validate().
| Enumerator | |
|---|---|
| TOD_DISABLE_TICKS_VALIDATION | Use this option to disable the validation of the ticks member in _TOD_Validate(). |
| TOD_ENABLE_TICKS_VALIDATION | Use this option to enable the validation of the ticks member in _TOD_Validate(). |
| Watchdog_Interval _TOD_To_seconds | ( | const rtems_time_of_day * | the_tod | ) |
TOD to Seconds.
This function returns the number seconds between the epoch and the_tod.
| [in] | the_tod | is the TOD structure to convert to seconds |
| This | method returns the number of seconds since epoch represented by the_tod |
| rtems_status_code _TOD_Validate | ( | const rtems_time_of_day * | the_tod, |
| TOD_Ticks_validation | ticks_validation ) |
Validates the time of day.
| the_tod | is the reference to the time of day structure to validate or NULL. |
| ticks_validation | indicates if the ticks member of the time of day should be validated. Use TOD_ENABLE_TICKS_VALIDATION to validate the ticks member. Use TOD_DISABLE_TICKS_VALIDATION to skip the validation of the ticks member. |
| RTEMS_SUCCESSFUL | the_tod references a valid time of day. |
| RTEMS_INVALID_CLOCK | the_tod references an invalid time of day. |
| RTEMS_INVALID_ADDRESS | the_tod reference is NULL. |