#include <usb-host.h>
|
| Host () noexcept |
|
| Host (const Host &)=delete |
|
| Host (Host &&)=delete |
|
virtual | ~Host () noexcept override |
|
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 |
|
Host & | operator= (const Host &)=delete |
|
Host & | operator= (Host &&)=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 |
|
|
virtual return_t | do_abort_transfer (pipe_t pipe) noexcept=0 |
|
virtual pipe_t | do_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=0 |
|
virtual return_t | do_delete_pipe (pipe_t pipe) noexcept=0 |
|
virtual const host::Capabilities & | do_get_capabilities (void) noexcept=0 |
|
virtual uint16_t | do_get_frame_number (void) noexcept=0 |
|
virtual host::Status & | do_get_port_status (port_t port) noexcept=0 |
|
virtual std::size_t | do_get_transfer_count (pipe_t pipe) noexcept=0 |
|
virtual const Version & | do_get_version (void) noexcept=0 |
|
virtual return_t | do_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=0 |
|
virtual return_t | do_power (Power state) noexcept=0 |
|
virtual return_t | do_power_port_vbus (port_t port, bool vbus) noexcept=0 |
|
virtual return_t | do_reset_pipe (pipe_t pipe) noexcept=0 |
|
virtual return_t | do_reset_port (port_t port) noexcept=0 |
|
virtual return_t | do_resume_port (port_t port) noexcept=0 |
|
virtual return_t | do_suspend_port (port_t port) noexcept=0 |
|
virtual return_t | do_transfer (pipe_t pipe, uint32_t packet, uint8_t *data, std::size_t num) noexcept=0 |
|
Definition at line 220 of file usb-host.h.
◆ Host() [1/3]
os::driver::usb::Host::Host |
( |
| ) |
|
|
noexcept |
◆ Host() [2/3]
os::driver::usb::Host::Host |
( |
const Host & |
| ) |
|
|
delete |
◆ Host() [3/3]
os::driver::usb::Host::Host |
( |
Host && |
| ) |
|
|
delete |
◆ ~Host()
os::driver::usb::Host::~Host |
( |
| ) |
|
|
overridevirtualnoexcept |
◆ abort_transfer()
◆ create_pipe()
◆ delete_pipe()
◆ do_abort_transfer()
virtual return_t os::driver::usb::Host::do_abort_transfer |
( |
pipe_t |
pipe | ) |
|
|
protectedpure virtualnoexcept |
◆ do_create_pipe()
|
protectedpure virtualnoexcept |
◆ do_delete_pipe()
|
protectedpure virtualnoexcept |
◆ do_get_capabilities()
|
protectedpure virtualnoexcept |
◆ do_get_frame_number()
virtual uint16_t os::driver::usb::Host::do_get_frame_number |
( |
void |
| ) |
|
|
protectedpure virtualnoexcept |
◆ do_get_port_status()
|
protectedpure virtualnoexcept |
◆ do_get_transfer_count()
virtual std::size_t os::driver::usb::Host::do_get_transfer_count |
( |
pipe_t |
pipe | ) |
|
|
protectedpure virtualnoexcept |
◆ do_get_version()
virtual const Version & os::driver::Base::do_get_version |
( |
void |
| ) |
|
|
protectedpure virtualnoexceptinherited |
◆ do_modify_pipe()
|
protectedpure virtualnoexcept |
◆ do_power()
|
protectedpure virtualnoexceptinherited |
◆ do_power_port_vbus()
virtual return_t os::driver::usb::Host::do_power_port_vbus |
( |
port_t |
port, |
|
|
bool |
vbus |
|
) |
| |
|
protectedpure virtualnoexcept |
◆ do_reset_pipe()
|
protectedpure virtualnoexcept |
◆ do_reset_port()
|
protectedpure virtualnoexcept |
◆ do_resume_port()
|
protectedpure virtualnoexcept |
◆ do_suspend_port()
virtual return_t os::driver::usb::Host::do_suspend_port |
( |
port_t |
port | ) |
|
|
protectedpure virtualnoexcept |
◆ do_transfer()
virtual return_t os::driver::usb::Host::do_transfer |
( |
pipe_t |
pipe, |
|
|
uint32_t |
packet, |
|
|
uint8_t * |
data, |
|
|
std::size_t |
num |
|
) |
| |
|
protectedpure virtualnoexcept |
◆ get_capabilities()
◆ get_frame_number()
uint16_t os::driver::usb::Host::get_frame_number |
( |
void |
| ) |
|
|
inlinenoexcept |
◆ get_port_status()
◆ get_transfer_count()
std::size_t os::driver::usb::Host::get_transfer_count |
( |
pipe_t |
pipe | ) |
|
|
inlinenoexcept |
◆ get_version()
const Version & os::driver::Base::get_version |
( |
void |
| ) |
|
|
inlinenoexceptinherited |
◆ modify_pipe()
◆ operator=() [1/2]
Host & os::driver::usb::Host::operator= |
( |
const Host & |
| ) |
|
|
delete |
◆ operator=() [2/2]
Host & os::driver::usb::Host::operator= |
( |
Host && |
| ) |
|
|
delete |
◆ power()
Power up/down device.
- Parameters
-
- Returns
- Execution status
Definition at line 201 of file common.h.
◆ power_port_vbus()
return_t os::driver::usb::Host::power_port_vbus |
( |
port_t |
port, |
|
|
bool |
vbus |
|
) |
| |
|
inlinenoexcept |
◆ register_pipe_callback()
◆ register_port_callback()
Register port event callback.
- Parameters
-
[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.
◆ reset_pipe()
◆ reset_port()
◆ resume_port()
◆ signal_pipe_event()
void os::driver::usb::Host::signal_pipe_event |
( |
pipe_t |
pipe, |
|
|
event_t |
event |
|
) |
| |
|
noexcept |
◆ signal_port_event()
void os::driver::usb::Host::signal_port_event |
( |
port_t |
port, |
|
|
event_t |
event |
|
) |
| |
|
noexcept |
◆ suspend_port()
◆ transfer()
return_t os::driver::usb::Host::transfer |
( |
pipe_t |
pipe, |
|
|
uint32_t |
packet, |
|
|
uint8_t * |
data, |
|
|
std::size_t |
num |
|
) |
| |
|
noexcept |
◆ cb_pipe_func_
Pointer to static function that implements the pipe callback.
Definition at line 375 of file usb-host.h.
◆ cb_pipe_object_
const void* os::driver::usb::Host::cb_pipe_object_ |
|
private |
Pointer to object instance associated with the pipe callback.
Definition at line 378 of file usb-host.h.
◆ cb_port_func_
Pointer to static function that implements the port callback.
Definition at line 369 of file usb-host.h.
◆ cb_port_object_
const void* os::driver::usb::Host::cb_port_object_ |
|
private |
Pointer to object instance associated with the port callback.
Definition at line 372 of file usb-host.h.
◆ status_
The documentation for this class was generated from the following files: