On Time RTOS-32 Documentation
Welcome
RTTarget-32
RTKernel-32
RTFiles-32
RTIP-32
RTPEG-32
RTUSB-32
RTUSB-32 Programming Manual
RTUSB-32 Reference Manual
Introduction
Initialization
Device Query
Device Configuration
Pipe I/O
Message Queues
Keyboard Class Driver
Mouse Class Driver
Touch Screen Driver
Printer Class Driver
Mass Storage Class Driver
AX772 USB-Ethernet Driver
AX172 USB-Ethernet Driver
CDC ECM USB-Ethernet Driver
Structure RTUSBCDCECMConfig
Function USBCDCECM
Function USBCDCECMInit
Function USBCDCECMStatus
Function USBCDCECMSendFrame
Function USBCDCECMAcceptMulticastList
Audio Class Driver
Media Transfer Protocol Class Driver
RTUSB-32 Error Codes and Diagnostics
|
Function USBCDCECMStatus
USBCDCECMStatus can be used to query the status of an interface:
int USBCDCECMStatus(int DeviceIndex);
ParametersDeviceIndexZero-based index of the CDC ECM interface.
return valueOne of the values given below or a negative error code on failure. Code RTU_DISCONNECTED means that no CDC ECM device is currently connected on the given index.
If an CDC ECM device is present on the interface, one of the following values will be returned:
Value |
Meaning |
0 |
The device is present, but no media mode has been established yet |
10 |
The device is connected at 10Mbs, half duplex mode |
20 |
The device is connected at 10Mbs, full duplex mode |
100 |
The device is connected at 100Mbs, half duplex mode |
200 |
The device is connected at 100Mbs, full duplex mode |
1000 |
The device is connected at 1000Mbs, half duplex mode |
2000 |
The device is connected at 1000Mbs, full duplex mode |
Function USBCDCECMInit
Function USBCDCECMSendFrame
|