MTM-IO-Serial

Class

class aMTMIOSerial : public Acroname::BrainStem::Module

Concrete Module implementation of an MTM-IO-Serial Allows a user to connect to and control an attached module.

Public Members

Acroname::BrainStem::AppClass app[aMTMIOSERIAL_NUM_APPS]

App Class

Acroname::BrainStem::DigitalClass digital[aMTMIOSERIAL_NUM_DIGITALS]

Digital Class

Acroname::BrainStem::I2CClass i2c[aMTMIOSERIAL_NUM_I2C]

I2C Class

Acroname::BrainStem::UARTClass uart[aMTMIOSERIAL_NUM_UART]

UART Class

Acroname::BrainStem::PointerClass pointer[aMTMIOSERIAL_NUM_POINTERS]

Pointer Class

Acroname::BrainStem::RailClass rail[aMTMIOSERIAL_NUM_RAILS]

Rail Class

Acroname::BrainStem::RCServoClass servo[aMTM_STEM_NUM_SERVOS]

RC Servo Class

Acroname::BrainStem::SignalClass signal[aMTMIOSERIAL_NUM_SIGNALS]

Signal Class

Acroname::BrainStem::StoreClass store[aMTMIOSERIAL_NUM_STORES]

Store Class

Acroname::BrainStem::SystemClass system

System Class

Acroname::BrainStem::TemperatureClass temperature

Temperature Class

Acroname::BrainStem::TimerClass timer[aMTMIOSERIAL_NUM_TIMERS]

Timer Class

Acroname::BrainStem::USBClass usb

USB Class

Defines

aMTMIOSERIAL_MODULE_BASE_ADDRESS 8

MTM-IO-Serial module number

aMTMIOSERIAL_NUM_APPS 4

Number of App instances available

aMTMIOSERIAL_NUM_DIGITALS 8

Number of Digital instances available

aMTMIOSERIAL_NUM_I2C 1

Number of I2C instances available

aMTMIOSERIAL_NUM_POINTERS 4

Number of Pointer instances available

aMTMIOSERIAL_NUM_RAILS 3

Number of Rail instances available

aMTMIOSERIAL_5VRAIL 0

Rail: 5v Rail specifier

aMTMIOSERIAL_ADJRAIL1 1

Rail: Adjustable Rail 0 specifier

aMTMIOSERIAL_ADJRAIL2 2

Rail: Adjustable Rail 1 specifier

aMTMIOSERIAL_MAX_MICROVOLTAGE 5000000

Rail: Max voltage in microvolts

aMTMIOSERIAL_MIN_MICROVOLTAGE 1800000

Rail: Min voltage in microvolts

aMTMIOSERIAL_NUM_SERVOS 8

Number of RC Servo instances available

aMTMIOSERIAL_NUM_SIGNALS 5

Number of Signal instances available

aMTMIOSERIAL_NUM_OUTPUT_SIGNALS 4

Signal: Number of output signal instances available

aMTMIOSERIAL_NUM_INPUT_SIGNALS 5

Signal: Number of input signal instances available

aMTMIOSERIAL_NUM_STORES 2

Number of Store instances available

aMTMIOSERIAL_NUM_INTERNAL_SLOTS 12

Store: Number of internal slots instances available

aMTMIOSERIAL_NUM_RAM_SLOTS 1

Store: Number of RAM slot instances available

aMTMIOSERIAL_NUM_TIMERS 8

Number of Timer instances available

aMTMIOSERIAL_NUM_UART 4

Number of UART instances available

aMTMIOSERIAL_NUM_USB 1

Number of USB instances available

aMTMIOSERIAL_USB_NUM_CHANNELS 4

Number of channels available

aUSB_UPSTREAM_CONFIG_AUTO 0

Upstream Mode specifier: Auto (Default)

aUSB_UPSTREAM_CONFIG_ONBOARD 1

Upstream Mode specifier: Onboard

aUSB_UPSTREAM_CONFIG_EDGE 2

Upstream Mode specifier: Edge Connector

aUSB_UPSTREAM_ONBOARD 0

Upstream State specifier: Onboard

aUSB_UPSTREAM_EDGE 1

Upstream State specifier: Edge Connector

Port State Defines

aMTMIOSERIAL_USB_VBUS_ENABLED 0

USB VBUS current state

aMTMIOSERIAL_USB2_DATA_ENABLED 1

USB2 data current state

aMTMIOSERIAL_USB_ERROR_FLAG 19

Error indicator for this channel

(see ‘Port Errors’ below)

aMTMIOSERIAL_USB2_BOOST_ENABLED 20

USB2 boost current state

Port State Error Defines

aMTMIOSERIAL_ERROR_VBUS_OVERCURRENT 0

VBUS overcurrent error