Common User Interface for USB host HID mouse application. More...
#include "USBH.h"
Go to the source code of this file.
Functions | |
void | ui_init (void) |
Initializes the user interface. | |
void | ui_usb_mode_change (bool b_host_mode) |
Notify that the USB mode are switched automatically. This is possible only when ID pin is available. | |
void | ui_usb_vbus_change (bool b_vbus_present) |
Notify that a Vbus are changed Available only in USB hardware with Vbus monitoring. | |
void | ui_usb_vbus_error (void) |
Notify that a Vbus error has occurred Available only in USB hardware with Vbus monitoring. | |
void | ui_usb_connection_event (USBH_device_t *dev, bool b_present) |
Notify that a USB device has been connected or disconnected. | |
void | ui_usb_wakeup_event (void) |
Notify that a USB device or the host has wake up the USB line. | |
void | ui_usb_sof_event (void) |
Notify that a SOF has been sent (each 1 ms). | |
void | ui_usb_enum_event (USBH_device_t *dev, USBH_enum_status_t status) |
Notify the end of a USB device enumeration. | |
Callback to mange the HID mouse events | |
void | ui_uhi_hid_mouse_btn_left (bool b_state) |
void | ui_uhi_hid_mouse_btn_right (bool b_state) |
void | ui_uhi_hid_mouse_btn_middle (bool b_state) |
void | ui_uhi_hid_mouse_move (int8_t x, int8_t y, int8_t scroll) |
Common User Interface for USB host HID mouse application.
Definition in file ui.h.
void ui_usb_connection_event | ( | USBH_device_t * | dev, | |
bool | b_present | |||
) |
void ui_usb_enum_event | ( | USBH_device_t * | dev, | |
USBH_enum_status_t | status | |||
) |
void ui_usb_mode_change | ( | bool | b_host_mode | ) |
Notify that the USB mode are switched automatically. This is possible only when ID pin is available.
b_host_mode | true, if the host mode has been selected |
Notify that the USB mode are switched automatically. This is possible only when ID pin is available.
b_host_mode | true, if the host mode has been selected |
void ui_usb_vbus_change | ( | bool | b_vbus_present | ) |
Notify that a Vbus are changed Available only in USB hardware with Vbus monitoring.
b_vbus_present | true, if Vbus is high. |
Notify that a Vbus are changed Available only in USB hardware with Vbus monitoring.
b_vbus_present | true, if Vbus is high. |