public class ADCManager
extends java.lang.Object
This manager allows applications to create ADC
objects.
Unless noted, all ADC API methods require the
com.digi.android.permission.ADC
permission. If your application does
not have this permission it will not have access to any ADC service feature.
ADC
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
ERROR_CHANNEL_NUMBER |
|
static java.lang.String |
ERROR_NULL_CHIP |
|
static java.lang.String |
ERROR_UNAVAILABLE_CHANNEL |
|
static java.lang.String |
ERROR_UNKNOWN_CHIP |
Constructor | Description |
---|---|
ADCManager(android.content.Context context) |
Class constructor.
|
Modifier and Type | Method | Description |
---|---|---|
ADC |
createADC(int channel) |
Deprecated.
This method is replaced by
createADC(ADCChip, int) . |
ADC |
createADC(ADCChip chip,
int channel) |
Creates and returns an
ADC object with the given ADC channel
number and ADCChip . |
java.util.List<ADCChip> |
getADCChips() |
Returns the list of ADC Chips available.
|
public static final java.lang.String ERROR_CHANNEL_NUMBER
public static final java.lang.String ERROR_NULL_CHIP
public static final java.lang.String ERROR_UNKNOWN_CHIP
public static final java.lang.String ERROR_UNAVAILABLE_CHANNEL
public ADCManager(android.content.Context context)
ADCManager
using the given
application context.
The ADCManager
allows you to create ADC channels using the
createADC(int)
method.
context
- Android application context.createADC(int)
@Deprecated public ADC createADC(int channel)
createADC(ADCChip, int)
.ADC
object with the given ADC channel
number. It uses the default ADCChip
.channel
- The ADC channel number.java.lang.IllegalArgumentException
- If channel < 0
.java.util.NoSuchElementException
- If no ADCChip
supports the given channel.ADC
public ADC createADC(ADCChip chip, int channel)
ADC
object with the given ADC channel
number and ADCChip
.chip
- The ADCChip
.channel
- The ADC channel number.java.lang.IllegalArgumentException
- If chip == null
or
channel < 0
.java.util.NoSuchElementException
- If there is no such ADCChip
or it does not support the given channel.ADC
public java.util.List<ADCChip> getADCChips()