11.07.2015 Views

Imagecraft c compiler and development environment for the atmel avr

Imagecraft c compiler and development environment for the atmel avr

Imagecraft c compiler and development environment for the atmel avr

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ICCV8 <strong>for</strong> AVR – C Compiler <strong>for</strong> Atmel AVRGreater Than 64K Access FunctionsThese functions are mainly <strong>for</strong> XMega users to access greater-than-64K-bytes data<strong>and</strong> flash program space. The values of <strong>the</strong> RAMP? registers are preserved. Theirprototype declarations are in AVRdef.h.The extended 5-byte address is specified by ramp, which is <strong>the</strong> RAMP register value,or <strong>the</strong> page number, <strong>and</strong> a 16-bit address.Flash Functions unsigned char FlashReadByte(unsigned char ramp, unsignedaddr)reads a byte from <strong>the</strong> extended address in flash. unsigned FlashReadWord(unsigned char ramp, unsigned addr)reads a 16-bit word from <strong>the</strong> extended address in flash. unsigned long FlashReadLWord(unsigned char ramp, unsignedaddr)reads a 32-bit long word from <strong>the</strong> extended address in flash. void FlashReadBytes(unsigned char ramp, unsigned addr,unsigned char *buf, int n)reads a sequence of bytes from <strong>the</strong> extended address in flash into a buffer buf in<strong>the</strong> lower 64K SRAM address with length n.SRAM Read Functions unsigned char EDataReadByte(unsigned char ramp, unsignedaddr)reads a byte from <strong>the</strong> extended address in SRAM. unsigned EDataReadWord(unsigned char ramp, unsigned addr)reads a 16-bit word from <strong>the</strong> extended address in SRAM. unsigned long EDataReadLWord(unsigned char ramp, unsignedaddr)reads a 32-bit long word from <strong>the</strong> extended address in SRAM. void EDataReadBytes(unsigned char ramp, unsigned addr,unsigned char *buf, int n)108

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!