Define and functions required by UHC.
Macros | |
#define | UHI_CDC |
Global define which contains standard UHI API for UHC It must be added in USB_HOST_UHI define from conf_usb_host.h file. More... | |
Functions required by UHC | |
See uhi_api_t for the function descriptions | |
uhc_enum_status_t | uhi_cdc_install (uhc_device_t *dev) |
void | uhi_cdc_enable (uhc_device_t *dev) |
void | uhi_cdc_uninstall (uhc_device_t *dev) |
void | uhi_cdc_sof (bool b_micro) |
#define UHI_CDC |
Global define which contains standard UHI API for UHC It must be added in USB_HOST_UHI define from conf_usb_host.h file.
void uhi_cdc_enable | ( | uhc_device_t * | dev | ) |
References uhi_cdc_dev_t::b_enabled, uhi_cdc_dev_t::dev, UHI_CDC_CHANGE, and uhi_cdc_sof().
uhc_enum_status_t uhi_cdc_install | ( | uhc_device_t * | dev | ) |
References uhc_device_t::address, Assert, uhi_cdc_dev_t::b_enabled, uhi_cdc_line_t::b_trans_ongoing, usb_iface_desc_t::bDescriptorType, usb_iface_desc_t::bInterfaceClass, usb_iface_desc_t::bInterfaceNumber, usb_iface_desc_t::bInterfaceProtocol, usb_iface_desc_t::bInterfaceSubClass, usb_iface_desc_t::bLength, uhi_cdc_line_t::buf_sel, uhi_cdc_line_t::buffer, uhi_cdc_line_t::buffer_size, CDC_CLASS_COMM, CDC_CLASS_DATA, CDC_CS_INTERFACE, CDC_PROTOCOL_V25TER, CDC_SCS_CALL_MGMT, CDC_SUBCLASS_ACM, uhc_device_t::conf_desc, uhi_cdc_dev_t::dev, uhi_cdc_port_t::ep_comm_in, uhi_cdc_line_t::ep_data, uhi_cdc_port_t::iface_comm, uhi_cdc_port_t::iface_data, le16_to_cpu, uhi_cdc_port_t::line_rx, uhi_cdc_port_t::line_tx, Max, uhi_cdc_buf_t::nb, uhi_cdc_dev_t::nb_port, NULL, uhi_cdc_dev_t::port, uhi_cdc_buf_t::pos, uhi_cdc_buf_t::ptr, uhc_device_t::speed, UHC_ENUM_HARDWARE_LIMIT, UHC_ENUM_SOFTWARE_LIMIT, UHC_ENUM_SUCCESS, UHC_ENUM_UNSUPPORTED, uhd_ep_alloc(), UHI_CDC_BUFFER_SIZE, uhi_cdc_free_device(), USB_DT_ENDPOINT, USB_DT_INTERFACE, USB_EP_DIR_IN, USB_EP_TYPE_BULK, USB_EP_TYPE_INTERRUPT, and usb_conf_desc_t::wTotalLength.
void uhi_cdc_sof | ( | bool | b_micro | ) |
References uhi_cdc_dev_t::b_enabled, uhi_cdc_dev_t::dev, uhi_cdc_port_t::line_rx, uhi_cdc_port_t::line_tx, NULL, uhi_cdc_get_port(), uhi_cdc_rx_update(), uhi_cdc_tx_update(), and UNUSED.
Referenced by uhi_cdc_enable().
void uhi_cdc_uninstall | ( | uhc_device_t * | dev | ) |
References uhi_cdc_dev_t::dev, NULL, UHI_CDC_CHANGE, and uhi_cdc_free_device().