AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/ports/xplained/ASF/xmega/drivers/nvm/nvm.c
void nvm_eeprom_load_page_to_buffer(const uint8_t * values)
{
    // Wait until NVM is ready
    nvm_wait_until_ready();

    // Load multiple bytes into page buffer
    uint8_t i;
    for (i = 0; i < EEPROM_PAGE_SIZE; ++i) {
        nvm_eeprom_load_byte_to_buffer(i, *values);
        ++values;
    }
}
/**
 * \brief Load entire page into temporary EEPROM page buffer.
 *
 * This function loads an entire EEPROM page from an SRAM buffer to
 * the EEPROM page buffers. If memory mapped EEPROM is enabled, this
 * function will not work. Make sure that the buffer is flushed before
 * starting to load bytes.
 *
 * \note Only the lower part of the address is used to address the buffer.
 *       Therefore, no address parameter is needed. In the end, the data
 *       is written to the EEPROM page given by the address parameter to the
 *       EEPROM write page operation.
 *
 * \param  values   Pointer to SRAM buffer containing an entire page.
 */
\brief Load entire page into temporary EEPROM page buffer.
This function loads an entire EEPROM page from an SRAM buffer to
the EEPROM page buffers. If memory mapped EEPROM is enabled, this
function will not work. Make sure that the buffer is flushed before
starting to load bytes.

\note Only the lower part of the address is used to address the buffer.
Therefore, no address parameter is needed. In the end, the data
is written to the EEPROM page given by the address parameter to the
EEPROM write page operation.

\param  values   Pointer to SRAM buffer containing an entire page.
\ brief Load entire page into temporary EEPROM page buffer . This function loads an entire EEPROM page from an SRAM buffer to the EEPROM page buffers . If memory mapped EEPROM is enabled this function will not work . Make sure that the buffer is flushed before starting to load bytes . \ note Only the lower part of the address is used to address the buffer . Therefore no address parameter is needed . In the end the data is written to the EEPROM page given by the address parameter to the EEPROM write page operation . \ param values Pointer to SRAM buffer containing an entire page .
void nvm_eeprom_load_page_to_buffer(const uint8_t * values)
{
    nvm_wait_until_ready();
    uint8_t i;
    for (i = 0; i < EEPROM_PAGE_SIZE; ++i) {
        nvm_eeprom_load_byte_to_buffer(i, *values);
        ++values;
    }
}
void nvm_eeprom_load_page_to_buffer ( const uint8_t * values ) { nvm_wait_until_ready ( ) ; uint8_t i ; for ( i = 0 ; i < EEPROM_PAGE_SIZE ; ++ i ) { nvm_eeprom_load_byte_to_buffer ( i , * values ) ; ++ values ; } }
\brief Load entire page into temporary EEPROM page buffer.
\ brief Load entire page into temporary EEPROM page buffer .
// Wait until NVM is ready // Load multiple bytes into page buffer