USBHub2x4

Class

class aUSBHub2x4 : public Acroname::BrainStem::Module

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

Public Types

enum PORT_ID

Port ID 2x4

Values:

enumerator kPORT_ID_0
enumerator kPORT_ID_1
enumerator kPORT_ID_2
enumerator kPORT_ID_3
enumerator kPORT_ID_UP0
enumerator kPORT_ID_UP1
typedef enum aUSBHub2x4::PORT_ID PORT_ID_t

Port ID 2x4

Public Members

HubClass hub

Hub Class

Acroname::BrainStem::AppClass app[aUSBHUB2X4_NUM_APPS]

App Class

Acroname::BrainStem::PointerClass pointer[aUSBHUB2X4_NUM_POINTERS]

Pointer Class

Acroname::BrainStem::StoreClass store[aUSBHUB2X4_NUM_STORES]

Store Class

Acroname::BrainStem::SystemClass system

System Class

Acroname::BrainStem::TemperatureClass temperature

Temperature Class

Acroname::BrainStem::TimerClass timer[aUSBHUB2X4_NUM_TIMERS]

Timer Class

Acroname::BrainStem::USBClass usb

USB Class

class HubClass : public Acroname::BrainStem::USBSystemClass

Hub class implementation for use with USBHub2x4.

Defines

aUSBHUB2X4_MODULE 6

USBHub2x4 module number

aUSBHUB2X4_NUM_APPS 4

Number of App instances available

aUSBHUB2X4_NUM_POINTERS 4

Number of Pointer instances available

aUSBHUB2X4_NUM_STORES 2

Number of Store instances available

aUSBHUB2X4_NUM_INTERNAL_SLOTS 12

Store: Number of internal slots instances available

aUSBHUB2X4_NUM_RAM_SLOTS 1

Store: Number of RAM slot instances available

aUSBHUB2X4_NUM_TIMERS 8

Number of Timer instances available

aUSBHUB2X4_NUM_USB 1

Number of USB instances available

aUSBHUB2x4_NUM_USB_PORTS 4

Number of USB ports available

aUSBHUB2x4_NUM_PORTS 6

Number of Ports available

Port State Defines

aUSBHUB2X4_USB_VBUS_ENABLED 0

USB VBUS current state

aUSBHUB2X4_USB2_DATA_ENABLED 1

USB2 data current state

aUSBHUB2X4_USB_ERROR_FLAG 19

Error indicator for this port

(see ‘Port Errors’ below)

aUSBHUB2X4_USB2_BOOST_ENABLED 20

USB2 boost current state

aUSBHUB2X4_DEVICE_ATTACHED 23

Device attached indicator for this port

aUSBHUB2X4_CONSTANT_CURRENT 24

Constant current mode indicator

Port State Error Defines

aUSBHUB2X4_ERROR_VBUS_OVERCURRENT 0

VBUS overcurrent error

aUSBHUB2X4_ERROR_OVER_TEMPERATURE 3

Over temperature error

aUSBHub2X4_ERROR_DISCHARGE 4

Discharge error