|
VSF Documented
|
#include "component/usb/vsf_usb_cfg.h"#include "kernel/vsf_kernel.h"#include "component/usb/host/vsf_usbh.h"#include "./vsf_libusb_hcd.h"#include "utilities/ooc_class.h"#include "libusb.h"Data Structures | |
| struct | libusb_device_s |
| struct | libusb_device_handle_s |
| struct | libusb_device_descriptor |
| struct | libusb_config_descriptor |
| struct | vk_libusb_hcd_dev_t |
| struct | vk_libusb_hcd_t |
| struct | vk_libusb_hcd_urb_t |
Macros | |
| #define | __VSF_USBH_CLASS_IMPLEMENT_HCD__ |
| #define | __VSF_USBH_CLASS_IMPLEMENT_HUB__ |
| #define | __VSF_EDA_CLASS_INHERIT__ |
| #define | LIBUSB_CALL |
| #define | libusb_hotplug_register_callback(...) (LIBUSB_ERROR_NOT_SUPPORTED) |
| #define | libusb_has_capability(...) (false) |
| #define | VSF_EVT_LIBUSB_HCD_BASE ((VSF_EVT_USER + 0x100) & ~0xFF) |
| #define | VSF_LIBUSB_HCD_DEF_DEV(__N, __BIT) |
Typedefs | |
| typedef struct libusb_device_handle_s | libusb_device_handle |
| typedef struct libusb_device_s | libusb_device |
| typedef void * | libusb_context |
| typedef struct vk_libusb_hcd_dev_t | vk_libusb_hcd_dev_t |
| typedef struct vk_libusb_hcd_t | vk_libusb_hcd_t |
| typedef struct vk_libusb_hcd_urb_t | vk_libusb_hcd_urb_t |
| typedef enum vk_libusb_hcd_evt_t | vk_libusb_hcd_evt_t |
Enumerations | |
| enum | libusb_error { LIBUSB_SUCCESS = 0 , LIBUSB_ERROR_IO = -1 , LIBUSB_ERROR_INVALID_PARAM = -2 , LIBUSB_ERROR_ACCESS = -3 , LIBUSB_ERROR_NO_DEVICE = -4 , LIBUSB_ERROR_NOT_FOUND = -5 , LIBUSB_ERROR_BUSY = -6 , LIBUSB_ERROR_TIMEOUT = -7 , LIBUSB_ERROR_OVERFLOW = -8 , LIBUSB_ERROR_PIPE = -9 , LIBUSB_ERROR_INTERRUPTED = -10 , LIBUSB_ERROR_NO_MEM = -11 , LIBUSB_ERROR_NOT_SUPPORTED = -12 , LIBUSB_ERROR_OTHER = -99 } |
| enum | libusb_hotplug_event { LIBUSB_HOTPLUG_EVENT_DEVICE_ARRIVED = 0x01U , LIBUSB_HOTPLUG_EVENT_DEVICE_LEFT = 0x02U } |
| enum | libusb_speed { LIBUSB_SPEED_UNKNOWN , LIBUSB_SPEED_LOW , LIBUSB_SPEED_FULL , LIBUSB_SPEED_HIGH , LIBUSB_SPEED_SUPER , LIBUSB_SPEED_SUPER_PLUS } |
| enum | vk_libusb_hcd_evt_t { VSF_EVT_LIBUSB_HCD_ATTACH = VSF_EVT_LIBUSB_HCD_BASE + 0x100 , VSF_EVT_LIBUSB_HCD_DETACH = VSF_EVT_LIBUSB_HCD_BASE + 0x200 , VSF_EVT_LIBUSB_HCD_READY = VSF_EVT_LIBUSB_HCD_BASE + 0x300 } |
Variables | |
| const vk_usbh_hcd_drv_t | vk_libusb_hcd_drv |
| #define __VSF_USBH_CLASS_IMPLEMENT_HCD__ |
| #define __VSF_USBH_CLASS_IMPLEMENT_HUB__ |
| #define __VSF_EDA_CLASS_INHERIT__ |
| #define LIBUSB_CALL |
| #define libusb_hotplug_register_callback | ( | ... | ) | (LIBUSB_ERROR_NOT_SUPPORTED) |
| #define libusb_has_capability | ( | ... | ) | (false) |
| #define VSF_EVT_LIBUSB_HCD_BASE ((VSF_EVT_USER + 0x100) & ~0xFF) |
| #define VSF_LIBUSB_HCD_DEF_DEV | ( | __N, | |
| __BIT | |||
| ) |
| typedef struct libusb_device_handle_s libusb_device_handle |
| typedef struct libusb_device_s libusb_device |
| typedef void* libusb_context |
| typedef struct vk_libusb_hcd_dev_t vk_libusb_hcd_dev_t |
| typedef struct vk_libusb_hcd_t vk_libusb_hcd_t |
| typedef struct vk_libusb_hcd_urb_t vk_libusb_hcd_urb_t |
| typedef enum vk_libusb_hcd_evt_t vk_libusb_hcd_evt_t |
| enum libusb_error |
| enum libusb_hotplug_event |
| enum libusb_speed |
| enum vk_libusb_hcd_evt_t |
| int LIBUSB_CALL libusb_kernel_driver_active | ( | libusb_device_handle * | dev, |
| int | interface | ||
| ) |
| int LIBUSB_CALL libusb_detach_kernel_driver | ( | libusb_device_handle * | dev, |
| int | interface | ||
| ) |
| int LIBUSB_CALL libusb_get_device_speed | ( | libusb_device * | dev | ) |
| int LIBUSB_CALL libusb_init | ( | libusb_context ** | ctx | ) |
| libusb_device_handle *LIBUSB_CALL libusb_open_device_with_vid_pid | ( | libusb_context * | ctx, |
| uint16_t | vendor_id, | ||
| uint16_t | product_id | ||
| ) |
| int LIBUSB_CALL libusb_reset_device | ( | libusb_device_handle * | dev_handle | ) |
| void LIBUSB_CALL libusb_close | ( | libusb_device_handle * | dev_handle | ) |
| libusb_device *LIBUSB_CALL libusb_get_device | ( | libusb_device_handle * | dev_handle | ) |
| int LIBUSB_CALL libusb_claim_interface | ( | libusb_device_handle * | dev_handle, |
| int | interface | ||
| ) |
| int LIBUSB_CALL libusb_control_transfer | ( | libusb_device_handle * | dev_handle, |
| uint8_t | bmRequestType, | ||
| uint8_t | bRequest, | ||
| uint16_t | wValue, | ||
| uint16_t | wIndex, | ||
| unsigned char * | data, | ||
| uint16_t | wLength, | ||
| unsigned int | timeout | ||
| ) |
| int LIBUSB_CALL libusb_set_configuration | ( | libusb_device_handle * | dev_handle, |
| int | configuration | ||
| ) |
| int LIBUSB_CALL libusb_open | ( | libusb_device * | dev, |
| libusb_device_handle ** | dev_handle | ||
| ) |
| int LIBUSB_CALL libusb_get_device_descriptor | ( | libusb_device * | dev, |
| struct libusb_device_descriptor * | desc | ||
| ) |
| int LIBUSB_CALL libusb_get_config_descriptor_by_value | ( | libusb_device * | dev, |
| uint8_t | bConfigurationValue, | ||
| struct libusb_config_descriptor ** | config | ||
| ) |
| void LIBUSB_CALL libusb_free_config_descriptor | ( | struct libusb_config_descriptor * | config | ) |
| int LIBUSB_CALL libusb_set_interface_alt_setting | ( | libusb_device_handle * | dev, |
| int | interface, | ||
| int | altsetting | ||
| ) |
| int LIBUSB_CALL libusb_bulk_transfer | ( | libusb_device_handle * | dev_handle, |
| unsigned char | endpoint, | ||
| unsigned char * | data, | ||
| int | length, | ||
| int * | actual_length, | ||
| unsigned int | timeout | ||
| ) |
| int LIBUSB_CALL libusb_interrupt_transfer | ( | libusb_device_handle * | dev_handle, |
| unsigned char | endpoint, | ||
| unsigned char * | data, | ||
| int | length, | ||
| int * | actual_length, | ||
| unsigned int | timeout | ||
| ) |
| void __libusb_irq_start | ( | vsf_arch_irq_thread_t * | irq_thread | ) |
| void __libusb_irq_end | ( | vsf_arch_irq_thread_t * | irq_thread | ) |
| const vk_usbh_hcd_drv_t vk_libusb_hcd_drv |