SunSPOT API V3.0


com.sun.spot.sensorboard.hardware
Class Atmega

java.lang.Object
  extended by 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

Field Summary
static int ACBG
           
static int ACD
           
static int ACI
           
static int ACIC
           
static int ACIE
           
static int ACIS0
           
static int ACIS1
           
static int ACO
           
static int BLBSET
           
static int BORF
           
static int COM0A0
           
static int COM0A1
           
static int COM0B0
           
static int COM0B1
           
static int CPHA
           
static int CPOL
           
static int CS00
           
static int CS01
           
static int CS02
           
static int DDB0
           
static int DDB1
           
static int DDB2
           
static int DDB3
           
static int DDB4
           
static int DDB5
           
static int DDB6
           
static int DDB7
           
static int DDC0
           
static int DDC1
           
static int DDC2
           
static int DDC3
           
static int DDC4
           
static int DDC5
           
static int DDC6
           
static int DDD0
           
static int DDD1
           
static int DDD2
           
static int DDD3
           
static int DDD4
           
static int DDD5
           
static int DDD6
           
static int DDD7
           
static int DORD
           
static int EEMPE
           
static int EEPE
           
static int EEPM0
           
static int EEPM1
           
 int EEPROM_PGSIZE
           
 int EEPROM_SIZE
           
static int EERE
           
static int EERIE
           
static int EXTRF
           
 int FLASH_PGSIZE
           
 int FLASH_SIZE
           
static int FOC0A
           
static int FOC0B
           
static int ICF1
           
static int INT0
           
static int INT1
           
static int INTF0
           
static int INTF1
           
static int IVCE
           
static int IVSEL
           
static int MSTR
           
static int OCF0A
           
static int OCF0B
           
static int OCF1A
           
static int OCF1B
           
static int OCF2A
           
static int OCF2B
           
static int PB0
           
static int PB1
           
static int PB2
           
static int PB3
           
static int PB4
           
static int PB5
           
static int PB6
           
static int PB7
           
static int PC0
           
static int PC1
           
static int PC2
           
static int PC3
           
static int PC4
           
static int PC5
           
static int PC6
           
static int PCIF0
           
static int PCIF1
           
static int PCIF2
           
static int PD0
           
static int PD1
           
static int PD2
           
static int PD3
           
static int PD4
           
static int PD5
           
static int PD6
           
static int PD7
           
static int PGERS
           
static int PGWRT
           
static int PINB0
           
static int PINB1
           
static int PINB2
           
static int PINB3
           
static int PINB4
           
static int PINB5
           
static int PINB6
           
static int PINB7
           
static int PINC0
           
static int PINC1
           
static int PINC2
           
static int PINC3
           
static int PINC4
           
static int PINC5
           
static int PINC6
           
static int PIND0
           
static int PIND1
           
static int PIND2
           
static int PIND3
           
static int PIND4
           
static int PIND5
           
static int PIND6
           
static int PIND7
           
static int PORF
           
static int PSRASY
           
static int PSRSYNC
           
static int PUD
           
static int REG_ACSR
           
static int REG_DDRB
           
static int REG_DDRC
           
static int REG_DDRD
           
static int REG_EEARH
           
static int REG_EEARL
           
static int REG_EECR
           
static int REG_EEDR
           
static int REG_EIFR
           
static int REG_EIMSK
           
static int REG_GPIOR0
           
static int REG_GPIOR1
           
static int REG_GPIOR2
           
static int REG_GTCCR
           
static int REG_MCUCR
           
static int REG_MCUSR
           
static int REG_MONDR
           
static int REG_OCR0A
           
static int REG_OCR0B
           
static int REG_PCIFR
           
static int REG_PINB
           
static int REG_PINC
           
static int REG_PIND
           
static int REG_PORTB
           
static int REG_PORTC
           
static int REG_PORTD
           
static int REG_SMCR
           
static int REG_SPCR
           
static int REG_SPDR
           
static int REG_SPMCSR
           
static int REG_SPSR
           
static int REG_TCCR0A
           
static int REG_TCCR0B
           
static int REG_TCNT0
           
static int REG_TIFR0
           
static int REG_TIFR1
           
static int REG_TIFR2
           
static int RWWSB
           
static int RWWSRE
           
static int SE
           
static int SELFPRGEN
           
 byte[] SIG_POSITIONS
           
 byte[] SIGNATURE
           
static int SM0
           
static int SM1
           
static int SM2
           
static int SPE
           
static int SPI_CONFIG
           
static int SPI2X
           
static int SPIE
           
static int SPIF
           
static int SPMEN
           
static int SPMIE
           
static int SPR0
           
static int SPR1
           
static int TOV0
           
static int TOV1
           
static int TOV2
           
static int TSM
           
static int WCOL
           
static int WDRF
           
static int WGM00
           
static int WGM01
           
static int WGM02
           
 
Constructor Summary
Atmega(ISPI spi, ISPI pSPI)
           
 
Method Summary
 String getFirmwareRev()
           
 String getName()
           
 ISPI getProgrammingSPI()
           
 ISPI getSPI()
           
 void reset()
           
 void setFirmwareRev(String r)
           
 void setName(String n)
           
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

Atmega

public Atmega(ISPI spi,
              ISPI pSPI)
Method Detail

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()

SunSPOT API V3.0


Copyright © 2006, 2007 Sun Microsystems, Inc. All Rights Reserved.