13#ifndef CMSIS_PLUS_DRIVER_USBH_WRAPPER_H_
14#define CMSIS_PLUS_DRIVER_USBH_WRAPPER_H_
40#pragma GCC diagnostic push
42#pragma clang diagnostic ignored "-Wpadded"
43#elif defined(__GNUC__)
44#pragma GCC diagnostic ignored "-Wpadded"
83 virtual const usb::host::Capabilities&
98 virtual usb::host::Status&
103 usb::hub_addr_t hub_addr, usb::hub_port_t hub_port,
104 usb::endpoint_t ep_addr, usb::endpoint_type_t ep_type,
105 usb::packet_size_t ep_max_packet_size,
106 usb::polling_interval_t ep_interval) noexcept override;
110 usb::
speed_t dev_speed, usb::hub_addr_t hub_addr,
111 usb::hub_port_t hub_port,
112 usb::packet_size_t ep_max_packet_size) noexcept override;
121 do_transfer (usb::pipe_t pipe, uint32_t packet, uint8_t* data,
122 std::
size_t num) noexcept override;
159#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