Open topic with navigation CAPL Functions » Ethernet » Function Overview » ethGetPhyStateDocumentation Index
Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
ethGetPhyState
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
Gets 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.
Parameters
-
channel: Ethernet channel number.
Value range: 1..32 -
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
-
PHY state:
- 1: ePhyNormalState
- 2: ePhySleepState
- 3: ePhyPowerOffState
- 4: ePhySleepRequestState
- 5: ePhySleepLocalState
- 6: ePhySleepLocalRequestState
- 0: An error occurred