| Modifier and Type | Class and Description |
|---|---|
protected static class |
Interface.InterfaceType
Enum representation of interfaces.
|
| Modifier and Type | Field and Description |
|---|---|
protected Interface.InterfaceType |
m_ifaceType
The InterfaceType for this Interface.
|
private static Interface.InterfaceType[] |
m_mxpArr
Keep a mapping of MXP pins to InterfaceTypes.
|
static int |
MAX_ANALOG_IN_CHANNELS
The maximum number of analog input channels.
|
static int |
MAX_ANALOG_OUT_CHANNELS
The maximum number of analog output channels.
|
static int |
MAX_DIGITAL_CHANNELS
The maximum number of digital channels.
|
static int |
MAX_PWM_CHANNELS
The maximum number of pwm channels.
|
static int |
MAX_RELAY_CHANNELS
The maximum number of relay channels.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Interface(Interface.InterfaceType iType)
Instantiates a new interface.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
allocateMXPPin(int pin)
Allocate an MXP pin
|
protected static void |
checkAnalogInputChannel(int channel)
Check the given analog input channel for validity
|
protected static void |
checkAnalogOutputChannel(int channel)
Check the given analog output channel for validity
|
protected static void |
checkDigitalChannel(int channel)
Check the given digital channel for validity
|
protected static void |
checkPWMChannel(int channel)
Check the given pwm channel for validity
|
protected static void |
checkRelayChannel(int channel)
Check the given relay channel for validity
|
protected void |
freeMXPPin(int pin)
Free an MXP pin
|
Interface.InterfaceType |
getInterfaceType()
Gets the interface type.
|
public static final int MAX_DIGITAL_CHANNELS
public static final int MAX_ANALOG_IN_CHANNELS
public static final int MAX_ANALOG_OUT_CHANNELS
public static final int MAX_PWM_CHANNELS
public static final int MAX_RELAY_CHANNELS
protected final Interface.InterfaceType m_ifaceType
private static final Interface.InterfaceType[] m_mxpArr
protected Interface(Interface.InterfaceType iType)
iType - the InterfaceType for this Interfaceprotected static final void checkDigitalChannel(int channel)
channel - the channel to checkprotected static final void checkAnalogInputChannel(int channel)
channel - the channel to checkprotected static final void checkAnalogOutputChannel(int channel)
channel - the channel to checkprotected static final void checkPWMChannel(int channel)
channel - the channel to checkprotected static final void checkRelayChannel(int channel)
channel - the channel to checkprotected final void allocateMXPPin(int pin)
pin - the pin we are allocating.protected final void freeMXPPin(int pin)
pin - the pin we are allocating.public final Interface.InterfaceType getInterfaceType()