ethGetLinkStatus
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
long ethGetLinkStatus( long channel ); // form 1long ethGetLinkStatus( long channel, long hwChannel ); // form 2long ethGetLinkStatus( ethernetPort port ); // form 3
Description
Returns the link status of the channel.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, described by network name and port name.
Return Values
- 0: Link down
- 1: Link up
- -1: Read link status failed