AvrDevice_at90canbase Class Reference

#include <at90canbase.h>

Inheritance diagram for AvrDevice_at90canbase:
Inheritance graph
[legend]
Collaboration diagram for AvrDevice_at90canbase:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 AvrDevice_at90canbase (unsigned ram_bytes, unsigned flash_bytes, unsigned ee_bytes)
 ~AvrDevice_at90canbase ()

Protected Attributes

Pin aref
 analog reference pin
HWPort porta
 port B
HWPort portb
 port B
HWPort portc
 port C
HWPort portd
 port D
HWPort porte
 port E
HWPort portf
 port F
HWPort portg
 port G
IOSpecialReg gtccr_reg
 GTCCR IO register.
IOSpecialReg assr_reg
 ASSR IO register.
HWPrescaler prescaler013
 prescaler unit for timer 0 and 1
HWPrescalerAsync prescaler2
 prescaler unit for timer 2
ExternalIRQHandlerextirq01
 external interrupt support for INT0, INT1, INT2, INT3, INT4, INT5, INT6, INT7
IOSpecialRegeicra_reg
 EICRA IO register.
IOSpecialRegeicrb_reg
 EICRA IO register.
IOSpecialRegeimsk_reg
 EIMSK IO register.
IOSpecialRegeifr_reg
 EIFR IO register.
HWAdmux admux
 adc multiplexer unit
HWAdad
 adc unit
HWSpispi
 spi unit
HWAcompacomp
 analog compare unit
HWUsartusart0
 usart 0 unit
HWUsartusart1
 usart 1 unit
TimerIRQRegistertimerIrq0
 timer interrupt unit for timer 0
HWTimer8_1Ctimer0
 timer 0 unit
ICaptureSourceinputCapture1
 input capture source for timer1
TimerIRQRegistertimerIrq1
 timer interrupt unit for timer 1
HWTimer16_3Ctimer1
 timer 1 unit
TimerIRQRegistertimerIrq2
 timer interrupt unit for timer 2
HWTimer8_1Ctimer2
 timer 2 unit
ICaptureSourceinputCapture3
 input capture source for timer3
TimerIRQRegistertimerIrq3
 timer interrupt unit for timer 3
HWTimer16_3Ctimer3
 timer 3 unit
GPIORegistergpior0_reg
GPIORegistergpior1_reg
GPIORegistergpior2_reg

Detailed Description

AVRDevice class for AT90CAN/32/64/128

Todo:

This device isn't completely implemented. There is no boot loader section support for >= ATMega88, only normal interrupt vector start address supported, incomplete usart registers (and maybe more ...)

Timer2 needs the external clocking bits

Definition at line 49 of file at90canbase.h.


Constructor & Destructor Documentation

AvrDevice_at90canbase::AvrDevice_at90canbase ( unsigned  ram_bytes,
unsigned  flash_bytes,
unsigned  ee_bytes 
)

Creates the device for ATMega48/88/168/328

Parameters:
ram_bytes how much SRAM does the device own
flash_bytes how much flash memory does the device own
ee_bytes how much EEPROM space does the device own

Definition at line 65 of file at90canbase.cpp.

References acomp, HWAcomp::acsr_reg, ad, HWAd::adch_reg, HWAd::adcl_reg, HWAd::adcsr_reg, admux, HWAdmux::admux_reg, aref, assr_reg, AvrDevice::coreTraceGroup, HWPort::ddr_reg, HWEeprom::DEVMODE_EXTENDED, HWEeprom::eearh_reg, HWEeprom::eearl_reg, HWEeprom::eecr_reg, HWEeprom::eedr_reg, AvrDevice::eeprom, eicra_reg, eicrb_reg, eifr_reg, eimsk_reg, AddressExtensionRegister::ext_reg, extirq01, AvrDevice::flagJMPInstructions, TimerIRQRegister::getLine(), AvrDevice::GetPin(), gpior0_reg, gpior1_reg, gpior2_reg, gtccr_reg, HWTimer16::icr_h_reg, HWTimer16::icr_l_reg, inputCapture1, inputCapture3, AvrDevice::irqSystem, HWTimer16::ocra_h_reg, HWTimer16::ocra_l_reg, HWTimer8::ocra_reg, HWTimer16::ocrb_h_reg, HWTimer16::ocrb_l_reg, HWTimer16::ocrc_h_reg, HWTimer16::ocrc_l_reg, HWPort::pin_reg, HWPort::port_reg, porta, portb, portc, portd, porte, portf, portg, prescaler013, prescaler2, AvrDevice::rampz, ExternalIRQHandler::registerIrq(), TimerIRQRegister::registerLine(), AvrDevice::RegisterPin(), AvrDevice::Reset(), AvrDevice::rw, HWSpi::spcr_reg, HWSpi::spdr_reg, spi, HWSpi::spsr_reg, AvrDevice::stack, AvrDevice::statusRegister, HWTimer8_1C::tccr_reg, HWTimer16_3C::tccra_reg, HWTimer16_3C::tccrb_reg, HWTimer16_3C::tccrc_reg, HWTimer16::tcnt_h_reg, HWTimer16::tcnt_l_reg, HWTimer8::tcnt_reg, TimerIRQRegister::tifr_reg, timer0, timer1, timer2, timer3, timerIrq0, timerIrq1, timerIrq2, timerIrq3, TimerIRQRegister::timsk_reg, HWUart::ubrr_reg, HWUart::ubrrhi_reg, HWUart::ucsra_reg, HWUart::ucsrb_reg, HWUsart::ucsrc_reg, HWUart::udr_reg, usart0, usart1, AvrDevice::wado, and HWWado::wdtcr_reg.

Here is the call graph for this function:

AvrDevice_at90canbase::~AvrDevice_at90canbase (  ) 

Member Data Documentation

analog compare unit

Definition at line 72 of file at90canbase.h.

Referenced by AvrDevice_at90canbase(), and ~AvrDevice_at90canbase().

adc unit

Definition at line 70 of file at90canbase.h.

Referenced by AvrDevice_at90canbase(), and ~AvrDevice_at90canbase().

adc multiplexer unit

Definition at line 69 of file at90canbase.h.

Referenced by AvrDevice_at90canbase().

analog reference pin

Definition at line 52 of file at90canbase.h.

Referenced by AvrDevice_at90canbase().

ASSR IO register.

Definition at line 61 of file at90canbase.h.

Referenced by AvrDevice_at90canbase().

EICRA IO register.

Definition at line 65 of file at90canbase.h.

Referenced by AvrDevice_at90canbase(), and ~AvrDevice_at90canbase().

EICRA IO register.

Definition at line 66 of file at90canbase.h.

Referenced by AvrDevice_at90canbase(), and ~AvrDevice_at90canbase().

EIFR IO register.

Definition at line 68 of file at90canbase.h.

Referenced by AvrDevice_at90canbase(), and ~AvrDevice_at90canbase().

EIMSK IO register.

Definition at line 67 of file at90canbase.h.

Referenced by AvrDevice_at90canbase(), and ~AvrDevice_at90canbase().

external interrupt support for INT0, INT1, INT2, INT3, INT4, INT5, INT6, INT7

Definition at line 64 of file at90canbase.h.

Referenced by AvrDevice_at90canbase(), and ~AvrDevice_at90canbase().

Definition at line 87 of file at90canbase.h.

Referenced by AvrDevice_at90canbase(), and ~AvrDevice_at90canbase().

Definition at line 88 of file at90canbase.h.

Referenced by AvrDevice_at90canbase(), and ~AvrDevice_at90canbase().

Definition at line 89 of file at90canbase.h.

Referenced by AvrDevice_at90canbase(), and ~AvrDevice_at90canbase().

GTCCR IO register.

Definition at line 60 of file at90canbase.h.

Referenced by AvrDevice_at90canbase().

input capture source for timer1

Definition at line 77 of file at90canbase.h.

Referenced by AvrDevice_at90canbase(), and ~AvrDevice_at90canbase().

input capture source for timer3

Definition at line 83 of file at90canbase.h.

Referenced by AvrDevice_at90canbase(), and ~AvrDevice_at90canbase().

port B

Definition at line 53 of file at90canbase.h.

Referenced by AvrDevice_at90canbase().

port B

Definition at line 54 of file at90canbase.h.

Referenced by AvrDevice_at90canbase().

port C

Definition at line 55 of file at90canbase.h.

Referenced by AvrDevice_at90canbase().

port D

Definition at line 56 of file at90canbase.h.

Referenced by AvrDevice_at90canbase().

port E

Definition at line 57 of file at90canbase.h.

Referenced by AvrDevice_at90canbase().

port F

Definition at line 58 of file at90canbase.h.

Referenced by AvrDevice_at90canbase().

port G

Definition at line 59 of file at90canbase.h.

Referenced by AvrDevice_at90canbase().

prescaler unit for timer 0 and 1

Definition at line 62 of file at90canbase.h.

Referenced by AvrDevice_at90canbase().

prescaler unit for timer 2

Definition at line 63 of file at90canbase.h.

Referenced by AvrDevice_at90canbase().

spi unit

Definition at line 71 of file at90canbase.h.

Referenced by AvrDevice_at90canbase(), and ~AvrDevice_at90canbase().

timer 0 unit

Definition at line 76 of file at90canbase.h.

Referenced by AvrDevice_at90canbase(), and ~AvrDevice_at90canbase().

timer 1 unit

Definition at line 79 of file at90canbase.h.

Referenced by AvrDevice_at90canbase(), and ~AvrDevice_at90canbase().

timer 2 unit

Definition at line 81 of file at90canbase.h.

Referenced by AvrDevice_at90canbase(), and ~AvrDevice_at90canbase().

timer 3 unit

Definition at line 85 of file at90canbase.h.

Referenced by AvrDevice_at90canbase(), and ~AvrDevice_at90canbase().

timer interrupt unit for timer 0

Definition at line 75 of file at90canbase.h.

Referenced by AvrDevice_at90canbase(), and ~AvrDevice_at90canbase().

timer interrupt unit for timer 1

Definition at line 78 of file at90canbase.h.

Referenced by AvrDevice_at90canbase(), and ~AvrDevice_at90canbase().

timer interrupt unit for timer 2

Definition at line 80 of file at90canbase.h.

Referenced by AvrDevice_at90canbase(), and ~AvrDevice_at90canbase().

timer interrupt unit for timer 3

Definition at line 84 of file at90canbase.h.

Referenced by AvrDevice_at90canbase(), and ~AvrDevice_at90canbase().

usart 0 unit

Definition at line 73 of file at90canbase.h.

Referenced by AvrDevice_at90canbase(), and ~AvrDevice_at90canbase().

usart 1 unit

Definition at line 74 of file at90canbase.h.

Referenced by AvrDevice_at90canbase(), and ~AvrDevice_at90canbase().


The documentation for this class was generated from the following files:
Generated on Sun Feb 12 16:49:52 2012 for Simulavr by  doxygen 1.6.3