56#ifndef _RTEMS_RTEMS_TIMER_H
57#define _RTEMS_RTEMS_TIMER_H
86#define TIMER_CLASS_BIT_NOT_DORMANT 0x4
96#define TIMER_CLASS_BIT_ON_TASK 0x2
105#define TIMER_CLASS_BIT_TIME_OF_DAY 0x1
237#define RTEMS_TIMER_SERVER_DEFAULT_PRIORITY ( (rtems_task_priority) -1 )
This header file provides Classic API directive attributes.
uint32_t rtems_attribute
This type represents Classic API attributes.
Definition: attr.h:96
rtems_status_code
This enumeration provides status codes for directives of the Classic API.
Definition: status.h:85
rtems_status_code rtems_timer_reset(rtems_id id)
Resets the timer.
Definition: timerreset.c:44
rtems_timer_service_routine(* rtems_timer_service_routine_entry)(rtems_id, void *)
This type defines the prototype of routines which can be fired by directives of the Timer Manager.
Definition: timer.h:259
rtems_status_code rtems_timer_server_fire_after(rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data)
Fires the timer after the interval using the Timer Server.
Definition: timerserverfireafter.c:44
rtems_status_code rtems_timer_create(rtems_name name, rtems_id *id)
Creates a timer.
Definition: timercreate.c:212
rtems_status_code rtems_timer_delete(rtems_id id)
Deletes the timer.
Definition: timerdelete.c:44
#define TIMER_CLASS_BIT_NOT_DORMANT
This timer class bit indicates that the timer is not dormant.
Definition: timer.h:86
rtems_status_code rtems_timer_server_fire_when(rtems_id id, const rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data)
Fires the timer at the time of day using the Timer Server.
Definition: timerserverfirewhen.c:44
rtems_status_code rtems_timer_cancel(rtems_id id)
Cancels the timer.
Definition: timercancel.c:44
rtems_status_code rtems_timer_fire_when(rtems_id id, const rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data)
Fires the timer at the time of day.
Definition: timerfirewhen.c:44
rtems_status_code rtems_timer_ident(rtems_name name, rtems_id *id)
Identifies a timer by the object name.
Definition: timerident.c:45
rtems_status_code rtems_timer_initiate_server(rtems_task_priority priority, size_t stack_size, rtems_attribute attribute_set)
Initiates the Timer Server.
Definition: timerserver.c:243
void rtems_timer_service_routine
This type defines the return type of routines which can be fired by directives of the Timer Manager.
Definition: timer.h:249
rtems_status_code rtems_timer_get_information(rtems_id id, rtems_timer_information *the_info)
Gets information about the timer.
Definition: timergetinfo.c:44
Timer_Classes
The timer class indicates how the timer was most recently fired.
Definition: timer.h:114
#define TIMER_CLASS_BIT_TIME_OF_DAY
This timer class bit indicates that the timer uses a time of day.
Definition: timer.h:105
rtems_status_code rtems_timer_fire_after(rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data)
Fires the timer after the interval.
Definition: timerfireafter.c:44
#define TIMER_CLASS_BIT_ON_TASK
This timer class bit indicates that the timer routine executes in a task context.
Definition: timer.h:96
@ TIMER_TIME_OF_DAY
This timer class indicates that the timer is currently in use as an time of day timer which will fire...
Definition: timer.h:137
@ TIMER_TIME_OF_DAY_ON_TASK
This timer class indicates that the timer is currently in use as an time of day timer which will fire...
Definition: timer.h:144
@ TIMER_INTERVAL
This timer class indicates that the timer is currently in use as an interval timer which will fire in...
Definition: timer.h:124
@ TIMER_INTERVAL_ON_TASK
This timer class indicates that the timer is currently in use as an interval timer which will fire in...
Definition: timer.h:130
@ TIMER_DORMANT
This timer class indicates that the timer was never in use.
Definition: timer.h:118
uint32_t rtems_name
This type represents Classic API object names.
Definition: types.h:226
uint32_t rtems_task_priority
This integer type represents task priorities of the Classic API.
Definition: types.h:257
Objects_Id rtems_id
This type represents RTEMS object identifiers.
Definition: types.h:94
Watchdog_Interval rtems_interval
This type represents clock tick intervals.
Definition: types.h:114
uint32_t Watchdog_Interval
Type is used to specify the length of intervals.
Definition: watchdogticks.h:59
This header file provides types used by the Classic API.
This header file provides the status codes of Classic API directives and support functions.
This type represents Classic API calendar times.
Definition: types.h:266
This header file provides the interfaces of the Watchdog Handler related to watchdog ticks which are ...