on ethernetMacsecStatus
Valid for: CANoe DE • CANoe4SW DE NoteThis procedure can only be used in network-based configurations.
Function Syntax
on ethernetMacsecStatus *; // form 1on ethernetMacsecStatus ethernetPort::<Network>::<PortName>; // form 2
Description
This event procedure is called when the Ethernet MACsec connection state of a physical port has changed. To access the control information, use the selectors. The keywordthis is available in this procedure to access the status information.
Parameters
- ethernetPort::
<NetworkName>::<PortName>: Ethernet port qualification.
Selectors
-
status: The current status.
- Value: Meaning
0: kMacSecStateUnknown1: kMacSecStateUp2: kMacSecStateDown3: kMacSecTxSaAdded4: kMacSecTxSaRemoved5: kMacSecTxSaEnabled6: kMacSecTxSaDisabled7: kMacSecRxSaAdded8: kMacSecRxSaRemoved9: kMacSecRxSaEnabled10: kMacSecRxSaDisabled
- Type: enum ethernetMacsecState
- Access Limitation: Read only
- Value: Meaning
-
msgChannel: Application channel, i.e. Eth 1
- Type: word
- Access Limitation: Read only
-
sciAddr: The secure channel id address
- Type: byte[6]
- Access Limitation: Read only
-
sciPort: The secure channel id port
- Type: word
- Access Limitation: Read only
-
AN: The association number
- Type: byte
- Access Limitation: Read only
-
hwPort: Port used for network-based access
- Type: ethernetPort
- Access Limitation: Read only
-
time_ns: Timestamp of the status change
- Type: int64
- Access Limitation: Read only