USBHub3p

Class

class aUSBHub3p : public Acroname::BrainStem::Module

Concrete Module implementation of a aUSBHub3p Allows a user to connect to and control an attached hub.

Public Members

Acroname::BrainStem::AppClass app[aUSBHUB3P_NUM_APPS]

App Class

Acroname::BrainStem::PointerClass pointer[aUSBHUB3P_NUM_POINTERS]

Pointer Class

Acroname::BrainStem::StoreClass store[aUSBHUB3P_NUM_STORES]

Store Class

Acroname::BrainStem::SystemClass system

System Class

Acroname::BrainStem::TemperatureClass temperature

Temperature Class

Acroname::BrainStem::TimerClass timer[aUSBHUB3P_NUM_TIMERS]

Timer Class

Acroname::BrainStem::USBClass usb

USB Class

Defines

aUSBHUB3P_MODULE 6

USBHub3p module number

aUSBHUB3P_NUM_APPS 4

Number of App instances available

aUSBHUB3P_NUM_POINTERS 4

Number of Pointer instances available

aUSBHUB3P_NUM_STORES 2

Number of Store instances available

aUSBHUB3P_NUM_INTERNAL_SLOTS 12

Store: Number of internal slots instances available

aUSBHUB3P_NUM_RAM_SLOTS 1

Store: Number of RAM slot instances available

aUSBHUB3P_NUM_TIMERS 8

Number of Timer instances available

aUSBHUB3P_NUM_USB 1

Number of USB instances available

aUSBHUB3P_NUM_USB_PORTS 8

Number of USB ports available

Port State Defines

aUSBHUB3P_USB_VBUS_ENABLED 0

USB VBUS current state

aUSBHUB3P_USB2_DATA_ENABLED 1

USB2 data current state

aUSBHUB3P_USB3_DATA_ENABLED 3

USB3 data current state

aUSBHUB3P_USB_SPEED_USB2 11

USB2 speed current state

aUSBHUB3P_USB_SPEED_USB3 12

USB3 speed current state

aUSBHUB3P_USB_ERROR_FLAG 19

Error indicator for this port

(see ‘Port Errors’ below)

aUSBHUB3P_USB2_BOOST_ENABLED 20

USB2 boost current state

aUSBHUB3P_DEVICE_ATTACHED 23

Device attached indicator for this port

Port State Error Defines

aUSBHUB3P_ERROR_VBUS_OVERCURRENT 0

VBUS overcurrent error

aUSBHUB3P_ERROR_VBUS_BACKDRIVE 1

VBUS backdrive (backpower) error

aUSBHUB3P_ERROR_HUB_POWER 2

Hub power error

aUSBHUB3P_ERROR_OVER_TEMPERATURE 3

Over temperature error