source: rtems-central/spec/rtems/timer/if/server-fire-when.yml @ fe2e2e9

Last change on this file since fe2e2e9 was fe2e2e9, checked in by Sebastian Huber <sebastian.huber@…>, on 01/25/21 at 17:08:01

spec: Use constraints for timer manager

  • Property mode set to 100644
File size: 2.7 KB
Line 
1SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
2brief: |
3  Fires the timer at the time of day using the Timer Server.
4copyrights:
5- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
6- Copyright (C) 1988, 2008 On-Line Applications Research Corporation (OAR)
7definition:
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: []
18description: |
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.
25enabled-by: true
26index-entries:
27- fire a task-based timer at time of day
28interface-type: function
29links:
30- role: interface-placement
31  uid: header
32- role: interface-ingroup
33  uid: group
34- role: constraint
35  uid: /constraint/directive-ctx-isr
36- role: constraint
37  uid: /constraint/directive-ctx-devinit
38- role: constraint
39  uid: /constraint/directive-ctx-task
40- role: constraint
41  uid: /constraint/directive-no-preempt
42name: rtems_timer_server_fire_when
43notes: null
44params:
45- description: is the timer identifier.
46  dir: null
47  name: id
48- description: is the time of day when the routine is fired.
49  dir: null
50  name: wall_time
51- description: is the routine to schedule.
52  dir: null
53  name: routine
54- description: is the argument passed to the routine when it is fired.
55  dir: null
56  name: user_data
57return:
58  return: null
59  return-values:
60  - description: |
61      The requested operation was successful.
62    value: ${../../status/if/successful:/name}
63  - description: |
64      The Timer Server was not initiated.
65    value: ${../../status/if/incorrect-state:/name}
66  - description: |
67      The system date and time was not set.
68    value: ${../../status/if/not-defined:/name}
69  - description: |
70      The ${.:/params[2]/name} parameter was ${/c/if/null:/name}.
71    value: ${../../status/if/invalid-address:/name}
72  - description: |
73      The ${.:/params[1]/name} parameter was ${/c/if/null:/name}.
74    value: ${../../status/if/invalid-address:/name}
75  - description: |
76      The time of day was invalid.
77    value: ${../../status/if/invalid-clock:/name}
78  - description: |
79      There was no timer associated with the identifier specified by
80      ${.:/params[0]/name}.
81    value: ${../../status/if/invalid-id:/name}
82type: interface
Note: See TracBrowser for help on using the repository browser.