public enum IOLine extends Enum<IOLine>
Depending on the hardware and firmware of the device, the number of lines that can be used as well as their functionality may vary. Refer to the product manual to learn more about the IO lines of your XBee device.
Enum Constant and Description |
---|
DIO0_AD0 |
DIO1_AD1 |
DIO10_PWM0 |
DIO11_PWM1 |
DIO12 |
DIO13 |
DIO14 |
DIO15 |
DIO16 |
DIO17 |
DIO18 |
DIO19 |
DIO2_AD2 |
DIO3_AD3 |
DIO4_AD4 |
DIO5_AD5 |
DIO6 |
DIO7 |
DIO8 |
DIO9 |
Modifier and Type | Method and Description |
---|---|
String |
getConfigurationATCommand()
Returns the configuration AT command associated to the IO line.
|
static IOLine |
getDIO(int index)
Returns the
IOLine associated to the given index. |
int |
getIndex()
Returns the index of the IO line.
|
String |
getName()
Returns the name of the IO line.
|
String |
getPWMDutyCycleATCommand()
Returns the PWM AT command associated to the IO line.
|
boolean |
hasPWMCapability()
Returns whether or not the IO line has PWM capability.
|
String |
toString() |
static IOLine |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IOLine[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IOLine DIO10_PWM0
public static final IOLine DIO11_PWM1
public String getConfigurationATCommand()
public static IOLine getDIO(int index)
IOLine
associated to the given index.index
- The index corresponding to the IOLine
to retrieve.IOLine
associated to the given index.public int getIndex()
public String getPWMDutyCycleATCommand()
public boolean hasPWMCapability()
true
if the provided IO line has PWM, false
otherwise.public static IOLine valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static IOLine[] values()
for (IOLine c : IOLine.values()) System.out.println(c);
© Copyright 2014–2014 Digi International Inc. All rights reserved.