Atmel Software Framework

avr8_hugemem.c File Reference

Access to huge data memory with 8-bit AVR.

Copyright (c) 2009-2015 Atmel Corporation. All rights reserved.

#include "hugemem.h"
#include "compiler.h"
#include "conf_board.h"

Functions

uint_fast16_t hugemem_read16 (const hugemem_ptr_t from)
 Read 16-bit value stored at huge memory address from. More...
 
uint_fast32_t hugemem_read32 (const hugemem_ptr_t from)
 Read 32-bit value stored at huge memory address from. More...
 
void hugemem_read_block (void *to, const hugemem_ptr_t from, size_t size)
 Read size bytes from huge memory address from into buffer at address to. More...
 
void hugemem_write16 (hugemem_ptr_t to, uint_fast16_t val)
 Write 16-bit value val to huge memory address to. More...
 
void hugemem_write32 (hugemem_ptr_t to, uint_fast32_t val)
 Write 32-bit value val to huge memory address to. More...
 
void hugemem_write_block (hugemem_ptr_t to, const void *from, size_t size)
 Write size bytes from buffer at address from to huge memory address to. More...
 

static uint16_t hugemem_read16 ( const hugemem_ptr_t  from)
inline

Read 16-bit value stored at huge memory address from.

static uint32_t hugemem_read32 ( const hugemem_ptr_t  from)
inline

Read 32-bit value stored at huge memory address from.

Referenced by run_data_bus_test(), and run_data_integrity_test().

static void hugemem_read_block ( void *  to,
const hugemem_ptr_t  from,
size_t  size 
)
inline

Read size bytes from huge memory address from into buffer at address to.

References Assert.

Referenced by gfx_draw_char_hugemem(), gfx_mono_draw_char_hugemem(), virtual_mem_2_ram(), and virtual_usb_trans().

static void hugemem_write_block ( hugemem_ptr_t  to,
const void *  from,
size_t  size 
)
inline

Write size bytes from buffer at address from to huge memory address to.

References Assert.

Referenced by virtual_ram_2_mem(), and virtual_usb_trans().