28#ifndef CMSIS_PLUS_DRIVER_USBH_WRAPPER_H_
29#define CMSIS_PLUS_DRIVER_USBH_WRAPPER_H_
55#pragma GCC diagnostic push
56#pragma GCC diagnostic ignored "-Wpadded"
94 virtual const usb::host::Capabilities&
109 virtual usb::host::Status&
114 usb::hub_addr_t hub_addr, usb::hub_port_t hub_port,
115 usb::endpoint_t ep_addr, usb::endpoint_type_t ep_type,
116 usb::packet_size_t ep_max_packet_size,
117 usb::polling_interval_t ep_interval) noexcept override;
121 usb::
speed_t dev_speed, usb::hub_addr_t hub_addr,
122 usb::hub_port_t hub_port,
123 usb::packet_size_t ep_max_packet_size) noexcept override;
132 do_transfer (usb::pipe_t pipe, uint32_t packet, uint8_t* data,
133 std::
size_t num) noexcept override;
170#pragma GCC diagnostic pop
USB host driver capabilities.
virtual return_t do_transfer(usb::pipe_t pipe, uint32_t packet, uint8_t *data, std::size_t num) noexcept override
virtual return_t do_reset_pipe(usb::pipe_t pipe) noexcept override
virtual return_t do_modify_pipe(usb::pipe_t pipe, usb::device_address_t dev_addr, usb::speed_t dev_speed, usb::hub_addr_t hub_addr, usb::hub_port_t hub_port, usb::packet_size_t ep_max_packet_size) noexcept override
ARM_USBH_SignalPipeEvent_t c_cb_pipe_func_
virtual ~usbh_wrapper() noexcept
virtual const usb::host::Capabilities & do_get_capabilities(void) noexcept override
virtual uint16_t do_get_frame_number(void) noexcept override
virtual const Version & do_get_version(void) noexcept override
ARM_USBH_SignalPortEvent_t c_cb_port_func_
virtual usb::pipe_t do_create_pipe(usb::device_address_t dev_addr, usb::speed_t dev_speed, usb::hub_addr_t hub_addr, usb::hub_port_t hub_port, usb::endpoint_t ep_addr, usb::endpoint_type_t ep_type, usb::packet_size_t ep_max_packet_size, usb::polling_interval_t ep_interval) noexcept override
virtual return_t do_power_port_vbus(usb::port_t port, bool vbus) noexcept override
usb::host::Status status_
usb::host::Capabilities capa_
virtual std::size_t do_get_transfer_count(usb::pipe_t pipe) noexcept override
virtual return_t do_power(Power state) noexcept override
usbh_wrapper & operator=(const usbh_wrapper &)=delete
virtual return_t do_suspend_port(usb::port_t port) noexcept override
virtual return_t do_delete_pipe(usb::pipe_t pipe) noexcept override
usbh_wrapper(const usbh_wrapper &)=delete
ARM_DRIVER_USBH * driver_
Pointer to CMSIS USBD Keil driver.
virtual return_t do_reset_port(usb::port_t port) noexcept override
virtual return_t do_resume_port(usb::port_t port) noexcept override
virtual return_t do_abort_transfer(usb::pipe_t pipe) noexcept override
usbh_wrapper(usbh_wrapper &&)=delete
virtual usb::host::Status & do_get_port_status(usb::port_t port) noexcept override
void(* ARM_USBH_SignalPipeEvent_t)(ARM_USBH_PIPE_HANDLE pipe_hndl, uint32_t event)
Pointer to pipe event callback.
uint32_t ARM_USBH_PIPE_HANDLE
void(* ARM_USBH_SignalPortEvent_t)(uint8_t port, uint32_t event)
Pointer to port event callback.
struct _ARM_DRIVER_USBH const ARM_DRIVER_USBH