|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IVonHippelModuleControl
| Field Summary | |
|---|---|
static int |
VH_ADC_W1_CH0
|
static int |
VH_ADC_W1_CH01
|
static int |
VH_ADC_W1_CH1
|
static int |
VH_ADC_W1_CH10
|
static int |
VH_ADC_W1_CH2
|
static int |
VH_ADC_W1_CH23
|
static int |
VH_ADC_W1_CH3
|
static int |
VH_ADC_W1_CH32
|
static int |
VH_ADC_W1_EN
|
static int |
VH_ADC_W2_EN
|
static int |
VH_ADC_W2_IM
|
static int |
VH_ADC_W2_SPD
|
static int |
VH_DAC_BCH
|
static int |
VH_DAC_CHA
|
static int |
VH_DAC_CHB
|
static int |
VH_DAC_PD100K
|
static int |
VH_DAC_PD1K
|
static int |
VH_DAC_PDF
|
static int |
VH_DAC_PU
|
static int |
VH_DAC_W1_ALL
|
static int |
VH_DAC_W1_ALLA
|
static int |
VH_DAC_W1_ALLB
|
static int |
VH_DAC_W1_ALLI
|
static int |
VH_DAC_W1_EC
|
static int |
VH_DAC_W1_LA
|
static int |
VH_DAC_W1_LB
|
static int |
VH_DAC_W1_RDA
|
static int |
VH_DAC_W1_RDB
|
static int |
VH_DAC_W1_UA
|
static int |
VH_DAC_W1_UALL
|
static int |
VH_DAC_W1_UB
|
| Method Summary | |
|---|---|
void |
clearGPIO(int pin)
Sets specified pin as low |
void |
clearIOX(int pin)
Sets specified IOX pin as high. |
int |
getRDACResistance()
Get RDAC resistance value from ioctl |
java.io.InputStream |
getRS232InputStream()
Deprecated. |
java.io.OutputStream |
getRS232OutputStream()
Deprecated. |
int |
getStatus()
Returns status of module. |
int |
LEDGreenOff()
Set module's Green LED off. |
int |
LEDGreenOn()
Set module's Green LED on. |
int |
LEDRedOff()
Set module's Red LED off. |
int |
LEDRedOn()
Set module's Red LED on. |
void |
makeGPIOIn(int pin)
Sets specified pin as an in pin. |
void |
makeGPIOOut(int pin)
Sets specified pin as an output pin. |
void |
makeIOXIn(int pin)
Sets specified IOX pin as an in pin |
void |
makeIOXOut(int pin)
Sets specified IOX pin as an out pin |
int |
readADC()
Read value after last conversion. |
int |
readDAC(int channel)
Read channel after last conversion. |
void |
setGPIO(int pin)
Sets specified pin as high |
void |
setIOX(int pin)
Sets specified IOX pin as high. |
void |
setRDACResistance(int resistance)
Set RDAC to adjust LDO voltage |
void |
writeADC(int control)
|
void |
writeDAC(int digital)
|
| Field Detail |
|---|
static final int VH_ADC_W1_EN
static final int VH_ADC_W1_CH01
static final int VH_ADC_W1_CH23
static final int VH_ADC_W1_CH10
static final int VH_ADC_W1_CH32
static final int VH_ADC_W1_CH0
static final int VH_ADC_W1_CH1
static final int VH_ADC_W1_CH2
static final int VH_ADC_W1_CH3
static final int VH_ADC_W2_EN
static final int VH_ADC_W2_IM
static final int VH_ADC_W2_SPD
static final int VH_DAC_W1_UA
static final int VH_DAC_W1_UB
static final int VH_DAC_W1_LA
static final int VH_DAC_W1_LB
static final int VH_DAC_W1_ALLA
static final int VH_DAC_W1_ALLB
static final int VH_DAC_W1_ALL
static final int VH_DAC_W1_ALLI
static final int VH_DAC_W1_UALL
static final int VH_DAC_W1_EC
static final int VH_DAC_BCH
static final int VH_DAC_CHB
static final int VH_DAC_CHA
static final int VH_DAC_PD100K
static final int VH_DAC_PD1K
static final int VH_DAC_PDF
static final int VH_DAC_PU
static final int VH_DAC_W1_RDA
static final int VH_DAC_W1_RDB
| Method Detail |
|---|
int LEDRedOff()
throws java.io.IOException
java.io.IOException
int LEDRedOn()
throws java.io.IOException
java.io.IOException
int LEDGreenOff()
throws java.io.IOException
java.io.IOException
int LEDGreenOn()
throws java.io.IOException
java.io.IOException
int getStatus()
throws java.io.IOException
java.io.IOException
void makeGPIOOut(int pin)
throws java.io.IOException
pin - to set as Out
java.io.IOException
void makeGPIOIn(int pin)
throws java.io.IOException
pin - to set as Out
java.io.IOException
void setGPIO(int pin)
throws java.io.IOException
pin - to set as high
java.io.IOException
void clearGPIO(int pin)
throws java.io.IOException
pin - to set as low
java.io.IOException
void makeIOXOut(int pin)
throws java.io.IOException
IOX - pin to set as Out
java.io.IOException
void makeIOXIn(int pin)
throws java.io.IOException
IOX - pin to set as in
java.io.IOException
void setIOX(int pin)
throws java.io.IOException
IOX - pin to set as high
java.io.IOException
void clearIOX(int pin)
throws java.io.IOException
IOX - pin to set as low
java.io.IOException
void setRDACResistance(int resistance)
throws java.io.IOException
resistance - value
java.io.IOException
int getRDACResistance()
throws java.io.IOException
resistance - value
java.io.IOException
void writeADC(int control)
throws java.io.IOException
control - the control word to be written to ADC.
Used to initiate ADC conversion and also configure
ADC device for ADC single-ended or differential, among
other things. see bmi_vh.h and bmi_vh.c in kernel.
java.io.IOException
int readADC()
throws java.io.IOException
java.io.IOException
void writeDAC(int digital)
throws java.io.IOException
digital - the control word encoded digital
input to be encoded as analog out. See datasheet and
bmi_vh.h and bmi_vh.c in kernel.
java.io.IOException
int readDAC(int channel)
throws java.io.IOException
channel - should be either VH_DAC_W1_RDA for channel A
or VH_DAC_W1_RDB for channel B.
java.io.IOExceptionjava.io.InputStream getRS232InputStream()
java.io.OutputStream getRS232OutputStream()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||