blob: 8bb2aa9a98b75126bbaa78a09fc9768cf7fb02b0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
SPDX-License-Identifier: CC-BY-SA-4.0
copyrights:
- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
enabled-by: true
links:
- role: requirement-refinement
uid: ../if/container-of
non-functional-type: interface
rationale: null
references: []
requirement-type: non-functional
text: |
When argument ${../if/container-of/params[0]/name} points to a
member field of a structure or union or C++ class,
and argument ${../if/container-of/params[1]/name} is the C type of this
structure or union or C++ class,
and argument ${../if/container-of/params[2]/name} is the name of
this member field,
the ${../if/container-of:/name} macro shall result in a pointer
to the start address of the structure or union or C++ class.
type: requirement
|