summaryrefslogtreecommitdiffstats
path: root/spec/rtems/support/if/name-to-characters.yml
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rtems/support/if/name-to-characters.yml')
-rw-r--r--spec/rtems/support/if/name-to-characters.yml51
1 files changed, 51 insertions, 0 deletions
diff --git a/spec/rtems/support/if/name-to-characters.yml b/spec/rtems/support/if/name-to-characters.yml
new file mode 100644
index 00000000..28b9f84e
--- /dev/null
+++ b/spec/rtems/support/if/name-to-characters.yml
@@ -0,0 +1,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