VSF Documented
Data Structures | Macros | Typedefs | Enumerations | Variables
vsf_usb_CDCNCM.h File Reference

Go to the source code of this file.

Data Structures

struct  usb_cdcncm_ntb_param_t
 
struct  usb_cdcncm_ntb_input_size_t
 
union  usb_cdcncm_nth_t
 
union  usb_cdcncm_ndp_t
 

Macros

#define USB_CDCNCM_CAP_SetEthernetPacketFilter   (1 << 0)
 
#define USB_CDCNCM_CAP_NetAddress   (1 << 1)
 
#define USB_CDCNCM_CAP_EncapsulatedCmdResp   (1 << 2)
 
#define USB_CDCNCM_CAP_MaxDatagramSize   (1 << 3)
 
#define USB_CDCNCM_CAP_CrcMode   (1 << 4)
 
#define USB_CDCNCM_CAP_NtbInputSize8   (1 << 5)
 
#define USB_CDCNCM_NTH16_SIG   0x484D434E
 
#define USB_CDCNCM_NTH32_SIG   0x686D636E
 
#define USB_CDCNCM_NDP16_SIG_NOCRC   0x304D434E
 
#define USB_CDCNCM_NDP16_SIG_CRC   0x314D434E
 
#define USB_CDCNCM_NDP32_SIG_NOCRC   0x306D636E
 
#define USB_CDCNCM_NDP32_SIG_CRC   0x316D636E
 
#define USB_CDCNCM_NTB_PARAM_NTB16   (1 << 0)
 
#define USB_CDCNCM_NTB_PARAM_NTB32   (1 << 1)
 

Typedefs

typedef struct usb_cdcncm_ntb_param_t usb_cdcncm_ntb_param_t
 
typedef struct usb_cdcncm_ntb_input_size_t usb_cdcncm_ntb_input_size_t
 
typedef enum usb_cdcncm_req_t usb_cdcncm_req_t
 
typedef union usb_cdcncm_nth_t usb_cdcncm_nth_t
 
typedef union usb_cdcncm_ndp_t usb_cdcncm_ndp_t
 

Enumerations

enum  usb_cdcncm_req_t {
  USB_CDCNCM_REQ_SET_ETHERNET_MULTICAST_FILTERS = 0x40 ,
  USB_CDCNCM_REQ_SET_ETHERNET_POWER_MANAGEMENT_PATTERN_FILTER = 0x41 ,
  USB_CDCNCM_REQ_GET_ETHERNET_POWER_MANAGEMENT_PATTERN_FILTER = 0x42 ,
  USB_CDCNCM_REQ_SET_ETHERNET_PACKET_FILTER = 0x43 ,
  USB_CDCNCM_REQ_GET_ETHERNET_STATIC = 0x44 ,
  USB_CDCNCM_REQ_GET_NTB_PARAMETERS = 0x80 ,
  USB_CDCNCM_REQ_GET_NET_ADDRESS = 0x81 ,
  USB_CDCNCM_REQ_SET_NET_ADDRESS = 0x82 ,
  USB_CDCNCM_REQ_GET_NTB_FORMAT = 0x83 ,
  USB_CDCNCM_REQ_SET_NTB_FORMAT = 0x84 ,
  USB_CDCNCM_REQ_GET_NTB_INPUT_SIZE = 0x85 ,
  USB_CDCNCM_REQ_SET_NTB_INPUT_SIZE = 0x86 ,
  USB_CDCNCM_REQ_GET_MAX_DATAGRAM_SIZE = 0x87 ,
  USB_CDCNCM_REQ_SET_MAX_DATAGRAM_SIZE = 0x88 ,
  USB_CDCNCM_REQ_GET_CRC_MODE = 0x89 ,
  USB_CDCNCM_REQ_SET_CRC_MODE = 0x8A
}
 

Variables

struct usb_cdcncm_ntb_param_t VSF_CAL_PACKED
 

Macro Definition Documentation

◆ USB_CDCNCM_CAP_SetEthernetPacketFilter

#define USB_CDCNCM_CAP_SetEthernetPacketFilter   (1 << 0)

◆ USB_CDCNCM_CAP_NetAddress

#define USB_CDCNCM_CAP_NetAddress   (1 << 1)

◆ USB_CDCNCM_CAP_EncapsulatedCmdResp

#define USB_CDCNCM_CAP_EncapsulatedCmdResp   (1 << 2)

◆ USB_CDCNCM_CAP_MaxDatagramSize

#define USB_CDCNCM_CAP_MaxDatagramSize   (1 << 3)

◆ USB_CDCNCM_CAP_CrcMode

#define USB_CDCNCM_CAP_CrcMode   (1 << 4)

◆ USB_CDCNCM_CAP_NtbInputSize8

#define USB_CDCNCM_CAP_NtbInputSize8   (1 << 5)

◆ USB_CDCNCM_NTH16_SIG

#define USB_CDCNCM_NTH16_SIG   0x484D434E

◆ USB_CDCNCM_NTH32_SIG

#define USB_CDCNCM_NTH32_SIG   0x686D636E

◆ USB_CDCNCM_NDP16_SIG_NOCRC

#define USB_CDCNCM_NDP16_SIG_NOCRC   0x304D434E

◆ USB_CDCNCM_NDP16_SIG_CRC

#define USB_CDCNCM_NDP16_SIG_CRC   0x314D434E

◆ USB_CDCNCM_NDP32_SIG_NOCRC

#define USB_CDCNCM_NDP32_SIG_NOCRC   0x306D636E

◆ USB_CDCNCM_NDP32_SIG_CRC

#define USB_CDCNCM_NDP32_SIG_CRC   0x316D636E

◆ USB_CDCNCM_NTB_PARAM_NTB16

#define USB_CDCNCM_NTB_PARAM_NTB16   (1 << 0)

◆ USB_CDCNCM_NTB_PARAM_NTB32

#define USB_CDCNCM_NTB_PARAM_NTB32   (1 << 1)

Typedef Documentation

◆ usb_cdcncm_ntb_param_t

◆ usb_cdcncm_ntb_input_size_t

◆ usb_cdcncm_req_t

◆ usb_cdcncm_nth_t

◆ usb_cdcncm_ndp_t

Enumeration Type Documentation

◆ usb_cdcncm_req_t

Enumerator
USB_CDCNCM_REQ_SET_ETHERNET_MULTICAST_FILTERS 
USB_CDCNCM_REQ_SET_ETHERNET_POWER_MANAGEMENT_PATTERN_FILTER 
USB_CDCNCM_REQ_GET_ETHERNET_POWER_MANAGEMENT_PATTERN_FILTER 
USB_CDCNCM_REQ_SET_ETHERNET_PACKET_FILTER 
USB_CDCNCM_REQ_GET_ETHERNET_STATIC 
USB_CDCNCM_REQ_GET_NTB_PARAMETERS 
USB_CDCNCM_REQ_GET_NET_ADDRESS 
USB_CDCNCM_REQ_SET_NET_ADDRESS 
USB_CDCNCM_REQ_GET_NTB_FORMAT 
USB_CDCNCM_REQ_SET_NTB_FORMAT 
USB_CDCNCM_REQ_GET_NTB_INPUT_SIZE 
USB_CDCNCM_REQ_SET_NTB_INPUT_SIZE 
USB_CDCNCM_REQ_GET_MAX_DATAGRAM_SIZE 
USB_CDCNCM_REQ_SET_MAX_DATAGRAM_SIZE 
USB_CDCNCM_REQ_GET_CRC_MODE 
USB_CDCNCM_REQ_SET_CRC_MODE 

Variable Documentation

◆ VSF_CAL_PACKED

union usb_cdcncm_ndp_t VSF_CAL_PACKED