Structures and functions required by UDC.
void udi_cdc_comm_disable |
( |
void |
| ) |
|
bool udi_cdc_comm_enable |
( |
void |
| ) |
|
References usb_cdc_line_coding_t::bCharFormat, usb_cdc_line_coding_t::bDataBits, usb_cdc_notify_msg_t::bmRequestType, usb_cdc_notify_msg_t::bNotification, usb_cdc_line_coding_t::bParityType, CPU_TO_LE16, CPU_TO_LE32, usb_cdc_line_coding_t::dwDTERate, usb_cdc_notify_serial_state_t::header, LE16, MREPEAT, UDI_CDC_COMM_IFACE_NUMBER_0, UDI_CDC_DEFAULT_DATABITS, UDI_CDC_DEFAULT_PARITY, UDI_CDC_DEFAULT_RATE, UDI_CDC_DEFAULT_STOPBITS, UDI_CDC_ENABLE_EXT, udi_cdc_nb_comm_enabled, UDI_CDC_PORT_NB, UDI_CDC_PORT_TO_IFACE_COMM, UDI_CDC_SET_CODING_EXT, udi_cdc_state, uid_cdc_state_msg, USB_REQ_CDC_NOTIFY_SERIAL_STATE, USB_REQ_DIR_IN, USB_REQ_RECIP_INTERFACE, USB_REQ_TYPE_CLASS, usb_cdc_notify_serial_state_t::value, usb_cdc_notify_msg_t::wIndex, usb_cdc_notify_msg_t::wLength, and usb_cdc_notify_msg_t::wValue.
bool udi_cdc_comm_setup |
( |
void |
| ) |
|
References usb_setup_req_t::bRequest, udd_ctrl_request_t::callback, CDC_CTRL_SIGNAL_ACTIVATE_CARRIER, CDC_CTRL_SIGNAL_DTE_PRESENT, udd_ctrl_request_t::payload, udd_ctrl_request_t::payload_size, udd_ctrl_request_t::req, udd_g_ctrlreq, Udd_setup_is_in, Udd_setup_is_out, Udd_setup_type, udi_cdc_line_coding_received(), UDI_CDC_SET_DTR_EXT, UDI_CDC_SET_RTS_EXT, udi_cdc_setup_to_port(), USB_REQ_CDC_GET_LINE_CODING, USB_REQ_CDC_SET_CONTROL_LINE_STATE, USB_REQ_CDC_SET_LINE_CODING, USB_REQ_TYPE_CLASS, usb_setup_req_t::wLength, and usb_setup_req_t::wValue.
void udi_cdc_data_disable |
( |
void |
| ) |
|
bool udi_cdc_data_enable |
( |
void |
| ) |
|
References udi_cdc_data_running, udi_cdc_nb_data_enabled, UDI_CDC_PORT_NB, udi_cdc_rx_buf_nb, udi_cdc_rx_buf_sel, udi_cdc_rx_pos, udi_cdc_rx_start(), udi_cdc_rx_trans_ongoing, udi_cdc_tx_both_buf_to_send, udi_cdc_tx_buf_nb, udi_cdc_tx_buf_sel, udi_cdc_tx_send(), udi_cdc_tx_sof_num, and udi_cdc_tx_trans_ongoing.
bool udi_cdc_data_setup |
( |
void |
| ) |
|
void udi_cdc_data_sof_notify |
( |
void |
| ) |
|
uint8_t udi_cdc_getsetting |
( |
void |
| ) |
|
Global structure which contains standard UDI API for UDC.
Initial value:= {
}
bool udi_cdc_comm_setup(void)
Definition: udi_cdc.c:368
void udi_cdc_comm_disable(void)
Definition: udi_cdc.c:351
uint8_t udi_cdc_getsetting(void)
Definition: udi_cdc.c:429
bool udi_cdc_comm_enable(void)
Definition: udi_cdc.c:258
Global structure which contains standard UDI API for UDC.
Initial value:= {
}
bool udi_cdc_data_enable(void)
Definition: udi_cdc.c:312
void udi_cdc_data_sof_notify(void)
Definition: udi_cdc.c:434
void udi_cdc_data_disable(void)
Definition: udi_cdc.c:357
uint8_t udi_cdc_getsetting(void)
Definition: udi_cdc.c:429
bool udi_cdc_data_setup(void)
Definition: udi_cdc.c:424