USB host configuration file. More...
#include "board.h"#include "uhi_cdc.h"#include "usart_cdc.h"#include "ui.h"Go to the source code of this file.
Defines | |
| #define | PINS_USART PIN_USART2_TXD, PIN_USART2_RXD |
| #define | USART_ENABLE() |
| #define | USART_DISABLE() |
| #define | USART_BASE USART2 |
| #define | USART_ID ID_USART2 |
| #define | USART_HANDLER USART2_Handler |
| #define | USART_INT_IRQn USART2_IRQn |
| #define | USART_INT_LEVEL 3 |
| #define | USB_HOST_UHI UHI_CDC |
| #define | USB_HOST_POWER_MAX 500 |
| #define | USB_HOST_HS_SUPPORT |
| #define | UHC_MODE_CHANGE(b_host_mode) ui_usb_mode_change(b_host_mode) |
| #define | UHC_VBUS_CHANGE(b_present) ui_usb_vbus_change(b_present) |
| #define | UHC_VBUS_ERROR() ui_usb_vbus_error() |
| #define | UHC_CONNECTION_EVENT(dev, b_present) |
| #define | UHC_WAKEUP_EVENT() ui_usb_wakeup_event() |
| #define | UHC_SOF_EVENT() ui_usb_sof_event() |
| #define | UHC_ENUM_EVENT(dev, b_status) ui_usb_enum_event(dev,b_status) |
| #define | UHI_CDC_CHANGE(dev, b_plug) |
| #define | UHI_CDC_RX_NOTIFY() uart_rx_notify() |
USB host configuration file.
Definition in file conf_usb_host.h.
| #define UHC_CONNECTION_EVENT | ( | dev, | ||
| b_present | ||||
| ) |
ui_usb_connection_event(dev, \
b_present)
To notify that a device has been connected or disconnected.
Definition at line 79 of file conf_usb_host.h.
| #define UHC_ENUM_EVENT | ( | dev, | ||
| b_status | ||||
| ) | ui_usb_enum_event(dev,b_status) |
Called when a USB device configuration must be chosen. Thus, the application can choose either a configuration number for this device or a configuration number 0 to reject it. If callback not defined the configuration 1 is chosen.
Called when a USB device enumeration is completed.
Definition at line 96 of file conf_usb_host.h.
| #define UHC_MODE_CHANGE | ( | b_host_mode | ) | ui_usb_mode_change(b_host_mode) |
USB Host callbacks
To notify that the USB mode are switched automatically. This is possible only when ID pin is available.
Definition at line 68 of file conf_usb_host.h.
| #define UHC_SOF_EVENT | ( | ) | ui_usb_sof_event() |
Called for each received SOF each 1 ms. Note: Available in High and Full speed mode
Definition at line 87 of file conf_usb_host.h.
| #define UHC_VBUS_CHANGE | ( | b_present | ) | ui_usb_vbus_change(b_present) |
To notify that the Vbus level has changed. Available only in USB hardware with Vbus monitoring.
Definition at line 72 of file conf_usb_host.h.
| #define UHC_VBUS_ERROR | ( | ) | ui_usb_vbus_error() |
To notify that a Vbus error has occurred. Available only in USB hardware with Vbus monitoring.
Definition at line 76 of file conf_usb_host.h.
| #define UHC_WAKEUP_EVENT | ( | ) | ui_usb_wakeup_event() |
Called when a USB device or the host have wake up the USB line.
Definition at line 83 of file conf_usb_host.h.
| #define UHI_CDC_CHANGE | ( | dev, | ||
| b_plug | ||||
| ) |
USB Interface Configuration Configuration of CDC interface
Definition at line 112 of file conf_usb_host.h.
| #define USB_HOST_HS_SUPPORT |
Authorize the USB HUB support
Authorize the USB host to run in High Speed
Definition at line 59 of file conf_usb_host.h.
| #define USB_HOST_POWER_MAX 500 |
Maximum current allowed on Vbus (mA)
Definition at line 52 of file conf_usb_host.h.
| #define USB_HOST_UHI UHI_CDC |
USB Host Configuration
Array of UHI APIs Define the list of UHI supported by USB host.
Definition at line 49 of file conf_usb_host.h.
1.7.1