![]() |
LibDriver NTC
|
driver ntc source file More...
Go to the source code of this file.
Macros | |
| #define | CHIP_NAME "General NTC" |
| chip information definition | |
| #define | MANUFACTURER_NAME "General" |
| #define | SUPPLY_VOLTAGE_MIN 1.8f |
| #define | SUPPLY_VOLTAGE_MAX 5.5f |
| #define | MAX_CURRENT 1.0f |
| #define | TEMPERATURE_MIN -50.0f |
| #define | TEMPERATURE_MAX 250.0f |
| #define | DRIVER_VERSION 1000 |
Functions | |
| uint8_t | ntc_set_circuit (ntc_handle_t *handle, ntc_circuit_t circuit) |
| set circuit | |
| uint8_t | ntc_get_circuit (ntc_handle_t *handle, ntc_circuit_t *circuit) |
| get circuit | |
| uint8_t | ntc_set_circuit_fixed_resistor (ntc_handle_t *handle, float r_fixed_ohm) |
| set circuit fixed resistor | |
| uint8_t | ntc_get_circuit_fixed_resistor (ntc_handle_t *handle, float *r_fixed_ohm) |
| get circuit fixed resistor | |
| uint8_t | ntc_set_algorithm (ntc_handle_t *handle, ntc_algorithm_t algorithm) |
| set algorithm | |
| uint8_t | ntc_get_algorithm (ntc_handle_t *handle, ntc_algorithm_t *algorithm) |
| get algorithm | |
| uint8_t | ntc_set_algorithm_beta_formula_beta_value (ntc_handle_t *handle, float beta) |
| set algorithm beta formula beta value | |
| uint8_t | ntc_get_algorithm_beta_formula_beta_value (ntc_handle_t *handle, float *beta) |
| get algorithm beta formula beta value | |
| 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_get_algorithm_beta_formula_r25_ohm (ntc_handle_t *handle, float *r25_ohm) |
| get algorithm beta formula r25 ohm | |
| uint8_t | ntc_set_algorithm_steinhart_hart (ntc_handle_t *handle, double a, double b, double c) |
| set algorithm steinhart hart | |
| uint8_t | ntc_get_algorithm_steinhart_hart (ntc_handle_t *handle, double *a, double *b, double *c) |
| get algorithm steinhart hart | |
| 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_filter (ntc_handle_t *handle, ntc_filter_t filter) |
| set filter | |
| uint8_t | ntc_get_filter (ntc_handle_t *handle, ntc_filter_t *filter) |
| get filter | |
| uint8_t | ntc_set_filter_first_order_lag (ntc_handle_t *handle, float alpha) |
| set filter first order lag | |
| 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_moving_average_length (ntc_handle_t *handle, uint16_t length) |
| set filter moving average length | |
| 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_set_filter_limiting (ntc_handle_t *handle, float degrees_celsius) |
| set filter limiting | |
| 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_reset_filter (ntc_handle_t *handle) |
| reset the filter | |
| uint8_t | ntc_init (ntc_handle_t *handle) |
| initialize the chip | |
| uint8_t | ntc_deinit (ntc_handle_t *handle) |
| close the chip | |
| uint8_t | ntc_read_temperature (ntc_handle_t *handle, float *ohm, float *degrees_celsius) |
| read temperature | |
| uint8_t | ntc_calculate_temperature (ntc_handle_t *handle, float ohm, float *degrees_celsius) |
| calculate temperature | |
| uint8_t | ntc_calculate_temperature_with_filter (ntc_handle_t *handle, float *ohm, uint16_t len, float *degrees_celsius) |
| calculate temperature with filter | |
| uint8_t | ntc_info (ntc_info_t *info) |
| get chip's information | |
driver ntc source file
Copyright (c) 2015 - present LibDriver All rights reserved
The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
| Date | Version | Author | Description |
|---|---|---|---|
| 2026/05/31 | 1.0 | Shifeng Li | first upload |
Definition in file driver_ntc.c.
| #define CHIP_NAME "General NTC" |
| #define DRIVER_VERSION 1000 |
driver version
Definition at line 50 of file driver_ntc.c.
| #define MANUFACTURER_NAME "General" |
manufacturer name
Definition at line 44 of file driver_ntc.c.
| #define MAX_CURRENT 1.0f |
chip max current
Definition at line 47 of file driver_ntc.c.
| #define SUPPLY_VOLTAGE_MAX 5.5f |
chip max supply voltage
Definition at line 46 of file driver_ntc.c.
| #define SUPPLY_VOLTAGE_MIN 1.8f |
chip min supply voltage
Definition at line 45 of file driver_ntc.c.
| #define TEMPERATURE_MAX 250.0f |
chip max operating temperature
Definition at line 49 of file driver_ntc.c.
| #define TEMPERATURE_MIN -50.0f |
chip min operating temperature
Definition at line 48 of file driver_ntc.c.