µOS++ IIIe Reference 7.0.0
The third edition of µOS++, a POSIX inspired open source framework, written in C++
Loading...
Searching...
No Matches
os::driver::usb Namespace Reference

Namespaces

namespace  device
 
namespace  host
 

Classes

class  Device
 
class  Host
 

Typedefs

using device_address_t = uint8_t
 
using endpoint_t = uint8_t
 
using endpoint_type_t = uint8_t
 
using frame_number_t = uint16_t
 
using hub_addr_t = uint8_t
 
using hub_port_t = uint8_t
 
using packet_size_t = uint16_t
 
using pipe_t = uint32_t
 
using polling_interval_t = uint8_t
 
using port_t = uint8_t
 
using speed_t = uint8_t
 

Enumerations

enum class  Endpoint_type : endpoint_type_t {
  control = 0 ,
  isochronous = 1 ,
  bulk = 2 ,
  interrupt = 3
}
 Endpoint type. More...
 
enum class  Speed : speed_t {
  low = 0 ,
  full = 1 ,
  high = 2
}
 USB Speed. More...
 

Variables

constexpr endpoint_t ENDPOINT_DIRECTION_MASK = 0x80
 
constexpr packet_size_t ENDPOINT_MAX_PACKET_SIZE_MASK = 0x07FF
 
constexpr endpoint_t ENDPOINT_NUMBER_MASK = 0x0F
 

Typedef Documentation

◆ device_address_t

using os::driver::usb::device_address_t = typedef uint8_t

Definition at line 122 of file usb.h.

◆ endpoint_t

using os::driver::usb::endpoint_t = typedef uint8_t

Definition at line 84 of file usb.h.

◆ endpoint_type_t

using os::driver::usb::endpoint_type_t = typedef uint8_t

Definition at line 91 of file usb.h.

◆ frame_number_t

using os::driver::usb::frame_number_t = typedef uint16_t

Definition at line 120 of file usb.h.

◆ hub_addr_t

using os::driver::usb::hub_addr_t = typedef uint8_t

Definition at line 128 of file usb.h.

◆ hub_port_t

using os::driver::usb::hub_port_t = typedef uint8_t

Definition at line 129 of file usb.h.

◆ packet_size_t

using os::driver::usb::packet_size_t = typedef uint16_t

Definition at line 115 of file usb.h.

◆ pipe_t

using os::driver::usb::pipe_t = typedef uint32_t

Definition at line 125 of file usb.h.

◆ polling_interval_t

using os::driver::usb::polling_interval_t = typedef uint8_t

Definition at line 131 of file usb.h.

◆ port_t

using os::driver::usb::port_t = typedef uint8_t

Definition at line 126 of file usb.h.

◆ speed_t

using os::driver::usb::speed_t = typedef uint8_t

Definition at line 62 of file usb.h.

Enumeration Type Documentation

◆ Endpoint_type

Endpoint type.

Enumerator
control 

Control Endpoint.

Isochronous Endpoint

isochronous 

Bulk Endpoint.

bulk 

Interrupt Endpoint.

interrupt 

Definition at line 96 of file usb.h.

◆ Speed

enum class os::driver::usb::Speed : speed_t
strong

USB Speed.

Enumerator
low 

Low-speed USB.

Full-speed USB

full 

High-speed USB.

high 

Definition at line 67 of file usb.h.

Variable Documentation

◆ ENDPOINT_DIRECTION_MASK

constexpr endpoint_t os::driver::usb::ENDPOINT_DIRECTION_MASK = 0x80
constexpr

Definition at line 87 of file usb.h.

◆ ENDPOINT_MAX_PACKET_SIZE_MASK

constexpr packet_size_t os::driver::usb::ENDPOINT_MAX_PACKET_SIZE_MASK = 0x07FF
constexpr

Definition at line 117 of file usb.h.

◆ ENDPOINT_NUMBER_MASK

constexpr endpoint_t os::driver::usb::ENDPOINT_NUMBER_MASK = 0x0F
constexpr

Definition at line 86 of file usb.h.