![]() |
no-OS
|
POWRMS data processing header for POWRMS project. More...
Classes | |
| struct | powrms_variables |
| struct | adc_data |
Macros | |
| #define | VARIABLE_NUMBER 3 |
| #define | NUMERIC_LENGTH 6 |
| #define | INTEGER_NUMERIC_LENGTH 4 |
| #define | FLOATING_POINT_LENGTH 2 |
| #define | VARIABLE_NAMES {"Fq:", "Zi:", "Zo:"} |
| #define | PRECISION_SCALE_FACTOR 1000 |
| #define | PRECISION_RESOLUTION (1.0 / PRECISION_SCALE_FACTOR) |
| #define | FREQUENCY_RANGE_NR 11 |
| #define | PRECISION_ARRAY_SIZE 308 |
| #define | PRECISION_POINTS_FREQ 14 |
| #define | PRECISION_POINTS_FREQ_ALL (2 * PRECISION_POINTS_FREQ) |
| #define | TEMPERATURE_CORRECTION_COEFFS 3 |
Enumerations | |
| enum | variable_names { SIGNAL_FREQUENCY , INPUT_IMPEDANCE , OUTPUT_IMPEDANCE , NR_OF_INPUT_VARIABLES } |
Functions | |
| void | update_values_of_digit (struct powrms_variables *input_var, uint8_t increment_pos) |
| Update the value of an input variable based on digit increment. | |
| void | update_values_from_new_value (struct powrms_variables *input_var, double new_value) |
| Update the digits array based on a new value. | |
| void | sync_all_digits_from_values (void) |
| Synchronize all input variables' digits arrays with their current values. | |
| int | calculate_power () |
POWRMS data processing header for POWRMS project.
Copyright 2025(c) Analog Devices, Inc.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
| #define FLOATING_POINT_LENGTH 2 |
| #define FREQUENCY_RANGE_NR 11 |
| #define INTEGER_NUMERIC_LENGTH 4 |
| #define NUMERIC_LENGTH 6 |
| #define PRECISION_ARRAY_SIZE 308 |
| #define PRECISION_POINTS_FREQ 14 |
| #define PRECISION_POINTS_FREQ_ALL (2 * PRECISION_POINTS_FREQ) |
| #define PRECISION_RESOLUTION (1.0 / PRECISION_SCALE_FACTOR) |
| #define PRECISION_SCALE_FACTOR 1000 |
| #define TEMPERATURE_CORRECTION_COEFFS 3 |
| #define VARIABLE_NAMES {"Fq:", "Zi:", "Zo:"} |
| #define VARIABLE_NUMBER 3 |
| enum variable_names |
| int calculate_power | ( | ) |
| void sync_all_digits_from_values | ( | void | ) |
Synchronize all input variables' digits arrays with their current values.
This function updates the digits array for all input variables based on their current value field. Useful after loading values from EEPROM or other external sources that modify the value but not the digits.
| void update_values_from_new_value | ( | struct powrms_variables * | input_var, |
| double | new_value ) |
Update the digits array based on a new value.
| input_var | Pointer to the variable structure to update |
| new_value | The new value to set (will be clamped to valid range) |
| void update_values_of_digit | ( | struct powrms_variables * | input_var, |
| uint8_t | increment_pos ) |
Update the value of an input variable based on digit increment.
| input_var | Pointer to the variable structure to update |
| increment_pos | Position of the digit to increment (0-based index) |
Update the value of an input variable based on digit increment.
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |