AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/ports/xplained/ASF/xmega/drivers/nvm/nvm.c
void nvm_eeprom_fill_buffer_with_value(uint8_t value)
{
    nvm_eeprom_flush_buffer();
    // 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, value);
    }
}
/**
 * \brief Fill temporary EEPROM page buffer with value.
 *
 * This fills the the EEPROM page buffers with a given value.
 * If memory mapped EEPROM is enabled, this function will not work.
 *
 * \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  value Value to copy to the page buffer.
 */
\brief Fill temporary EEPROM page buffer with value.
This fills the the EEPROM page buffers with a given value.
If memory mapped EEPROM is enabled, this function will not work.

\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  value Value to copy to the page buffer.
\ brief Fill temporary EEPROM page buffer with value . This fills the the EEPROM page buffers with a given value . If memory mapped EEPROM is enabled this function will not work . \ 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 value Value to copy to the page buffer .
void nvm_eeprom_fill_buffer_with_value(uint8_t value)
{
    nvm_eeprom_flush_buffer();
    nvm_wait_until_ready();
    uint8_t i;
    for (i = 0; i < EEPROM_PAGE_SIZE; ++i) {
        nvm_eeprom_load_byte_to_buffer(i, value);
    }
}
void nvm_eeprom_fill_buffer_with_value ( uint8_t value ) { nvm_eeprom_flush_buffer ( ) ; nvm_wait_until_ready ( ) ; uint8_t i ; for ( i = 0 ; i < EEPROM_PAGE_SIZE ; ++ i ) { nvm_eeprom_load_byte_to_buffer ( i , value ) ; } }
\brief Fill temporary EEPROM page buffer with value.
\ brief Fill temporary EEPROM page buffer with value .
// Wait until NVM is ready // Load multiple bytes into page buffer