RZT Flexible Software Package Documentation
Release v2.2.0
|
|
Interface for USB HCDC functions.
The USB HCDC interface provides USB HCDC functionality.
Data Structures | |
struct | usb_hcdc_encapsulated_t |
struct | usb_hcdc_abstractstate_t |
struct | usb_hcdc_countrysetting_t |
union | usb_hcdc_commfeature_t |
struct | usb_hcdc_linecoding_t |
struct | usb_hcdc_controllinestate_t |
struct | usb_hcdc_serialstate_t |
struct | usb_hcdc_breakduration_t |
struct | usb_hcdc_device_info_t |
struct | usb_hcdc_api_t |
struct | usb_hcdc_instance_t |
Enumerations | |
enum | usb_hcdc_data_bit_t |
enum | usb_hcdc_stop_bit_t |
enum | usb_hcdc_parity_bit_t |
enum | usb_hcdc_line_speed_t |
enum | usb_hcdc_feature_selector_t |
struct usb_hcdc_encapsulated_t |
struct usb_hcdc_abstractstate_t |
union usb_hcdc_commfeature_t |
Feature setting data
Data Fields | ||
---|---|---|
usb_hcdc_abstractstate_t | abstract_state | ACM settings bitmap. |
usb_hcdc_countrysetting_t | country_setting | Country code. |
struct usb_hcdc_linecoding_t |
Virtual UART configuration (line coding)
Data Fields | ||
---|---|---|
usb_hcdc_line_speed_t | dwdte_rate | Data terminal rate in bits per second. |
usb_hcdc_stop_bit_t | bchar_format | Stop bits. |
usb_hcdc_parity_bit_t | bparity_type | Parity. |
usb_hcdc_data_bit_t | bdata_bits | Data bits. |
uint8_t | rsv | Reserved. |
struct usb_hcdc_controllinestate_t |
struct usb_hcdc_serialstate_t |
Virtual UART state bitmap
struct usb_hcdc_breakduration_t |
struct usb_hcdc_device_info_t |
struct usb_hcdc_api_t |
USB HCDC functions implemented at the HAL layer will follow this API.
Data Fields | |
fsp_err_t(* | controlDataRead )(usb_ctrl_t *const p_api_ctrl, uint8_t *p_buf, uint32_t size, uint8_t device_address) |
fsp_err_t(* | deviceRegister )(usb_ctrl_t *const p_api_ctrl, uint16_t vendor_id, uint16_t product_id) |
fsp_err_t(* | infoGet )(usb_ctrl_t *const p_api_ctrl, usb_hcdc_device_info_t *p_info, uint8_t device_address) |
fsp_err_t(* usb_hcdc_api_t::controlDataRead) (usb_ctrl_t *const p_api_ctrl, uint8_t *p_buf, uint32_t size, uint8_t device_address) |
Read Control Data (CDC Interrupt IN data)
[in] | p_api_ctrl | Pointer to control structure. |
[in] | p_buf | Pointer to area that stores read data. |
[in] | size | Read request size. |
[in] | device_address | Device address. |
fsp_err_t(* usb_hcdc_api_t::deviceRegister) (usb_ctrl_t *const p_api_ctrl, uint16_t vendor_id, uint16_t product_id) |
Register the specified vendor class device in the device table.
[in] | p_api_ctrl | Pointer to control structure. |
[in] | vendor_id | Vendor ID. |
[in] | product_id | Product ID. |
fsp_err_t(* usb_hcdc_api_t::infoGet) (usb_ctrl_t *const p_api_ctrl, usb_hcdc_device_info_t *p_info, uint8_t device_address) |
Get connected device information.
[in] | p_api_ctrl | Pointer to control structure. |
[in] | p_info | Pointer to store CDC device information. |
[in] | device_address | Device address. |
struct usb_hcdc_instance_t |
This structure encompasses everything that is needed to use an instance of this interface.
Data Fields | ||
---|---|---|
usb_ctrl_t * | p_ctrl | Pointer to the control structure for this instance. |
usb_cfg_t const * | p_cfg | Pointer to the configuration structure for this instance. |
usb_hcdc_api_t const * | p_api | Pointer to the API structure for this instance. |
enum usb_hcdc_data_bit_t |
enum usb_hcdc_stop_bit_t |
Virtual UART bitrate
Feature Selector