µ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::host Namespace Reference

Classes

class  Capabilities
 USB host driver capabilities. More...
 
class  Status
 USB host state. More...
 

Typedefs

typedef void(* signal_pipe_event_t) (const void *object, pipe_t pipe, event_t event)
 
typedef void(* signal_port_event_t) (const void *object, port_t port, event_t event)
 

Enumerations

enum  Pipe_event : event_t {
  transfer_complete = (1UL << 0) ,
  handshake_nak = (1UL << 1) ,
  handshake_nyet = (1UL << 2) ,
  handshake_mdata = (1UL << 3) ,
  handshake_stall = (1UL << 4) ,
  handshake_err = (1UL << 5) ,
  bus_err = (1UL << 6)
}
 USB Host Pipe Event. More...
 
enum  Port_event : event_t {
  connect = (1UL << 0) ,
  disconnect = (1UL << 1) ,
  overcurrent = (1UL << 2) ,
  reset = (1UL << 3) ,
  suspend = (1UL << 4) ,
  resume = (1UL << 5) ,
  remote_hangup = (1UL << 6)
}
 USB Host Port Events. More...
 

Typedef Documentation

◆ signal_pipe_event_t

typedef void(* os::driver::usb::host::signal_pipe_event_t) (const void *object, pipe_t pipe, event_t event)

Definition at line 196 of file usb-host.h.

◆ signal_port_event_t

typedef void(* os::driver::usb::host::signal_port_event_t) (const void *object, port_t port, event_t event)

Definition at line 193 of file usb-host.h.

Enumeration Type Documentation

◆ Pipe_event

Todo:
Make enum class.
Enumerator
transfer_complete 

Transfer completed.

handshake_nak 

NAK Handshake received.

handshake_nyet 

NYET Handshake received.

handshake_mdata 

MDATA Handshake received.

handshake_stall 

STALL Handshake received.

handshake_err 

ERR Handshake received.

bus_err 

Bus Error detected.

Definition at line 167 of file usb-host.h.

168 {
170 transfer_complete = (1UL << 0),
171
173 handshake_nak = (1UL << 1),
174
176 handshake_nyet = (1UL << 2),
177
179 handshake_mdata = (1UL << 3),
180
182 handshake_stall = (1UL << 4),
183
185 handshake_err = (1UL << 5),
186
188 bus_err = (1UL << 6)
189 };
@ handshake_stall
STALL Handshake received.
Definition usb-host.h:182
@ bus_err
Bus Error detected.
Definition usb-host.h:188
@ handshake_nyet
NYET Handshake received.
Definition usb-host.h:176

◆ Port_event

Enumerator
connect 

USB Device Connected to Port.

disconnect 

USB Device Disconnected from Port.

overcurrent 

USB Device caused Overcurrent.

reset 

USB Reset completed.

suspend 

USB Suspend occurred.

resume 

USB Resume occurred.

remote_hangup 

USB Device activated Remote Wakeup.

Definition at line 135 of file usb-host.h.

136 {
138 connect = (1UL << 0),
139
141 disconnect = (1UL << 1),
142
144 overcurrent = (1UL << 2),
145
147 reset = (1UL << 3),
148
150 suspend = (1UL << 4),
151
153 resume = (1UL << 5),
154
156 remote_hangup = (1UL << 6)
157 };
int connect(int socket, const struct sockaddr *address, socklen_t address_len)
@ remote_hangup
USB Device activated Remote Wakeup.
Definition usb-host.h:156
@ overcurrent
USB Device caused Overcurrent.
Definition usb-host.h:144