Data Structures | |
struct | S_line_coding |
Functions | |
void | cdc_get_line_coding (void) |
This function manages reception of line coding parameters (baudrate...). More... | |
void | cdc_set_control_line_state (void) |
This function manages the SET_CONTROL_LINE_LINE_STATE CDC request. More... | |
void | cdc_set_line_coding (void) |
This function manages reception of line coding parameters (baudrate...). More... | |
void | usb_user_endpoint_init (uint8_t) |
This function configures the endpoints of the device application. More... | |
bool | usb_user_get_descriptor (uint8_t, uint8_t) |
This function returns the size and the pointer on a user information structure. More... | |
bool | usb_user_read_request (uint8_t, uint8_t) |
This function is called by the standard USB read request function when the USB request is not supported. More... | |
void cdc_get_line_coding | ( | void | ) |
This function manages reception of line coding parameters (baudrate...).
References S_line_coding::bCharFormat, S_line_coding::bDataBits, S_line_coding::bParityType, S_line_coding::dwDTERate, EP_CONTROL, Is_usb_control_in_ready, Is_usb_control_out_received, LSB0, LSB1, LSB2, LSB3, Usb_ack_control_in_ready_send, Usb_ack_control_out_received_free, Usb_ack_setup_received_free, Usb_reset_endpoint_fifo_access, and Usb_write_endpoint_data.
Referenced by usb_user_read_request().
void cdc_set_control_line_state | ( | void | ) |
This function manages the SET_CONTROL_LINE_LINE_STATE CDC request.
References Is_usb_control_in_ready, Usb_ack_control_in_ready_send, and Usb_ack_setup_received_free.
Referenced by usb_user_read_request().
void cdc_set_line_coding | ( | void | ) |
This function manages reception of line coding parameters (baudrate...).
References usart_options_t::baudrate, S_line_coding::bCharFormat, S_line_coding::bDataBits, S_line_coding::bParityType, usart_options_t::channelmode, usart_options_t::charlength, DBG_USART, S_line_coding::dwDTERate, EP_CONTROL, Is_usb_control_in_ready, Is_usb_control_out_received, LSB0, LSB1, LSB2, LSB3, usart_options_t::paritytype, pcl_freq_param, usart_options_t::stopbits, USART_1_5_STOPBITS, USART_1_STOPBIT, USART_2_STOPBITS, USART_EVEN_PARITY, usart_init_rs232(), USART_MARK_PARITY, USART_NO_PARITY, USART_NORMAL_CHMODE, USART_ODD_PARITY, USART_SPACE_PARITY, Usb_ack_control_in_ready_send, Usb_ack_control_out_received_free, Usb_ack_setup_received_free, Usb_read_endpoint_data, and Usb_reset_endpoint_fifo_access.
Referenced by usb_user_read_request().
void usb_user_endpoint_init | ( | uint8_t | conf_nb | ) |
This function configures the endpoints of the device application.
This function is called when the set configuration request has been received.
The core of this function should be correctly rewritten depending on the USB device application characteristics (the USB device application has specific endpoint configuration).
This function is called when the set configuration request has been received.
References DIRECTION_IN, DIRECTION_OUT, DOUBLE_BANK, EP_ATTRIBUTES_1, EP_ATTRIBUTES_2, EP_ATTRIBUTES_3, EP_SIZE_1_FS, EP_SIZE_1_HS, EP_SIZE_2_FS, EP_SIZE_2_HS, EP_SIZE_3, INT_EP, Is_usb_full_speed_mode, RX_EP, SINGLE_BANK, TX_EP, and Usb_configure_endpoint.
Referenced by usb_set_configuration().
bool usb_user_get_descriptor | ( | uint8_t | , |
uint8_t | |||
) |
This function returns the size and the pointer on a user information structure.
References data_to_transfer, LANG_ID, MAN_INDEX, pbuffer, PROD_INDEX, SN_INDEX, STRING_DESCRIPTOR, usb_user_language_id, usb_user_manufacturer_string_descriptor, usb_user_product_string_descriptor, and usb_user_serial_number.
Referenced by usb_get_descriptor().
bool usb_user_read_request | ( | uint8_t | type, |
uint8_t | request | ||
) |
This function is called by the standard USB read request function when the USB request is not supported.
This function returns true when the request is processed. This function returns false if the request is not supported. In this case, a STALL handshake will be automatically sent by the standard USB read request function.
References cdc_get_line_coding(), cdc_set_control_line_state(), cdc_set_line_coding(), GET_LINE_CODING, SET_CONTROL_LINE_STATE, and SET_LINE_CODING.
Referenced by usb_process_request().