18#ifndef __VSF_USB_CDCNCM_H__
19#define __VSF_USB_CDCNCM_H__
28#define USB_CDCNCM_CAP_SetEthernetPacketFilter (1 << 0)
29#define USB_CDCNCM_CAP_NetAddress (1 << 1)
30#define USB_CDCNCM_CAP_EncapsulatedCmdResp (1 << 2)
31#define USB_CDCNCM_CAP_MaxDatagramSize (1 << 3)
32#define USB_CDCNCM_CAP_CrcMode (1 << 4)
33#define USB_CDCNCM_CAP_NtbInputSize8 (1 << 5)
35#define USB_CDCNCM_NTB16 (1 << 0)
36#define USB_CDCNCM_NTB32 (1 << 1)
38#define USB_CDCNCM_NTH16_SIG 0x484D434E
39#define USB_CDCNCM_NTH32_SIG 0x686D636E
40#define USB_CDCNCM_NDP16_SIG_NOCRC 0x304D434E
41#define USB_CDCNCM_NDP16_SIG_CRC 0x314D434E
42#define USB_CDCNCM_NDP32_SIG_NOCRC 0x306D636E
43#define USB_CDCNCM_NDP32_SIG_CRC 0x316D636E
45#define USB_CDCNCM_NTH16_LEN 12
46#define USB_CDCNCM_NTH32_LEN 16
84#define USB_CDCNCM_NTB_PARAM_NTB16 (1 << 0)
85#define USB_CDCNCM_NTB_PARAM_NTB32 (1 << 1)
unsigned short uint16_t
Definition stdint.h:7
unsigned uint32_t
Definition stdint.h:9
unsigned char uint8_t
Definition stdint.h:5
Definition vsf_usb_CDCNCM.h:52
uint8_t bLength
Definition vsf_usb_CDCNCM.h:53
uint8_t bDescriptorType
Definition vsf_usb_CDCNCM.h:54
uint8_t bDescriptorSubType
Definition vsf_usb_CDCNCM.h:55
uint16_t bcdNcmVersion
Definition vsf_usb_CDCNCM.h:57
uint8_t bmNetworkCapabilities
Definition vsf_usb_CDCNCM.h:58
Definition vsf_usb_CDCNCM.h:62
uint32_t dwNtbInMaxSize
Definition vsf_usb_CDCNCM.h:65
uint16_t wNdpOutPayloadRemainder
Definition vsf_usb_CDCNCM.h:72
uint16_t wNdpOutDivisor
Definition vsf_usb_CDCNCM.h:71
uint16_t wNtbOutMaxDatagrams
Definition vsf_usb_CDCNCM.h:74
uint16_t bmNtbFormatsSupported
Definition vsf_usb_CDCNCM.h:64
uint16_t wNdpInPayloadRemainder
Definition vsf_usb_CDCNCM.h:67
uint16_t wNdpOutAlignment
Definition vsf_usb_CDCNCM.h:73
uint16_t wReservedZero
Definition vsf_usb_CDCNCM.h:69
uint32_t dwNtbOutMaxSize
Definition vsf_usb_CDCNCM.h:70
uint16_t wNdpInDivisor
Definition vsf_usb_CDCNCM.h:66
uint16_t wLength
Definition vsf_usb_CDCNCM.h:63
uint16_t wNdpInAlignment
Definition vsf_usb_CDCNCM.h:68
Definition vsf_usb_CDCNCM.h:130
uint16_t dwNextNdpIndex
Definition vsf_usb_CDCNCM.h:134
uint16_t wDatagramIndex
Definition vsf_usb_CDCNCM.h:136
struct usb_cdcncm_ndp_t::@171 ndp16
struct usb_cdcncm_ndp_t::@172 ndp32
struct usb_cdcncm_ndp_t::@171::@174 indexes[0]
uint32_t dwDatagramIndex
Definition vsf_usb_CDCNCM.h:147
uint32_t dwNextNdpIndex
Definition vsf_usb_CDCNCM.h:144
uint32_t dwReserved12
Definition vsf_usb_CDCNCM.h:145
struct usb_cdcncm_ndp_t::@173 VSF_CAL_PACKED
uint16_t wDatagramLength
Definition vsf_usb_CDCNCM.h:137
uint16_t wReserved6
Definition vsf_usb_CDCNCM.h:143
uint16_t wLength
Definition vsf_usb_CDCNCM.h:133
uint32_t dwDatagramLength
Definition vsf_usb_CDCNCM.h:148
uint32_t dwSignature
Definition vsf_usb_CDCNCM.h:132
Definition vsf_usb_CDCNCM.h:107
uint16_t wNdpIndex
Definition vsf_usb_CDCNCM.h:113
struct usb_cdcncm_nth_t::@168 nth16
uint16_t wSequence
Definition vsf_usb_CDCNCM.h:111
uint16_t wBlockLength
Definition vsf_usb_CDCNCM.h:112
uint32_t dwBlockLength
Definition vsf_usb_CDCNCM.h:119
struct usb_cdcncm_nth_t::@170 VSF_CAL_PACKED
uint32_t dwNdpIndex
Definition vsf_usb_CDCNCM.h:120
struct usb_cdcncm_nth_t::@169 nth32
uint32_t dwSignature
Definition vsf_usb_CDCNCM.h:109
uint16_t wHeaderLength
Definition vsf_usb_CDCNCM.h:110
struct usb_cdc_ncm_descriptor_t VSF_CAL_PACKED
usb_cdcncm_req_t
Definition vsf_usb_CDCNCM.h:87
@ USB_CDCNCM_REQ_GET_ETHERNET_STATIC
Definition vsf_usb_CDCNCM.h:92
@ USB_CDCNCM_REQ_SET_ETHERNET_POWER_MANAGEMENT_PATTERN_FILTER
Definition vsf_usb_CDCNCM.h:89
@ USB_CDCNCM_REQ_SET_ETHERNET_MULTICAST_FILTERS
Definition vsf_usb_CDCNCM.h:88
@ USB_CDCNCM_REQ_GET_NTB_FORMAT
Definition vsf_usb_CDCNCM.h:96
@ USB_CDCNCM_REQ_SET_NTB_FORMAT
Definition vsf_usb_CDCNCM.h:97
@ USB_CDCNCM_REQ_GET_NTB_PARAMETERS
Definition vsf_usb_CDCNCM.h:93
@ USB_CDCNCM_REQ_SET_NTB_INPUT_SIZE
Definition vsf_usb_CDCNCM.h:99
@ USB_CDCNCM_REQ_GET_NTB_INPUT_SIZE
Definition vsf_usb_CDCNCM.h:98
@ USB_CDCNCM_REQ_SET_MAX_DATAGRAM_SIZE
Definition vsf_usb_CDCNCM.h:101
@ USB_CDCNCM_REQ_GET_NET_ADDRESS
Definition vsf_usb_CDCNCM.h:94
@ USB_CDCNCM_REQ_GET_CRC_MODE
Definition vsf_usb_CDCNCM.h:102
@ USB_CDCNCM_REQ_SET_ETHERNET_PACKET_FILTER
Definition vsf_usb_CDCNCM.h:91
@ USB_CDCNCM_REQ_SET_CRC_MODE
Definition vsf_usb_CDCNCM.h:103
@ USB_CDCNCM_REQ_GET_ETHERNET_POWER_MANAGEMENT_PATTERN_FILTER
Definition vsf_usb_CDCNCM.h:90
@ USB_CDCNCM_REQ_SET_NET_ADDRESS
Definition vsf_usb_CDCNCM.h:95
@ USB_CDCNCM_REQ_GET_MAX_DATAGRAM_SIZE
Definition vsf_usb_CDCNCM.h:100