#include <usbh-wrapper.h>
Public Member Functions | |
usbh_wrapper (ARM_DRIVER_USBH *driver, ARM_USBH_SignalPortEvent_t c_cb_port_func, ARM_USBH_SignalPipeEvent_t c_cb_pipe_func) noexcept | |
usbh_wrapper (const usbh_wrapper &)=delete | |
usbh_wrapper (usbh_wrapper &&)=delete | |
virtual | ~usbh_wrapper () noexcept |
return_t | abort_transfer (pipe_t pipe) noexcept |
pipe_t | create_pipe (device_address_t dev_addr, speed_t dev_speed, hub_addr_t hub_addr, hub_port_t hub_port, endpoint_t ep_addr, endpoint_type_t ep_type, packet_size_t ep_max_packet_size, polling_interval_t ep_interval) noexcept |
return_t | delete_pipe (pipe_t pipe) noexcept |
const host::Capabilities & | get_capabilities (void) noexcept |
uint16_t | get_frame_number (void) noexcept |
host::Status & | get_port_status (port_t port) noexcept |
std::size_t | get_transfer_count (pipe_t pipe) noexcept |
const Version & | get_version (void) noexcept |
Get driver version. | |
return_t | modify_pipe (pipe_t pipe, device_address_t dev_addr, speed_t dev_speed, hub_addr_t hub_addr, hub_port_t hub_port, packet_size_t ep_max_packet_size) noexcept |
usbh_wrapper & | operator= (const usbh_wrapper &)=delete |
usbh_wrapper & | operator= (usbh_wrapper &&)=delete |
return_t | power (Power state) noexcept |
Power up/down device. | |
return_t | power_port_vbus (port_t port, bool vbus) noexcept |
void | register_pipe_callback (host::signal_pipe_event_t cb_func, const void *cb_object=nullptr) noexcept |
void | register_port_callback (host::signal_port_event_t cb_func, const void *cb_object=nullptr) noexcept |
Register port event callback. | |
return_t | reset_pipe (pipe_t pipe) noexcept |
return_t | reset_port (port_t port) noexcept |
return_t | resume_port (port_t port) noexcept |
void | signal_pipe_event (pipe_t pipe, event_t event) noexcept |
void | signal_port_event (port_t port, event_t event) noexcept |
return_t | suspend_port (port_t port) noexcept |
return_t | transfer (pipe_t pipe, uint32_t packet, uint8_t *data, std::size_t num) noexcept |
Protected Member Functions | |
virtual return_t | do_abort_transfer (usb::pipe_t pipe) noexcept override |
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_delete_pipe (usb::pipe_t pipe) noexcept override |
virtual const usb::host::Capabilities & | do_get_capabilities (void) noexcept override |
virtual uint16_t | do_get_frame_number (void) noexcept override |
virtual usb::host::Status & | do_get_port_status (usb::port_t port) noexcept override |
virtual std::size_t | do_get_transfer_count (usb::pipe_t pipe) noexcept override |
virtual const Version & | do_get_version (void) 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 |
virtual return_t | do_power (Power state) noexcept override |
virtual return_t | do_power_port_vbus (usb::port_t port, bool vbus) noexcept override |
virtual return_t | do_reset_pipe (usb::pipe_t pipe) noexcept override |
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_suspend_port (usb::port_t port) noexcept override |
virtual return_t | do_transfer (usb::pipe_t pipe, uint32_t packet, uint8_t *data, std::size_t num) noexcept override |
Private Attributes | |
ARM_USBH_SignalPipeEvent_t | c_cb_pipe_func_ |
ARM_USBH_SignalPortEvent_t | c_cb_port_func_ |
usb::host::Capabilities | capa_ |
host::signal_pipe_event_t | cb_pipe_func_ |
Pointer to static function that implements the pipe callback. | |
const void * | cb_pipe_object_ |
Pointer to object instance associated with the pipe callback. | |
host::signal_port_event_t | cb_port_func_ |
Pointer to static function that implements the port callback. | |
const void * | cb_port_object_ |
Pointer to object instance associated with the port callback. | |
ARM_DRIVER_USBH * | driver_ |
Pointer to CMSIS USBD Keil driver. | |
usb::host::Status | status_ |
Version | version_ { 0, 0 } |
Definition at line 50 of file usbh-wrapper.h.
|
noexcept |
Definition at line 29 of file usbh-wrapper.cpp.
|
delete |
|
delete |
|
virtualnoexcept |
Definition at line 39 of file usbh-wrapper.cpp.
Definition at line 491 of file usb-host.h.
|
inlinenoexceptinherited |
Definition at line 453 of file usb-host.h.
Definition at line 473 of file usb-host.h.
|
overrideprotectedvirtualnoexcept |
Implements os::driver::usb::Host.
Definition at line 188 of file usbh-wrapper.cpp.
|
overrideprotectedvirtualnoexcept |
Implements os::driver::usb::Host.
Definition at line 135 of file usbh-wrapper.cpp.
|
overrideprotectedvirtualnoexcept |
Implements os::driver::usb::Host.
Definition at line 162 of file usbh-wrapper.cpp.
|
overrideprotectedvirtualnoexcept |
Implements os::driver::usb::Host.
Definition at line 65 of file usbh-wrapper.cpp.
|
overrideprotectedvirtualnoexcept |
Implements os::driver::usb::Host.
Definition at line 194 of file usbh-wrapper.cpp.
|
overrideprotectedvirtualnoexcept |
Implements os::driver::usb::Host.
Definition at line 74 of file usbh-wrapper.cpp.
|
overrideprotectedvirtualnoexcept |
Implements os::driver::usb::Host.
Definition at line 182 of file usbh-wrapper.cpp.
|
overrideprotectedvirtualnoexcept |
Implements os::driver::Base.
Definition at line 56 of file usbh-wrapper.cpp.
|
overrideprotectedvirtualnoexcept |
Implements os::driver::usb::Host.
Definition at line 150 of file usbh-wrapper.cpp.
Implements os::driver::Base.
Definition at line 85 of file usbh-wrapper.cpp.
|
overrideprotectedvirtualnoexcept |
Implements os::driver::usb::Host.
Definition at line 111 of file usbh-wrapper.cpp.
|
overrideprotectedvirtualnoexcept |
Implements os::driver::usb::Host.
Definition at line 168 of file usbh-wrapper.cpp.
|
overrideprotectedvirtualnoexcept |
Implements os::driver::usb::Host.
Definition at line 117 of file usbh-wrapper.cpp.
|
overrideprotectedvirtualnoexcept |
Implements os::driver::usb::Host.
Definition at line 129 of file usbh-wrapper.cpp.
|
overrideprotectedvirtualnoexcept |
Implements os::driver::usb::Host.
Definition at line 123 of file usbh-wrapper.cpp.
|
overrideprotectedvirtualnoexcept |
Implements os::driver::usb::Host.
Definition at line 174 of file usbh-wrapper.cpp.
|
inlinenoexceptinherited |
Definition at line 417 of file usb-host.h.
|
inlinenoexceptinherited |
Definition at line 497 of file usb-host.h.
|
inlinenoexceptinherited |
Definition at line 447 of file usb-host.h.
|
inlinenoexceptinherited |
Definition at line 485 of file usb-host.h.
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
Definition at line 464 of file usb-host.h.
|
delete |
|
delete |
Definition at line 423 of file usb-host.h.
|
noexceptinherited |
Definition at line 64 of file usb-host.cpp.
|
noexceptinherited |
Register port event callback.
[in] | cb_func | Pointer to callback function. |
[in] | cb_object | Pointer to object to be passed to the function. |
Definition at line 56 of file usb-host.cpp.
Definition at line 479 of file usb-host.h.
Definition at line 429 of file usb-host.h.
Definition at line 441 of file usb-host.h.
Definition at line 98 of file usb-host.cpp.
Definition at line 88 of file usb-host.cpp.
Definition at line 435 of file usb-host.h.
|
noexceptinherited |
Definition at line 74 of file usb-host.cpp.
|
private |
Definition at line 143 of file usbh-wrapper.h.
|
private |
Pointer to non-reentrant callback. Must be stored because Initialize() is now delayed just before PowerControl(FULL).
Definition at line 142 of file usbh-wrapper.h.
|
private |
Definition at line 154 of file usbh-wrapper.h.
|
privateinherited |
Pointer to static function that implements the pipe callback.
Definition at line 375 of file usb-host.h.
|
privateinherited |
Pointer to object instance associated with the pipe callback.
Definition at line 378 of file usb-host.h.
|
privateinherited |
Pointer to static function that implements the port callback.
Definition at line 369 of file usb-host.h.
|
privateinherited |
Pointer to object instance associated with the port callback.
Definition at line 372 of file usb-host.h.
|
private |
Pointer to CMSIS USBD Keil driver.
Definition at line 138 of file usbh-wrapper.h.
|
private |
Definition at line 155 of file usbh-wrapper.h.
|
private |
Definition at line 152 of file usbh-wrapper.h.