1 | SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause |
---|
2 | brief: | |
---|
3 | Fires the timer at the time of day using the Timer Server. |
---|
4 | copyrights: |
---|
5 | - Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) |
---|
6 | - Copyright (C) 1988, 2008 On-Line Applications Research Corporation (OAR) |
---|
7 | definition: |
---|
8 | default: |
---|
9 | attributes: null |
---|
10 | body: null |
---|
11 | params: |
---|
12 | - ${../../type/if/id:/name} ${.:/params[0]/name} |
---|
13 | - ${../../type/if/time-of-day:/name} *${.:/params[1]/name} |
---|
14 | - ${service-routine-entry:/name} ${.:/params[2]/name} |
---|
15 | - void *${.:/params[3]/name} |
---|
16 | return: ${../../status/if/code:/name} |
---|
17 | variants: [] |
---|
18 | description: | |
---|
19 | This directive initiates the timer specified by ${.:/params[0]/name}. If the |
---|
20 | timer is running, it is automatically canceled before being initiated. The |
---|
21 | timer is scheduled to fire at the time of day specified by |
---|
22 | ${.:/params[1]/name}. When the timer fires, the timer service routine |
---|
23 | ${.:/params[2]/name} will be invoked with the argument ${.:/params[3]/name} |
---|
24 | in the context of the Timer Server task. |
---|
25 | enabled-by: true |
---|
26 | index-entries: |
---|
27 | - fire a task-based timer at time of day |
---|
28 | interface-type: function |
---|
29 | links: |
---|
30 | - role: interface-placement |
---|
31 | uid: header |
---|
32 | - role: interface-ingroup |
---|
33 | uid: group |
---|
34 | name: rtems_timer_server_fire_when |
---|
35 | notes: | |
---|
36 | This directive will not cause the running task to be preempted. |
---|
37 | params: |
---|
38 | - description: is the timer identifier. |
---|
39 | dir: null |
---|
40 | name: id |
---|
41 | - description: is the time of day when the routine is fired. |
---|
42 | dir: null |
---|
43 | name: wall_time |
---|
44 | - description: is the routine to schedule. |
---|
45 | dir: null |
---|
46 | name: routine |
---|
47 | - description: is the argument passed to the routine when it is fired. |
---|
48 | dir: null |
---|
49 | name: user_data |
---|
50 | return: |
---|
51 | return: null |
---|
52 | return-values: |
---|
53 | - description: | |
---|
54 | The requested operation was successful. |
---|
55 | value: ${../../status/if/successful:/name} |
---|
56 | - description: | |
---|
57 | The Timer Server was not initiated. |
---|
58 | value: ${../../status/if/incorrect-state:/name} |
---|
59 | - description: | |
---|
60 | The system date and time was not set. |
---|
61 | value: ${../../status/if/not-defined:/name} |
---|
62 | - description: | |
---|
63 | The ${.:/params[2]/name} parameter was ${/c/if/null:/name}. |
---|
64 | value: ${../../status/if/invalid-address:/name} |
---|
65 | - description: | |
---|
66 | The ${.:/params[1]/name} parameter was ${/c/if/null:/name}. |
---|
67 | value: ${../../status/if/invalid-address:/name} |
---|
68 | - description: | |
---|
69 | The time of day was invalid. |
---|
70 | value: ${../../status/if/invalid-clock:/name} |
---|
71 | - description: | |
---|
72 | There was no timer associated with the identifier specified by |
---|
73 | ${.:/params[0]/name}. |
---|
74 | value: ${../../status/if/invalid-id:/name} |
---|
75 | type: interface |
---|