Access signal groups.
More...
Access signal groups.
◆ kvaDbGetFirstSignalGroup()
◆ kvaDbGetNextSignalGroup()
Get the next signal group of a message.
Should be called after kvaDbGetFirstSignalGroup(). The order in which signal groups are returned is unspecified.
- Parameters
-
| mh | A message handle. |
[in,out] | sgh | A handle to the current, and afterward, next, signal group. |
- Returns
- kvaDbOK (zero) if success
-
kvaDbErr_xxx (negative) if failure
- See also
- kvaDbGetFirstSignalGroup
◆ kvaDbGetSignalGroupName()
Get the name of a signal group as a null-terminated string.
A truncated string will be returned if buf is too small and status will be kvaDbOK. The actual byte size, including null-terminator, will be stored to *len
.
- Parameters
-
| sgh | A signal group handle. |
[out] | buf | The signal group name. |
[in,out] | len | The length of the buffer that will hold the signal group name. |
- Returns
- kvaDbOK (zero) if success
-
kvaDbErr_xxx (negative) if failure
◆ kvaDbGetSignalGroupSize()
Get the number of signals in the signal group sgh.
- Parameters
-
| sgh | A signal group handle. |
[out] | out | The signal group cardinality. |
- Returns
- kvaDbOK (zero) if success
-
kvaDbErr_xxx (negative) if failure
◆ kvaDbIndexSignalGroup()
Get the signal group signal at index i.
Indices are stable only in the absense of insertions/removals. Valid values of i are below the result of kvaDbGetSignalGroupSize.
- Parameters
-
| sgh | A signal group handle. |
| i | The signal index. |
[out] | out | The resulting signal. |
- Returns
- kvaDbOK (zero) if success
-
kvaDbErr_xxx (negative) if failure