ChibiOS/RT
2.5.1
USBDriver Struct Reference

Detailed Description

Structure representing an USB driver.

Definition at line 282 of file usb_lld.h.

#include <usb_lld.h>

Collaboration diagram for USBDriver:

Data Fields

usbstate_t state
 Driver state.
const USBConfigconfig
 Current configuration data.
void * param
 Field available to user, it can be used to associate an application-defined handler to the USB driver.
uint16_t transmitting
 Bit map of the transmitting IN endpoints.
uint16_t receiving
 Bit map of the receiving OUT endpoints.
const USBEndpointConfigepc [USB_MAX_ENDPOINTS+1]
 Active endpoints configurations.
usbep0state_t ep0state
 Endpoint 0 state.
uint8_t * ep0next
 Next position in the buffer to be transferred through endpoint 0.
size_t ep0n
 Number of bytes yet to be transferred through endpoint 0.
usbcallback_t ep0endcb
 Endpoint 0 end transaction callback.
uint8_t setup [8]
 Setup packet buffer.
uint16_t status
 Current USB device status.
uint8_t address
 Assigned USB address.
uint8_t configuration
 Current USB device configuration.
uint32_t pmnext
 Pointer to the next address in the packet memory.

Field Documentation

Current configuration data.

Definition at line 290 of file usb_lld.h.

Referenced by _usb_ep0setup(), usb_lld_reset(), usbObjectInit(), and usbStart().

Field available to user, it can be used to associate an application-defined handler to the USB driver.

Definition at line 295 of file usb_lld.h.

Referenced by usbObjectInit().

Bit map of the transmitting IN endpoints.

Definition at line 299 of file usb_lld.h.

Referenced by _usb_reset(), usbDisableEndpointsI(), usbObjectInit(), and usbStartTransmitI().

Bit map of the receiving OUT endpoints.

Definition at line 303 of file usb_lld.h.

Referenced by _usb_reset(), usbDisableEndpointsI(), usbObjectInit(), and usbStartReceiveI().

Endpoint 0 state.

Definition at line 311 of file usb_lld.h.

Referenced by _usb_ep0in(), _usb_ep0out(), _usb_ep0setup(), and _usb_reset().

Next position in the buffer to be transferred through endpoint 0.

Definition at line 315 of file usb_lld.h.

Referenced by _usb_ep0setup().

Number of bytes yet to be transferred through endpoint 0.

Definition at line 319 of file usb_lld.h.

Referenced by _usb_ep0in(), and _usb_ep0setup().

Endpoint 0 end transaction callback.

Definition at line 323 of file usb_lld.h.

Referenced by _usb_ep0in(), and _usb_ep0out().

uint8_t USBDriver::setup[8]

Setup packet buffer.

Definition at line 327 of file usb_lld.h.

Referenced by _usb_ep0in(), and _usb_ep0setup().

Current USB device status.

Definition at line 331 of file usb_lld.h.

Referenced by _usb_reset().

Assigned USB address.

Definition at line 335 of file usb_lld.h.

Referenced by _usb_reset(), and usb_lld_set_address().

Current USB device configuration.

Definition at line 339 of file usb_lld.h.

Referenced by _usb_reset().

Pointer to the next address in the packet memory.

Definition at line 347 of file usb_lld.h.