GetNrOfCOReceivers
This reference collection includes Vector documentation reproduced with permission. Snippets may require configuration-specific symbols and are not all standalone programs. Sources and validation limits.
Syntax
dword GetNrOfCOReceivers(communicationObject co)
Function
Returns the current number of receiver endpoints at a signal or PDU communication object. Note the number of endpoints may vary over time for some objects. The function is particularly useful to iterate over all receivers.
Parameters
co Communication object
Return Values
The current number of receiver endpoints.
Reference example from the CANoe 12 help. This is an incomplete context fragment: omitted surrounding code is shown as comments. Do not paste it as a complete program.
for (i = 0; i < GetNrOfCOReceivers(MirrorState); ++i)
{
MirrorState.receiverSide[i].ResetValueState();
// // ... surrounding context omitted
}