RNDIS Class Device Mode Configuration and State Structure. More...
#include <RNDISClassDevice.h>
Data Fields | |
struct { | |
MAC_Address_t AdapterMACAddress | |
char * AdapterVendorDescription | |
uint8_t ControlInterfaceNumber | |
USB_Endpoint_Table_t DataINEndpoint | |
USB_Endpoint_Table_t DataOUTEndpoint | |
uint8_t * MessageBuffer | |
uint16_t MessageBufferLength | |
USB_Endpoint_Table_t NotificationEndpoint | |
} | Config |
struct { | |
uint32_t CurrPacketFilter | |
uint8_t CurrRNDISState | |
bool ResponseReady | |
} | State |
Class state structure. An instance of this structure should be made for each RNDIS interface within the user application, and passed to each of the RNDIS class driver functions as the RNDISInterfaceInfo
parameter. This stores each RNDIS interface's configuration and state information.
MAC_Address_t USB_ClassInfo_RNDIS_Device_t::AdapterMACAddress |
MAC address of the adapter.
char* USB_ClassInfo_RNDIS_Device_t::AdapterVendorDescription |
String description of the adapter vendor.
struct { ... } USB_ClassInfo_RNDIS_Device_t::Config |
Config data for the USB class interface within the device. All elements in this section must be set or the interface will fail to enumerate and operate correctly.
uint8_t USB_ClassInfo_RNDIS_Device_t::ControlInterfaceNumber |
Interface number of the RNDIS control interface within the device.
uint32_t USB_ClassInfo_RNDIS_Device_t::CurrPacketFilter |
Current packet filter mode, used internally by the class driver.
uint8_t USB_ClassInfo_RNDIS_Device_t::CurrRNDISState |
Current RNDIS state of the adapter, a value from the RNDIS_States_t enum.
USB_Endpoint_Table_t USB_ClassInfo_RNDIS_Device_t::DataINEndpoint |
Data IN endpoint configuration table.
USB_Endpoint_Table_t USB_ClassInfo_RNDIS_Device_t::DataOUTEndpoint |
Data OUT endpoint configuration table.
uint8_t* USB_ClassInfo_RNDIS_Device_t::MessageBuffer |
Buffer where RNDIS messages can be stored by the internal driver. This should be at least 132 bytes in length for minimal functionality.
uint16_t USB_ClassInfo_RNDIS_Device_t::MessageBufferLength |
Length in bytes of the MessageBuffer RNDIS buffer.
USB_Endpoint_Table_t USB_ClassInfo_RNDIS_Device_t::NotificationEndpoint |
Notification IN Endpoint configuration table.
bool USB_ClassInfo_RNDIS_Device_t::ResponseReady |
Internal flag indicating if a RNDIS message is waiting to be returned to the host.
struct { ... } USB_ClassInfo_RNDIS_Device_t::State |
State data for the USB class interface within the device. All elements in this section are reset to their defaults when the interface is enumerated.