ethSetPhyState
Valid for: CANoe DE • CANoe4SW DE Note: Please note that this functionality is hardware dependent:- VT6303 supports this functionality in channel-based and network-based access.
- The VN-family (e.g. VN5640) supports this functionality only in network-based access.
Function Syntax
Description
Sets the PHY state. Note:- This function can be used only for PHY types supporting this feature like TJA-1101.
- Form 1 and form 2 is only for channel-based access.
- Form 3 is only for network-based access.
- TC10 Sleep/Wakeup events can be sent with this function.
Parameters
- channel: Ethernet channel number. Value range: 1..32
-
phyState:
- 1: ePhyNormalState
- 2: ePhySleepState
- 3: ePhyPowerOffState
- 5: ePhySleepLocalState
- hwChannel: Hardware channel number. Vector network interface must support more than 1 hardware channel to use. Value range: 1..16
- port: Ethernet port. Only supported for network-based configurations and physical measurement ports.
Return Values
- 0: Success
- 1: Invalid channel or port.
- 2: Failed