µ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 106 of file usb.h.

◆ endpoint_t

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

Definition at line 68 of file usb.h.

◆ endpoint_type_t

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

Definition at line 75 of file usb.h.

◆ frame_number_t

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

Definition at line 104 of file usb.h.

◆ hub_addr_t

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

Definition at line 112 of file usb.h.

◆ hub_port_t

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

Definition at line 113 of file usb.h.

◆ packet_size_t

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

Definition at line 99 of file usb.h.

◆ pipe_t

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

Definition at line 109 of file usb.h.

◆ polling_interval_t

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

Definition at line 115 of file usb.h.

◆ port_t

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

Definition at line 110 of file usb.h.

◆ speed_t

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

Definition at line 46 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 80 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 51 of file usb.h.

Variable Documentation

◆ ENDPOINT_DIRECTION_MASK

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

Definition at line 71 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 101 of file usb.h.

◆ ENDPOINT_NUMBER_MASK

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

Definition at line 70 of file usb.h.