Microchip® Advanced Software Framework

sensor_nvram.h 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-2018 Microchip Technology Inc. and its subsidiaries.

#include <compiler.h>

Typedefs

typedef uint16_t nvram_addr_t
 Data type for NVRAM memory addresses. More...
 

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)
 Atmel platform non-volatile memory spaces. More...
 

typedef uint16_t nvram_addr_t

Data type for NVRAM memory addresses.

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.

References nvm_user_sig_read_buffer(), and nvm_wait_until_ready().

Referenced by ak8975_calibrate(), ak8975_init(), hmc5883l_calibrate(), hmc5883l_init(), sfh7770_calibrate(), and sfh7770_init().

void nvram_write ( nvram_addr_t  dst,
const void *  src,
size_t  count 
)

Atmel platform non-volatile memory spaces.

Write a buffer to non-volatile RAM

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.

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 nvm_user_sig_write_buffer(), and nvm_wait_until_ready().

Referenced by ak8975_calibrate(), hmc5883l_calibrate(), sfh7770_calibrate(), and sfh7770_set_threshold().