AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/ports/xplained/ASF/xmega/drivers/nvm/nvm.c
void nvm_eeprom_read_buffer(eeprom_addr_t address,
    void *buf,
    uint16_t len)
{
    nvm_wait_until_ready();
    eeprom_enable_mapping();
    memcpy(buf, (void *) (address + MAPPED_EEPROM_START), len);
    eeprom_disable_mapping();
}
/**
 * \brief Read buffer within the eeprom
 *
 * \param address   the address to where to read
 * \param buf       pointer to the data
 * \param len       the number of bytes to read
 */
\brief Read buffer within the eeprom
\param address   the address to where to read
\param buf       pointer to the data
\param len       the number of bytes to read
\ brief Read buffer within the eeprom \ param address the address to where to read \ param buf pointer to the data \ param len the number of bytes to read
void nvm_eeprom_read_buffer(eeprom_addr_t address,
    void *buf,
    uint16_t len)
{
    nvm_wait_until_ready();
    eeprom_enable_mapping();
    memcpy(buf, (void *) (address + MAPPED_EEPROM_START), len);
    eeprom_disable_mapping();
}
void nvm_eeprom_read_buffer ( eeprom_addr_t address , void * buf , uint16_t len ) { nvm_wait_until_ready ( ) ; eeprom_enable_mapping ( ) ; memcpy ( buf , ( void * ) ( address + MAPPED_EEPROM_START ) , len ) ; eeprom_disable_mapping ( ) ; }
\brief Read buffer within the eeprom
 \param address   the address to where to read
 \param buf       pointer to the data
 \param len       the number of bytes to read
\ brief Read buffer within the eeprom \ param address the address to where to read \ param buf pointer to the data \ param len the number of bytes to read