foxBMS - Unit Tests
1.3.0
The foxBMS Unit Tests API Documentation
|
Headers for the configuration for the insulation monitoring. More...
Go to the source code of this file.
Headers for the configuration for the insulation monitoring.
SPDX-License-Identifier: BSD-3-Clause
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 THE COPYRIGHT HOLDERS AND CONTRIBUTORS "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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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.
We kindly request you to use one or more of the following phrases to refer to foxBMS in your hardware, software, documentation or advertising materials:
Definition in file bender_ir155_cfg.h.
#define IR155_DIGITAL_STATUS_INPUT_PIN (27u) |
Pin that the input status pin (IM_OK) is connected to.
Definition at line 152 of file bender_ir155_cfg.h.
#define IR155_DIGITAL_STATUS_INPUT_PORT (hetREG1) |
Register that the input status pin (OHKS) is connected to.
Definition at line 149 of file bender_ir155_cfg.h.
#define IR155_GROUND_ERROR_FREQUENCY_Hz (50.0f) |
50 Hz -> Connection fault earth. Fault detected on the earth connection (Kl. 31), PWM 47.5...52.5 %
Definition at line 115 of file bender_ir155_cfg.h.
#define IR155_GROUND_ERROR_LOWER_FREQUENCY_Hz (IR155_GROUND_ERROR_FREQUENCY_Hz - IR155_MEASUREMENT_INTERVAL_RANGE_Hz) |
Definition at line 140 of file bender_ir155_cfg.h.
#define IR155_GROUND_ERROR_UPPER_FREQUENCY_Hz (IR155_GROUND_ERROR_FREQUENCY_Hz + IR155_MEASUREMENT_INTERVAL_RANGE_Hz) |
Definition at line 139 of file bender_ir155_cfg.h.
#define IR155_IMD_DEVICE_ERROR_FREQUENCY_Hz (40.0f) |
40 Hz -> Device error
Definition at line 111 of file bender_ir155_cfg.h.
#define IR155_IMD_DEVICE_ERROR_LOWER_FREQUENCY_Hz (IR155_IMD_DEVICE_ERROR_FREQUENCY_Hz - IR155_MEASUREMENT_INTERVAL_RANGE_Hz) |
Definition at line 136 of file bender_ir155_cfg.h.
#define IR155_IMD_DEVICE_ERROR_UPPER_FREQUENCY_Hz (IR155_IMD_DEVICE_ERROR_FREQUENCY_Hz + IR155_MEASUREMENT_INTERVAL_RANGE_Hz) |
Definition at line 134 of file bender_ir155_cfg.h.
#define IR155_MEASUREMENT_INTERVAL_RANGE_Hz (1.0f) |
The exact frequency of the pwm signal cannot be measured due to inaccuracies. Thus, a interval is used to detect any deviations. The interval is for example selected as 50 Hz +/- IR155_MEASUREMENT_INTERVAL_RANGE_Hz
Definition at line 120 of file bender_ir155_cfg.h.
#define IR155_MINIMUM_FREQUENCY_Hz (5.0f) /* Define a minimum frequency as 0 Hz can not be measured by PWM module */ |
0 Hz -> Hi > short-circuit to Ub + (Kl. 15); Low > IMD off or short-circuit to Kl. 31
Definition at line 92 of file bender_ir155_cfg.h.
#define IR155_NORMAL_CONDITION_FREQUENCY_Hz (10.0f) |
10 Hz -> Normal condition. Insulation measurement DCP starts two seconds after power on; First successful insulation measurement at ? 17.5 s. PWM active 5...95 %
Definition at line 97 of file bender_ir155_cfg.h.
#define IR155_NORMAL_CONDITION_LOWER_FREQUENCY_Hz (IR155_NORMAL_CONDITION_FREQUENCY_Hz - IR155_MEASUREMENT_INTERVAL_RANGE_Hz) |
Definition at line 125 of file bender_ir155_cfg.h.
#define IR155_NORMAL_CONDITION_UPPER_FREQUENCY_Hz (IR155_NORMAL_CONDITION_FREQUENCY_Hz + IR155_MEASUREMENT_INTERVAL_RANGE_Hz) |
Definition at line 123 of file bender_ir155_cfg.h.
#define IR155_PWM_SIGNAL_PIN (27u) /* TODO: this is correct? */ |
Pin that the input PWM signal pin (IM_PWM) is connected to.
Definition at line 158 of file bender_ir155_cfg.h.
#define IR155_PWM_SIGNAL_PORT (hetREG2) /* TODO: this is correct? */ |
Register that the input PWM signal (IM_PWM) is connected to.
Definition at line 155 of file bender_ir155_cfg.h.
#define IR155_SPEEDSTART_FREQUENCY_Hz (30.0f) |
30 Hz -> Speed start measurement. Insulation measurement (only good/bad evaluation), starts directly after power on ? 2 s; PWM 5...10 % (good) and 90...95 % (bad)
Definition at line 108 of file bender_ir155_cfg.h.
#define IR155_SPEEDSTART_LOWER_FREQUENCY_Hz (IR155_SPEEDSTART_FREQUENCY_Hz - IR155_MEASUREMENT_INTERVAL_RANGE_Hz) |
Definition at line 132 of file bender_ir155_cfg.h.
#define IR155_SPEEDSTART_UPPER_FREQUENCY_Hz (IR155_SPEEDSTART_FREQUENCY_Hz + IR155_MEASUREMENT_INTERVAL_RANGE_Hz) |
Definition at line 131 of file bender_ir155_cfg.h.
#define IR155_STARTUP_TIME_ms (2200u) |
Time after startup, until the first valid measurement result is available
Definition at line 86 of file bender_ir155_cfg.h.
#define IR155_SUPPLY_ENABLE_PIN (25u) |
Pin that the supply enable pin is connected to.
Definition at line 146 of file bender_ir155_cfg.h.
#define IR155_SUPPLY_ENABLE_PORT (hetREG1) |
Register that the supply enable pin is connected to.
Definition at line 143 of file bender_ir155_cfg.h.
#define IR155_UNDERVOLTAGE_FREQUENCY_Hz (20.0f) |
20 Hz -> undervoltage condition. Insulation measurement DCP (continuous measurement); starts two seconds after power on; PWM active 5...95 %; First successful insulation measurement at ? 17.5 s, Undervoltage detection 0...500 V (Bender configurable)
Definition at line 103 of file bender_ir155_cfg.h.
#define IR155_UNDERVOLTAGE_LOWER_FREQUENCY_Hz (IR155_UNDERVOLTAGE_FREQUENCY_Hz - IR155_MEASUREMENT_INTERVAL_RANGE_Hz) |
Definition at line 129 of file bender_ir155_cfg.h.
#define IR155_UNDERVOLTAGE_UPPER_FREQUENCY_Hz (IR155_UNDERVOLTAGE_FREQUENCY_Hz + IR155_MEASUREMENT_INTERVAL_RANGE_Hz) |
Definition at line 128 of file bender_ir155_cfg.h.
#define IR155_WAIT_TIME_AFTER_GROUND_ERROR_ms (25000u) |
During this time, the results of Bender Isometer aren't to be trusted wait time in [ms] <= 65535; IR155_WAIT_TIME_AFTER_GNDERROR
Definition at line 83 of file bender_ir155_cfg.h.