Data Structures | Enumerations | Functions

usb/include/usb_cdc.h File Reference

USB CDC Class Enumerations and Structures. More...

Go to the source code of this file.

Data Structures

struct  cdc_functional_descriptor_header
 CDC Functional Descriptor Header. More...
struct  cdc_acm_functional_descriptor
 CDC Abstract Control Management Functional Descriptor. More...
struct  cdc_union_functional_descriptor
 CDC Union Functional Registor. More...
struct  cdc_notification_header
struct  cdc_serial_state_notification
struct  cdc_line_coding
 CDC Line Coding Structure. More...

Enumerations

enum  CDCDescriptorTypes { DESC_CS_INTERFACE = 0x24, DESC_CS_ENDPOINT = 0x25 }
 

CDC Descriptor types: 5.2.3.


enum  CDCFunctionalDescriptorSubtypes { CDC_FUNCTIONAL_DESCRIPTOR_SUBTYPE_HEADER = 0x0, CDC_FUNCTIONAL_DESCRIPTOR_SUBTYPE_ACM = 0x2, CDC_FUNCTIONAL_DESCRIPTOR_SUBTYPE_UNION = 0x6 }
enum  CDCACMCapabilities { CDC_ACM_CAPABILITY_COMM_FEATURES = 0x1, CDC_ACM_CAPABILITY_LINE_CODINGS = 0x2, CDC_ACM_CAPABILITY_SEND_BREAK = 0x4, CDC_ACM_CAPABILITY_NETWORK_CONNECTION = 0x8 }
 

Abstract Control Management (ACM) capabilities.

More...
enum  CDCRequests {
  CDC_SEND_ENCAPSULATED_COMMAND = 0x0, CDC_GET_ENCAPSULATED_RESPONSE = 0x1, CDC_SET_COMM_FEATURE = 0x2, CDC_GET_COMM_FEATURE = 0x3,
  CDC_CLEAR_COMM_FEATURE = 0x4, CDC_SET_LINE_CODING = 0x20, CDC_GET_LINE_CODING = 0x21, CDC_SET_CONTROL_LINE_STATE = 0x22,
  CDC_SEND_BREAK = 0x23
}
 

CDC ACM Class Requests.

More...
enum  CDCCommFeatureSelector { CDC_FEATURE_ABSTRACT_STATE = 0x1, CDC_FEATURE_COUNTRY_SETTING = 0x2 }
 

CDC Communication Feature Selector Codes.

More...
enum  CDCCharFormat { CDC_CHAR_FORMAT_1_STOP_BIT = 0, CDC_CHAR_FORMAT_1_POINT_5_STOP_BITS = 1, CDC_CHAR_FORMAT_2_STOP_BITS = 2 }
 

CDC Character Format.

More...
enum  CDCParityType {
  CDC_PARITY_NONE = 0, CDC_PARITY_ODD = 1, CDC_PARITY_EVEN = 2, CDC_PARITY_MARK = 3,
  CDC_PARITY_SPACE = 4
}
 

CDC Parity Type.

More...
enum  CDCNotifications { CDC_NETWORK_CONNECTION = 0x0, CDC_RESPONSE_AVAILABLE = 0x1, CDC_SERIAL_STATE = 0x20 }
 

CDC Class-Specific Notification Codes.

More...

Functions

uint8_t process_cdc_setup_request (const struct setup_packet *setup)
 Process CDC Setup Request.
int8_t CDC_SEND_ENCAPSULATED_COMMAND_CALLBACK (uint8_t interface, uint16_t length)
 CDC SEND_ENCAPSULATED_COMMAND callback.
int16_t CDC_GET_ENCAPSULATED_RESPONSE_CALLBACK (uint8_t interface, uint16_t length, const void **response, usb_ep0_data_stage_callback *callback, void **context)
 CDC GET_ENCAPSULATED_RESPONSE callback.
int8_t CDC_SET_COMM_FEATURE_CALLBACK (uint8_t interface, bool idle_setting, bool data_multiplexed_state)
 CDC SET_COMM_FEATURE callback.
int8_t CDC_CLEAR_COMM_FEATURE_CALLBACK (uint8_t interface, bool idle_setting, bool data_multiplexed_state)
 CDC CLEAR_COMM_FEATURE callback.
int8_t CDC_GET_COMM_FEATURE_CALLBACK (uint8_t interface, bool *idle_setting, bool *data_multiplexed_state)
 CDC GET_COMM_FEATURE callback.
int8_t CDC_SET_LINE_CODING_CALLBACK (uint8_t interface, const struct cdc_line_coding *coding)
 CDC SET_LINE_CODING callback.
int8_t CDC_GET_LINE_CODING_CALLBACK (uint8_t interface, struct cdc_line_coding *coding)
 CDC GET_LINE_CODING callback.
int8_t CDC_SET_CONTROL_LINE_STATE_CALLBACK (uint8_t interface, bool dtr, bool dts)
 CDC SET_CONTROL_LINE_STATE callback.
int8_t CDC_SEND_BREAK_CALLBACK (uint8_t interface, uint16_t duration)
 CDC SEND_BREAK callback.

Detailed Description

USB CDC Class Enumerations and Structures.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator