summaryrefslogtreecommitdiffstats
path: root/spec/rtems/support/if/name-to-characters.yml
blob: 28b9f84e8d4ba66b667b03ae7ffa5bd84c88f35b (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
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 (http://www.embedded-brains.de)
- Copyright (C) 2008 On-Line Applications Research Corporation (OAR)
definition:
  default:
    body: |
      *${.:/params[1]/name} = (char) ( ${.:/params[0]/name} >> 24 );
      *${.:/params[2]/name} = (char) ( ${.:/params[0]/name} >> 16 );
      *${.:/params[3]/name} = (char) ( ${.:/params[0]/name} >> 8 );
      *${.:/params[4]/name} = (char) ${.:/params[0]/name};
    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
interface-type: function
links:
- role: interface-placement
  uid: header
- role: interface-ingroup
  uid: group
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:
  return: null
  return-values: []
type: interface