Microchip® Advanced Software Framework

eeprom_access.h File Reference
#include "touch_api.h"
#include <avr/io.h>

Macros

#define EEPROM_LIB_CONFIG_START_ADDRESS   (EEPROM_START_ADDRESS + 2u)
 
#define EEPROM_START_ADDRESS   0x0000u /* User Eeprom address */
 

Functions

uint16_t read_info_from_eeprom (void)
 read_info_from_eeprom is used to Read Info block from EEPROM More...
 
void read_settings_from_eeprom (void)
 read_settings_from_eeprom is used to Will read settings from EEPROM More...
 
void write_global_settings_to_eeprom (void)
 write_global_settings_to_eeprom is used to Save global parameter settings to EEPROM More...
 
void write_info_to_eeprom (uint16_t lib_version)
 write_info_to_eeprom is used to Save information from library and sign in the EEPROM More...
 
void write_sensor_settings_to_eeprom (void)
 write_sensor_settings_to_eeprom is used to Save sensor parameter settings to EEPROM More...
 

#define EEPROM_LIB_CONFIG_START_ADDRESS   (EEPROM_START_ADDRESS + 2u)
#define EEPROM_START_ADDRESS   0x0000u /* User Eeprom address */

uint16_t read_info_from_eeprom ( void  )

read_info_from_eeprom is used to Read Info block from EEPROM

read_info_from_eeprom is used to Read Info block from EEPROM

This function is used to read Info block from EEPROM

Parameters
\noteReturns library version currently on chip

References EEPROM_START_ADDRESS, and nvm_eeprom_read_byte().

Referenced by QDebug_Init().

void read_settings_from_eeprom ( void  )

read_settings_from_eeprom is used to Will read settings from EEPROM

read_settings_from_eeprom is used to Will read settings from EEPROM

This function is used to read settings from EEPROM

Parameters
\noteData is stored in 'eeprom_gv_block[]' in the format shown above

References EEPROM_LIB_CONFIG_START_ADDRESS, num_sensors, nvm_eeprom_read_byte(), qt_config_data, tag_qt_touch_lib_config_data_t::qt_di, tag_qt_touch_lib_config_data_t::qt_drift_hold_time, tag_qt_touch_lib_config_data_t::qt_max_on_duration, tag_qt_touch_lib_config_data_t::qt_neg_drift_rate, tag_qt_touch_lib_config_data_t::qt_pos_drift_rate, tag_qt_touch_lib_config_data_t::qt_pos_recal_delay, and tag_qt_touch_lib_config_data_t::qt_recal_threshold.

Referenced by QDebug_Init().

void write_global_settings_to_eeprom ( void  )

write_global_settings_to_eeprom is used to Save global parameter settings to EEPROM

write_global_settings_to_eeprom is used to Save global parameter settings to EEPROM

This function is used to Save global parameter settings to EEPROM

Parameters
\note

References EEPROM_LIB_CONFIG_START_ADDRESS, nvm_eeprom_write_byte(), qt_config_data, tag_qt_touch_lib_config_data_t::qt_di, tag_qt_touch_lib_config_data_t::qt_drift_hold_time, tag_qt_touch_lib_config_data_t::qt_max_on_duration, tag_qt_touch_lib_config_data_t::qt_neg_drift_rate, tag_qt_touch_lib_config_data_t::qt_pos_drift_rate, tag_qt_touch_lib_config_data_t::qt_pos_recal_delay, and tag_qt_touch_lib_config_data_t::qt_recal_threshold.

Referenced by QDebug_Init(), and Set_Global_Config().

void write_info_to_eeprom ( uint16_t  lib_version)

write_info_to_eeprom is used to Save information from library and sign in the EEPROM

write_info_to_eeprom is used to Save information from library and sign in the EEPROM

This function is used to Save information from library and sign in the EEPROM

Parameters
\noteWill write the current library version to EEPROM

References EEPROM_START_ADDRESS, and nvm_eeprom_write_byte().

Referenced by QDebug_Init().

void write_sensor_settings_to_eeprom ( void  )

write_sensor_settings_to_eeprom is used to Save sensor parameter settings to EEPROM

write_sensor_settings_to_eeprom is used to Save sensor parameter settings to EEPROM

This function is used to Save sensor parameter settings to EEPROM

Parameters
\note

References EEPROM_LIB_CONFIG_START_ADDRESS, num_sensors, and nvm_eeprom_write_byte().

Referenced by QDebug_Init(), and Set_Channel_Config().