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

Last change on this file since c970d63 was c970d63, checked in by Sebastian Huber <sebastian.huber@…>, on 12/01/20 at 13:57:03

spec: Review Timer Manager API

  • Property mode set to 100644
File size: 2.5 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
34name: rtems_timer_server_fire_when
35notes: |
36  This directive will not cause the running task to be preempted.
37params:
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
50return:
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}
75type: interface
Note: See TracBrowser for help on using the repository browser.