55 float beta,
float r25_ohm,
ntc_filter_t filter, uint32_t times)
312 float weight[] = {1.0, 2.0f, 3.0f, 4.0f, 5.0f};
336 weight[0], weight[1], weight[2], weight[3], weight[4]);
392 for (i = 0; i < times; i++)
395 float degrees_celsius;
437 double a,
double b,
double c,
ntc_filter_t filter, uint32_t times)
685 float weight[] = {1.0, 2.0f, 3.0f, 4.0f, 5.0f};
709 weight[0], weight[1], weight[2], weight[3], weight[4]);
765 for (i = 0; i < times; i++)
768 float degrees_celsius;
1056 float weight[] = {1.0, 2.0f, 3.0f, 4.0f, 5.0f};
1080 weight[0], weight[1], weight[2], weight[3], weight[4]);
1136 for (i = 0; i < times; i++)
1139 float degrees_celsius;
driver ntc read test header file
uint8_t ntc_read_temperature(ntc_handle_t *handle, float *ohm, float *degrees_celsius)
read temperature
uint8_t ntc_set_algorithm_steinhart_hart(ntc_handle_t *handle, double a, double b, double c)
set algorithm steinhart hart
uint8_t ntc_set_circuit(ntc_handle_t *handle, ntc_circuit_t circuit)
set circuit
uint8_t ntc_load_algorithm_lookup_table(ntc_handle_t *handle, const ntc_table_t *table, uint16_t table_len)
load algorithm lookup table
uint8_t ntc_set_algorithm(ntc_handle_t *handle, ntc_algorithm_t algorithm)
set algorithm
ntc_filter_t
ntc filter enumeration definition
uint8_t ntc_info(ntc_info_t *info)
get chip's information
uint8_t ntc_set_algorithm_beta_formula_r25_ohm(ntc_handle_t *handle, float r25_ohm)
set algorithm beta formula r25 ohm
uint8_t ntc_init(ntc_handle_t *handle)
initialize the chip
ntc_circuit_t
ntc circuit enumeration definition
struct ntc_info_s ntc_info_t
ntc information structure definition
uint8_t ntc_set_algorithm_beta_formula_beta_value(ntc_handle_t *handle, float beta)
set algorithm beta formula beta value
struct ntc_handle_s ntc_handle_t
ntc handle structure definition
uint8_t ntc_deinit(ntc_handle_t *handle)
close the chip
struct ntc_table_s ntc_table_t
ntc table structure definition
uint8_t ntc_set_circuit_fixed_resistor(ntc_handle_t *handle, float r_fixed_ohm)
set circuit fixed resistor
@ NTC_FILTER_ANTI_SPIKE_AVERAGE
@ NTC_FILTER_FIRST_ORDER_LAG
@ NTC_FILTER_MOVING_AVERAGE
@ NTC_FILTER_WEIGHTED_MOVING_AVERAGE
@ NTC_ALGORITHM_LOOKUP_TABLE
@ NTC_ALGORITHM_BETA_FORMULA
@ NTC_ALGORITHM_STEINHART_HART
@ NTC_CIRCUIT_VCC_NTC_R_GND
uint8_t ntc_set_filter_first_order_lag(ntc_handle_t *handle, float alpha)
set filter first order lag
uint8_t ntc_set_filter_moving_average_length(ntc_handle_t *handle, uint16_t length)
set filter moving average length
uint8_t ntc_set_filter_limiting(ntc_handle_t *handle, float degrees_celsius)
set filter limiting
uint8_t ntc_set_filter_median_length(ntc_handle_t *handle, uint16_t length)
set filter median length
uint8_t ntc_set_filter_anti_spike_average_length(ntc_handle_t *handle, uint16_t length)
set filter anti spike average length
uint8_t ntc_set_filter(ntc_handle_t *handle, ntc_filter_t filter)
set filter
uint8_t ntc_set_filter_kalman(ntc_handle_t *handle, float q_process_noise_covariance, float r_measurement_noise_covariance, float p_estimation_error_covariance, float x_estimated_value)
set filter kalman
uint8_t ntc_set_filter_weighted_moving_average_length(ntc_handle_t *handle, float *weight, uint16_t length)
set filter weighted moving average length
uint8_t ntc_interface_adc_init(uint32_t *vcc_counter)
interface adc init
uint8_t ntc_interface_adc_deinit(void)
interface adc deinit
uint8_t ntc_interface_adc_read(uint32_t *counter, uint16_t len)
interface adc read
void ntc_interface_debug_print(const char *const fmt,...)
interface print format data
void ntc_interface_delay_ms(uint32_t ms)
interface delay ms
#define DRIVER_NTC_LINK_ADC_DEINIT(HANDLE, FUC)
link adc_deinit function
#define DRIVER_NTC_LINK_ADC_INIT(HANDLE, FUC)
link adc_init function
#define DRIVER_NTC_LINK_DELAY_MS(HANDLE, FUC)
link delay_ms function
#define DRIVER_NTC_LINK_INIT(HANDLE, STRUCTURE)
initialize ntc_handle_t structure
#define DRIVER_NTC_LINK_ADC_READ(HANDLE, FUC)
link adc_read function
#define DRIVER_NTC_LINK_DEBUG_PRINT(HANDLE, FUC)
link debug_print function
uint8_t ntc_read_lookup_table_test(ntc_circuit_t circuit, float r_fixed_ohm, const ntc_table_t *table, uint16_t table_len, ntc_filter_t filter, uint32_t times)
read lookup table test
uint8_t ntc_read_beta_formula_test(ntc_circuit_t circuit, float r_fixed_ohm, float beta, float r25_ohm, ntc_filter_t filter, uint32_t times)
read beta formula test
uint8_t ntc_read_steinhart_hart_test(ntc_circuit_t circuit, float r_fixed_ohm, double a, double b, double c, ntc_filter_t filter, uint32_t times)
read steinhart hart test
float supply_voltage_max_v
char manufacturer_name[32]
float supply_voltage_min_v