nanovm.avr
Class Adc

java.lang.Object
  extended by nanovm.avr.Adc

public class Adc
extends java.lang.Object


Field Summary
static int AREF
           
static int AVCC
           
static int CHANNEL0
           
static int CHANNEL1
           
static int CHANNEL2
           
static int CHANNEL3
           
static int CHANNEL4
           
static int CHANNEL5
           
static int CHANNEL6
           
static int CHANNEL7
           
static int CHANNELGND
           
static int CHANNELVBG
           
static int DIV128
           
static int DIV16
           
static int DIV2
           
static int DIV2A
           
static int DIV32
           
static int DIV4
           
static int DIV64
           
static int DIV8
           
static int INTERNAL
           
 
Constructor Summary
Adc()
           
 
Method Summary
static int getByte(int channel)
           
static int getValue(int channel)
           
static void setPrescaler(int value)
           
static void setReference(int value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DIV2

public static final int DIV2
See Also:
Constant Field Values

DIV2A

public static final int DIV2A
See Also:
Constant Field Values

DIV4

public static final int DIV4
See Also:
Constant Field Values

DIV8

public static final int DIV8
See Also:
Constant Field Values

DIV16

public static final int DIV16
See Also:
Constant Field Values

DIV32

public static final int DIV32
See Also:
Constant Field Values

DIV64

public static final int DIV64
See Also:
Constant Field Values

DIV128

public static final int DIV128
See Also:
Constant Field Values

AREF

public static final int AREF
See Also:
Constant Field Values

AVCC

public static final int AVCC
See Also:
Constant Field Values

INTERNAL

public static final int INTERNAL
See Also:
Constant Field Values

CHANNEL0

public static final int CHANNEL0
See Also:
Constant Field Values

CHANNEL1

public static final int CHANNEL1
See Also:
Constant Field Values

CHANNEL2

public static final int CHANNEL2
See Also:
Constant Field Values

CHANNEL3

public static final int CHANNEL3
See Also:
Constant Field Values

CHANNEL4

public static final int CHANNEL4
See Also:
Constant Field Values

CHANNEL5

public static final int CHANNEL5
See Also:
Constant Field Values

CHANNEL6

public static final int CHANNEL6
See Also:
Constant Field Values

CHANNEL7

public static final int CHANNEL7
See Also:
Constant Field Values

CHANNELVBG

public static final int CHANNELVBG
See Also:
Constant Field Values

CHANNELGND

public static final int CHANNELGND
See Also:
Constant Field Values
Constructor Detail

Adc

public Adc()
Method Detail

setPrescaler

public static void setPrescaler(int value)

setReference

public static void setReference(int value)

getValue

public static int getValue(int channel)

getByte

public static int getByte(int channel)