summaryrefslogtreecommitdiffstats
path: root/spec/rtems/support/if/name-to-characters.yml
blob: 43928294529fdad36a52c5d1a544c9015a1ff540 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
brief: |
  Breaks the object name into the four component characters.
copyrights:
- Copyright (C) 2020 embedded brains GmbH & Co. KG
- Copyright (C) 2008 On-Line Applications Research Corporation (OAR)
definition:
  default:
    attributes: null
    body: |
      *${.:/params[1]/name} = (char) ( ( ( ${.:/params[0]/name} ) >> 24 ) & 0xff );
      *${.:/params[2]/name} = (char) ( ( ( ${.:/params[0]/name} ) >> 16 ) & 0xff );
      *${.:/params[3]/name} = (char) ( ( ( ${.:/params[0]/name} ) >> 8 ) & 0xff );
      *${.:/params[4]/name} = (char) ( ( ${.:/params[0]/name} ) & 0xff );
    params:
    - ${../../type/if/name:/name} ${.:/params[0]/name}
    - char *${.:/params[1]/name}
    - char *${.:/params[2]/name}
    - char *${.:/params[3]/name}
    - char *${.:/params[4]/name}
    return: void
  variants: []
description: null
enabled-by: true
index-entries: []
interface-type: function
links:
- role: interface-placement
  uid: header
- role: interface-ingroup
  uid: group
- role: constraint
  uid: /constraint/directive-ctx-any
- role: constraint
  uid: /constraint/directive-no-preempt
name: rtems_name_to_characters
notes: null
params:
- description: is the object name to break into four component characters.
  dir: null
  name: name
- description: is the first character of the object name.
  dir: out
  name: c1
- description: is the second character of the object name.
  dir: out
  name: c2
- description: is the third character of the object name.
  dir: out
  name: c3
- description: is the fourth character of the object name.
  dir: out
  name: c4
return: null
type: interface