#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 61 of file usbh-wrapper.h.
|
noexcept |
Definition at line 44 of file usbh-wrapper.cpp.
|
delete |
|
delete |
|
virtualnoexcept |
Definition at line 54 of file usbh-wrapper.cpp.
Definition at line 493 of file usb-host.h.
|
inlinenoexceptinherited |
Definition at line 455 of file usb-host.h.
Definition at line 475 of file usb-host.h.
|
overrideprotectedvirtualnoexcept |
Implements os::driver::usb::Host.
Definition at line 200 of file usbh-wrapper.cpp.
|
overrideprotectedvirtualnoexcept |
Implements os::driver::usb::Host.
Definition at line 147 of file usbh-wrapper.cpp.
|
overrideprotectedvirtualnoexcept |
Implements os::driver::usb::Host.
Definition at line 174 of file usbh-wrapper.cpp.
|
overrideprotectedvirtualnoexcept |
Implements os::driver::usb::Host.
Definition at line 77 of file usbh-wrapper.cpp.
|
overrideprotectedvirtualnoexcept |
Implements os::driver::usb::Host.
Definition at line 206 of file usbh-wrapper.cpp.
|
overrideprotectedvirtualnoexcept |
Implements os::driver::usb::Host.
Definition at line 86 of file usbh-wrapper.cpp.
|
overrideprotectedvirtualnoexcept |
Implements os::driver::usb::Host.
Definition at line 194 of file usbh-wrapper.cpp.
|
overrideprotectedvirtualnoexcept |
Implements os::driver::Base.
Definition at line 68 of file usbh-wrapper.cpp.
|
overrideprotectedvirtualnoexcept |
Implements os::driver::usb::Host.
Definition at line 162 of file usbh-wrapper.cpp.
Implements os::driver::Base.
Definition at line 97 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 180 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 141 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 186 of file usbh-wrapper.cpp.
|
inlinenoexceptinherited |
Definition at line 419 of file usb-host.h.
|
inlinenoexceptinherited |
Definition at line 499 of file usb-host.h.
|
inlinenoexceptinherited |
Definition at line 449 of file usb-host.h.
|
inlinenoexceptinherited |
Definition at line 487 of file usb-host.h.
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
Definition at line 466 of file usb-host.h.
|
delete |
|
delete |
Definition at line 425 of file usb-host.h.
|
noexceptinherited |
Definition at line 79 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 71 of file usb-host.cpp.
Definition at line 481 of file usb-host.h.
Definition at line 431 of file usb-host.h.
Definition at line 443 of file usb-host.h.
Definition at line 113 of file usb-host.cpp.
Definition at line 103 of file usb-host.cpp.
Definition at line 437 of file usb-host.h.
|
noexceptinherited |
Definition at line 89 of file usb-host.cpp.
|
private |
Definition at line 154 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 153 of file usbh-wrapper.h.
|
private |
Definition at line 165 of file usbh-wrapper.h.
|
privateinherited |
Pointer to static function that implements the pipe callback.
Definition at line 377 of file usb-host.h.
|
privateinherited |
Pointer to object instance associated with the pipe callback.
Definition at line 380 of file usb-host.h.
|
privateinherited |
Pointer to static function that implements the port callback.
Definition at line 371 of file usb-host.h.
|
privateinherited |
Pointer to object instance associated with the port callback.
Definition at line 374 of file usb-host.h.
|
private |
Pointer to CMSIS USBD Keil driver.
Definition at line 149 of file usbh-wrapper.h.
|
private |
Definition at line 166 of file usbh-wrapper.h.
|
private |
Definition at line 163 of file usbh-wrapper.h.