com.sun.spot.sensorboard.hardware
Class Atmega
java.lang.Object
com.sun.spot.sensorboard.hardware.Atmega
- Direct Known Subclasses:
- Atmega48, Atmega88
public abstract class Atmega
- extends Object
Simple wrapper for the Atmega part.
Bring out the necessary aspects to control the part in the SPOT environment.
Please see the documentation published by Atmel for more infomation on the
contents of this file.
- Author:
- arshan
SPI_CONFIG
public static final int SPI_CONFIG
- See Also:
- Constant Field Values
FLASH_SIZE
public int FLASH_SIZE
FLASH_PGSIZE
public int FLASH_PGSIZE
EEPROM_SIZE
public int EEPROM_SIZE
EEPROM_PGSIZE
public int EEPROM_PGSIZE
SIG_POSITIONS
public byte[] SIG_POSITIONS
SIGNATURE
public byte[] SIGNATURE
REG_PINB
public static final int REG_PINB
- See Also:
- Constant Field Values
PINB7
public static final int PINB7
- See Also:
- Constant Field Values
PINB6
public static final int PINB6
- See Also:
- Constant Field Values
PINB5
public static final int PINB5
- See Also:
- Constant Field Values
PINB4
public static final int PINB4
- See Also:
- Constant Field Values
PINB3
public static final int PINB3
- See Also:
- Constant Field Values
PINB2
public static final int PINB2
- See Also:
- Constant Field Values
PINB1
public static final int PINB1
- See Also:
- Constant Field Values
PINB0
public static final int PINB0
- See Also:
- Constant Field Values
REG_DDRB
public static final int REG_DDRB
- See Also:
- Constant Field Values
DDB7
public static final int DDB7
- See Also:
- Constant Field Values
DDB6
public static final int DDB6
- See Also:
- Constant Field Values
DDB5
public static final int DDB5
- See Also:
- Constant Field Values
DDB4
public static final int DDB4
- See Also:
- Constant Field Values
DDB3
public static final int DDB3
- See Also:
- Constant Field Values
DDB2
public static final int DDB2
- See Also:
- Constant Field Values
DDB1
public static final int DDB1
- See Also:
- Constant Field Values
DDB0
public static final int DDB0
- See Also:
- Constant Field Values
REG_PORTB
public static final int REG_PORTB
- See Also:
- Constant Field Values
PB7
public static final int PB7
- See Also:
- Constant Field Values
PB6
public static final int PB6
- See Also:
- Constant Field Values
PB5
public static final int PB5
- See Also:
- Constant Field Values
PB4
public static final int PB4
- See Also:
- Constant Field Values
PB3
public static final int PB3
- See Also:
- Constant Field Values
PB2
public static final int PB2
- See Also:
- Constant Field Values
PB1
public static final int PB1
- See Also:
- Constant Field Values
PB0
public static final int PB0
- See Also:
- Constant Field Values
REG_PINC
public static final int REG_PINC
- See Also:
- Constant Field Values
PINC6
public static final int PINC6
- See Also:
- Constant Field Values
PINC5
public static final int PINC5
- See Also:
- Constant Field Values
PINC4
public static final int PINC4
- See Also:
- Constant Field Values
PINC3
public static final int PINC3
- See Also:
- Constant Field Values
PINC2
public static final int PINC2
- See Also:
- Constant Field Values
PINC1
public static final int PINC1
- See Also:
- Constant Field Values
PINC0
public static final int PINC0
- See Also:
- Constant Field Values
REG_DDRC
public static final int REG_DDRC
- See Also:
- Constant Field Values
DDC6
public static final int DDC6
- See Also:
- Constant Field Values
DDC5
public static final int DDC5
- See Also:
- Constant Field Values
DDC4
public static final int DDC4
- See Also:
- Constant Field Values
DDC3
public static final int DDC3
- See Also:
- Constant Field Values
DDC2
public static final int DDC2
- See Also:
- Constant Field Values
DDC1
public static final int DDC1
- See Also:
- Constant Field Values
DDC0
public static final int DDC0
- See Also:
- Constant Field Values
REG_PORTC
public static final int REG_PORTC
- See Also:
- Constant Field Values
PC6
public static final int PC6
- See Also:
- Constant Field Values
PC5
public static final int PC5
- See Also:
- Constant Field Values
PC4
public static final int PC4
- See Also:
- Constant Field Values
PC3
public static final int PC3
- See Also:
- Constant Field Values
PC2
public static final int PC2
- See Also:
- Constant Field Values
PC1
public static final int PC1
- See Also:
- Constant Field Values
PC0
public static final int PC0
- See Also:
- Constant Field Values
REG_PIND
public static final int REG_PIND
- See Also:
- Constant Field Values
PIND7
public static final int PIND7
- See Also:
- Constant Field Values
PIND6
public static final int PIND6
- See Also:
- Constant Field Values
PIND5
public static final int PIND5
- See Also:
- Constant Field Values
PIND4
public static final int PIND4
- See Also:
- Constant Field Values
PIND3
public static final int PIND3
- See Also:
- Constant Field Values
PIND2
public static final int PIND2
- See Also:
- Constant Field Values
PIND1
public static final int PIND1
- See Also:
- Constant Field Values
PIND0
public static final int PIND0
- See Also:
- Constant Field Values
REG_DDRD
public static final int REG_DDRD
- See Also:
- Constant Field Values
DDD7
public static final int DDD7
- See Also:
- Constant Field Values
DDD6
public static final int DDD6
- See Also:
- Constant Field Values
DDD5
public static final int DDD5
- See Also:
- Constant Field Values
DDD4
public static final int DDD4
- See Also:
- Constant Field Values
DDD3
public static final int DDD3
- See Also:
- Constant Field Values
DDD2
public static final int DDD2
- See Also:
- Constant Field Values
DDD1
public static final int DDD1
- See Also:
- Constant Field Values
DDD0
public static final int DDD0
- See Also:
- Constant Field Values
REG_PORTD
public static final int REG_PORTD
- See Also:
- Constant Field Values
PD7
public static final int PD7
- See Also:
- Constant Field Values
PD6
public static final int PD6
- See Also:
- Constant Field Values
PD5
public static final int PD5
- See Also:
- Constant Field Values
PD4
public static final int PD4
- See Also:
- Constant Field Values
PD3
public static final int PD3
- See Also:
- Constant Field Values
PD2
public static final int PD2
- See Also:
- Constant Field Values
PD1
public static final int PD1
- See Also:
- Constant Field Values
PD0
public static final int PD0
- See Also:
- Constant Field Values
REG_TIFR0
public static final int REG_TIFR0
- See Also:
- Constant Field Values
OCF0B
public static final int OCF0B
- See Also:
- Constant Field Values
OCF0A
public static final int OCF0A
- See Also:
- Constant Field Values
TOV0
public static final int TOV0
- See Also:
- Constant Field Values
REG_TIFR1
public static final int REG_TIFR1
- See Also:
- Constant Field Values
ICF1
public static final int ICF1
- See Also:
- Constant Field Values
OCF1B
public static final int OCF1B
- See Also:
- Constant Field Values
OCF1A
public static final int OCF1A
- See Also:
- Constant Field Values
TOV1
public static final int TOV1
- See Also:
- Constant Field Values
REG_TIFR2
public static final int REG_TIFR2
- See Also:
- Constant Field Values
OCF2B
public static final int OCF2B
- See Also:
- Constant Field Values
OCF2A
public static final int OCF2A
- See Also:
- Constant Field Values
TOV2
public static final int TOV2
- See Also:
- Constant Field Values
REG_PCIFR
public static final int REG_PCIFR
- See Also:
- Constant Field Values
PCIF2
public static final int PCIF2
- See Also:
- Constant Field Values
PCIF1
public static final int PCIF1
- See Also:
- Constant Field Values
PCIF0
public static final int PCIF0
- See Also:
- Constant Field Values
REG_EIFR
public static final int REG_EIFR
- See Also:
- Constant Field Values
INTF1
public static final int INTF1
- See Also:
- Constant Field Values
INTF0
public static final int INTF0
- See Also:
- Constant Field Values
REG_EIMSK
public static final int REG_EIMSK
- See Also:
- Constant Field Values
INT1
public static final int INT1
- See Also:
- Constant Field Values
INT0
public static final int INT0
- See Also:
- Constant Field Values
REG_GPIOR0
public static final int REG_GPIOR0
- See Also:
- Constant Field Values
REG_EECR
public static final int REG_EECR
- See Also:
- Constant Field Values
EEPM1
public static final int EEPM1
- See Also:
- Constant Field Values
EEPM0
public static final int EEPM0
- See Also:
- Constant Field Values
EERIE
public static final int EERIE
- See Also:
- Constant Field Values
EEMPE
public static final int EEMPE
- See Also:
- Constant Field Values
EEPE
public static final int EEPE
- See Also:
- Constant Field Values
EERE
public static final int EERE
- See Also:
- Constant Field Values
REG_EEDR
public static final int REG_EEDR
- See Also:
- Constant Field Values
REG_EEARL
public static final int REG_EEARL
- See Also:
- Constant Field Values
REG_EEARH
public static final int REG_EEARH
- See Also:
- Constant Field Values
REG_GTCCR
public static final int REG_GTCCR
- See Also:
- Constant Field Values
TSM
public static final int TSM
- See Also:
- Constant Field Values
PSRASY
public static final int PSRASY
- See Also:
- Constant Field Values
PSRSYNC
public static final int PSRSYNC
- See Also:
- Constant Field Values
REG_TCCR0A
public static final int REG_TCCR0A
- See Also:
- Constant Field Values
COM0A1
public static final int COM0A1
- See Also:
- Constant Field Values
COM0A0
public static final int COM0A0
- See Also:
- Constant Field Values
COM0B1
public static final int COM0B1
- See Also:
- Constant Field Values
COM0B0
public static final int COM0B0
- See Also:
- Constant Field Values
WGM01
public static final int WGM01
- See Also:
- Constant Field Values
WGM00
public static final int WGM00
- See Also:
- Constant Field Values
REG_TCCR0B
public static final int REG_TCCR0B
- See Also:
- Constant Field Values
FOC0A
public static final int FOC0A
- See Also:
- Constant Field Values
FOC0B
public static final int FOC0B
- See Also:
- Constant Field Values
WGM02
public static final int WGM02
- See Also:
- Constant Field Values
CS02
public static final int CS02
- See Also:
- Constant Field Values
CS01
public static final int CS01
- See Also:
- Constant Field Values
CS00
public static final int CS00
- See Also:
- Constant Field Values
REG_TCNT0
public static final int REG_TCNT0
- See Also:
- Constant Field Values
REG_OCR0A
public static final int REG_OCR0A
- See Also:
- Constant Field Values
REG_OCR0B
public static final int REG_OCR0B
- See Also:
- Constant Field Values
REG_GPIOR1
public static final int REG_GPIOR1
- See Also:
- Constant Field Values
REG_GPIOR2
public static final int REG_GPIOR2
- See Also:
- Constant Field Values
REG_SPCR
public static final int REG_SPCR
- See Also:
- Constant Field Values
SPIE
public static final int SPIE
- See Also:
- Constant Field Values
SPE
public static final int SPE
- See Also:
- Constant Field Values
DORD
public static final int DORD
- See Also:
- Constant Field Values
MSTR
public static final int MSTR
- See Also:
- Constant Field Values
CPOL
public static final int CPOL
- See Also:
- Constant Field Values
CPHA
public static final int CPHA
- See Also:
- Constant Field Values
SPR1
public static final int SPR1
- See Also:
- Constant Field Values
SPR0
public static final int SPR0
- See Also:
- Constant Field Values
REG_SPSR
public static final int REG_SPSR
- See Also:
- Constant Field Values
SPIF
public static final int SPIF
- See Also:
- Constant Field Values
WCOL
public static final int WCOL
- See Also:
- Constant Field Values
SPI2X
public static final int SPI2X
- See Also:
- Constant Field Values
REG_SPDR
public static final int REG_SPDR
- See Also:
- Constant Field Values
REG_ACSR
public static final int REG_ACSR
- See Also:
- Constant Field Values
ACD
public static final int ACD
- See Also:
- Constant Field Values
ACBG
public static final int ACBG
- See Also:
- Constant Field Values
ACO
public static final int ACO
- See Also:
- Constant Field Values
ACI
public static final int ACI
- See Also:
- Constant Field Values
ACIE
public static final int ACIE
- See Also:
- Constant Field Values
ACIC
public static final int ACIC
- See Also:
- Constant Field Values
ACIS1
public static final int ACIS1
- See Also:
- Constant Field Values
ACIS0
public static final int ACIS0
- See Also:
- Constant Field Values
REG_MONDR
public static final int REG_MONDR
- See Also:
- Constant Field Values
REG_SMCR
public static final int REG_SMCR
- See Also:
- Constant Field Values
SM2
public static final int SM2
- See Also:
- Constant Field Values
SM1
public static final int SM1
- See Also:
- Constant Field Values
SM0
public static final int SM0
- See Also:
- Constant Field Values
SE
public static final int SE
- See Also:
- Constant Field Values
REG_MCUSR
public static final int REG_MCUSR
- See Also:
- Constant Field Values
WDRF
public static final int WDRF
- See Also:
- Constant Field Values
BORF
public static final int BORF
- See Also:
- Constant Field Values
EXTRF
public static final int EXTRF
- See Also:
- Constant Field Values
PORF
public static final int PORF
- See Also:
- Constant Field Values
REG_MCUCR
public static final int REG_MCUCR
- See Also:
- Constant Field Values
PUD
public static final int PUD
- See Also:
- Constant Field Values
IVSEL
public static final int IVSEL
- See Also:
- Constant Field Values
IVCE
public static final int IVCE
- See Also:
- Constant Field Values
REG_SPMCSR
public static final int REG_SPMCSR
- See Also:
- Constant Field Values
SPMIE
public static final int SPMIE
- See Also:
- Constant Field Values
RWWSB
public static final int RWWSB
- See Also:
- Constant Field Values
RWWSRE
public static final int RWWSRE
- See Also:
- Constant Field Values
BLBSET
public static final int BLBSET
- See Also:
- Constant Field Values
PGWRT
public static final int PGWRT
- See Also:
- Constant Field Values
PGERS
public static final int PGERS
- See Also:
- Constant Field Values
SELFPRGEN
public static final int SELFPRGEN
- See Also:
- Constant Field Values
SPMEN
public static final int SPMEN
- See Also:
- Constant Field Values
Atmega
public Atmega(ISPI spi,
ISPI pSPI)
getName
public String getName()
setName
public void setName(String n)
getFirmwareRev
public String getFirmwareRev()
setFirmwareRev
public void setFirmwareRev(String r)
toString
public String toString()
- Description copied from class:
Object
- Returns a string representation of the object. In general, the
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
- Overrides:
toString
in class Object
- Returns:
- a string representation of the object.
getSPI
public ISPI getSPI()
getProgrammingSPI
public ISPI getProgrammingSPI()
reset
public void reset()
Copyright © 2006, 2007 Sun Microsystems, Inc. All Rights Reserved.