LUFA Library  210130
USB_ClassInfo_RNDIS_Device_t Struct Reference

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
 

Detailed Description

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.

Field Documentation

◆ AdapterMACAddress

MAC_Address_t USB_ClassInfo_RNDIS_Device_t::AdapterMACAddress

MAC address of the adapter.

◆ AdapterVendorDescription

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.

◆ ControlInterfaceNumber

uint8_t USB_ClassInfo_RNDIS_Device_t::ControlInterfaceNumber

Interface number of the RNDIS control interface within the device.

◆ CurrPacketFilter

uint32_t USB_ClassInfo_RNDIS_Device_t::CurrPacketFilter

Current packet filter mode, used internally by the class driver.

◆ CurrRNDISState

uint8_t USB_ClassInfo_RNDIS_Device_t::CurrRNDISState

Current RNDIS state of the adapter, a value from the RNDIS_States_t enum.

◆ DataINEndpoint

USB_Endpoint_Table_t USB_ClassInfo_RNDIS_Device_t::DataINEndpoint

Data IN endpoint configuration table.

◆ DataOUTEndpoint

USB_Endpoint_Table_t USB_ClassInfo_RNDIS_Device_t::DataOUTEndpoint

Data OUT endpoint configuration table.

◆ MessageBuffer

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.

◆ MessageBufferLength

uint16_t USB_ClassInfo_RNDIS_Device_t::MessageBufferLength

Length in bytes of the MessageBuffer RNDIS buffer.

◆ NotificationEndpoint

USB_Endpoint_Table_t USB_ClassInfo_RNDIS_Device_t::NotificationEndpoint

Notification IN Endpoint configuration table.

◆ ResponseReady

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.


The documentation for this struct was generated from the following file: