Atmel Software Framework

sensor_nvram.c File Reference

Atmel AVR and AVR UC3 Sensor NVRAM Interfaces.

This module provides general access to the NVRAM interfaces in the Atmel Software Framework.

Copyright (c) 2011-2012 Atmel Corporation. All rights reserved.

#include "sensor_nvram.h"
#include <sysclk.h>
#include <string.h>

Functions

void nvram_read (nvram_addr_t src, void *dst, size_t count)
 Read a buffer from non-volatile RAM. More...
 
void nvram_write (nvram_addr_t dst, const void *src, size_t count)
 Write a buffer to non-volatile RAM. More...
 

void nvram_read ( nvram_addr_t  src,
void *  dst,
size_t  count 
)

Read a buffer from non-volatile RAM.

This routine reads count Bytes from the NVRAM source pointed to by src to the destination buffer pointed to by dst.

Parameters
srcthe read source in the NVRAM address space
dstthe destination buffer in program data memory space
countthe number of Bytes to read
Returns
Nothing.
void nvram_write ( nvram_addr_t  dst,
const void *  src,
size_t  count 
)

Write a buffer to non-volatile RAM.

Atmel platform non-volatile memory spaces.

This routine writes count Bytes to the NVRAM destination pointed to by dst from the source buffer pointed to by src.

Parameters
dstthe write destination in the NVRAM address space
srcthe source buffer in program data memory space
countthe number of Bytes to write
Returns
Nothing.

References sysclk_disable_pbb_module(), and sysclk_enable_pbb_module().