EthernetMacsecSecureEntity::SetTxSAEnabled
CAPL Functions » Ethernet » Function Overview » EthernetMacsecSecureEntity::SetTxSAEnabled Valid for: CANoe DEMethod Syntax
Description
Enables or disables use of an existing secure association for transmission. Note that although more than one transmit SA may be enabled at the same time, only the last SA enabled will actually be used for transmission. If the last transmit SA previously enabled will be disabled, the SecY will not go back to the second last enabled transmit SA. Errors will occur when trying to send Ethernet frames in this state. Thus, to switch SAs, always obey the following order of operations:- Enable first transmit SA
- Enabled second transmit SA
- The first transmit SA can now be disabled
- Enable third transmit SA
- The second transmit SA can now be disabled
- …
Parameters
- sci: The secure channel id of the secure channel where this SA is part of.
- AN: The secure association number for the SA to be enabled or disabled.
- enabled: Specifies whether to enable or disable transmission for this SA.
Return Values
- byte: 1 if the call succeeded, 0 otherwise.
- The secure channel referred to by the sci does not exist.
- The AN is not in range 0..3.