Skip to main content

EthernetMacsecSecureEntity

Valid for: CANoe DE

Function Syntax

EthernetMacsecSecureEntity <variable name>;

Method Syntax

Description

Defines a variable of type EthernetMacsecSecureEntity. A correctly initialized EthernetMacsecSecureEntity provides direct access to the MACsec implementation of a measurement port, either the implementation provided in your CANoe DE product (‘software implementation’) or in the driver software, and, finally, in the MACsec capable PHY (‘hardware implementation’). The methods provided by EthernetMacsecSecureEntity are the same as called by the MKA implemented in your CANoe DE product. An EthernetMacsecSecureEntity must be initialized using the function ethGetMacsecSecureEntity. Validity can be verified using the selector isValid.

Parameters

  • name: Variable name

Selectors

  • isValid: 1 if the secure entity has been correctly initialized, 0 otherwise. (Type: byte, Access: Read only)
  • hwPort: The measurement port this secure entity is associated with. (Type: ethernetPort, Access: Read only)

Example