#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) |
void | read_settings_from_eeprom (void) |
void | write_global_settings_to_eeprom (void) |
void | write_info_to_eeprom (uint16_t lib_version) |
void | write_sensor_settings_to_eeprom (void) |
#define EEPROM_LIB_CONFIG_START_ADDRESS (EEPROM_START_ADDRESS + 2u) |
#define EEPROM_START_ADDRESS 0x0000u /* User Eeprom address */ |
Referenced by read_info_from_eeprom(), and write_info_to_eeprom().
uint16_t read_info_from_eeprom | ( | void | ) |
References eeprom_read(), and EEPROM_START_ADDRESS.
Referenced by QDebug_Init().
void read_settings_from_eeprom | ( | void | ) |
References EEPROM_LIB_CONFIG_START_ADDRESS, eeprom_read(), num_sensors, qt_burst_lengths, 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, QT_NUM_CHANNELS, tag_qt_touch_lib_config_data_t::qt_pos_drift_rate, tag_qt_touch_lib_config_data_t::qt_pos_recal_delay, tag_qt_touch_lib_config_data_t::qt_recal_threshold, tag_sensor_t::threshold, and tag_sensor_t::type_aks_pos_hyst.
Referenced by QDebug_Init().
void write_global_settings_to_eeprom | ( | void | ) |
References EEPROM_LIB_CONFIG_START_ADDRESS, eeprom_write(), 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 | ) |
References EEPROM_START_ADDRESS, and eeprom_write().
Referenced by QDebug_Init().
void write_sensor_settings_to_eeprom | ( | void | ) |
References EEPROM_LIB_CONFIG_START_ADDRESS, eeprom_write(), and num_sensors.
Referenced by QDebug_Init(), and Set_Channel_Config().