56 #ifndef FOXBMS__BENDER_IR155_CFG_H_
57 #define FOXBMS__BENDER_IR155_CFG_H_
83 #define IR155_WAIT_TIME_AFTER_GROUND_ERROR_ms (25000u)
86 #define IR155_STARTUP_TIME_ms (2200u)
92 #define IR155_MINIMUM_FREQUENCY_Hz (5.0f)
97 #define IR155_NORMAL_CONDITION_FREQUENCY_Hz (10.0f)
103 #define IR155_UNDERVOLTAGE_FREQUENCY_Hz (20.0f)
108 #define IR155_SPEEDSTART_FREQUENCY_Hz (30.0f)
111 #define IR155_IMD_DEVICE_ERROR_FREQUENCY_Hz (40.0f)
115 #define IR155_GROUND_ERROR_FREQUENCY_Hz (50.0f)
120 #define IR155_MEASUREMENT_INTERVAL_RANGE_Hz (1.0f)
123 #define IR155_NORMAL_CONDITION_UPPER_FREQUENCY_Hz \
124 (IR155_NORMAL_CONDITION_FREQUENCY_Hz + IR155_MEASUREMENT_INTERVAL_RANGE_Hz)
125 #define IR155_NORMAL_CONDITION_LOWER_FREQUENCY_Hz \
126 (IR155_NORMAL_CONDITION_FREQUENCY_Hz - IR155_MEASUREMENT_INTERVAL_RANGE_Hz)
128 #define IR155_UNDERVOLTAGE_UPPER_FREQUENCY_Hz (IR155_UNDERVOLTAGE_FREQUENCY_Hz + IR155_MEASUREMENT_INTERVAL_RANGE_Hz)
129 #define IR155_UNDERVOLTAGE_LOWER_FREQUENCY_Hz (IR155_UNDERVOLTAGE_FREQUENCY_Hz - IR155_MEASUREMENT_INTERVAL_RANGE_Hz)
131 #define IR155_SPEEDSTART_UPPER_FREQUENCY_Hz (IR155_SPEEDSTART_FREQUENCY_Hz + IR155_MEASUREMENT_INTERVAL_RANGE_Hz)
132 #define IR155_SPEEDSTART_LOWER_FREQUENCY_Hz (IR155_SPEEDSTART_FREQUENCY_Hz - IR155_MEASUREMENT_INTERVAL_RANGE_Hz)
134 #define IR155_IMD_DEVICE_ERROR_UPPER_FREQUENCY_Hz \
135 (IR155_IMD_DEVICE_ERROR_FREQUENCY_Hz + IR155_MEASUREMENT_INTERVAL_RANGE_Hz)
136 #define IR155_IMD_DEVICE_ERROR_LOWER_FREQUENCY_Hz \
137 (IR155_IMD_DEVICE_ERROR_FREQUENCY_Hz - IR155_MEASUREMENT_INTERVAL_RANGE_Hz)
139 #define IR155_GROUND_ERROR_UPPER_FREQUENCY_Hz (IR155_GROUND_ERROR_FREQUENCY_Hz + IR155_MEASUREMENT_INTERVAL_RANGE_Hz)
140 #define IR155_GROUND_ERROR_LOWER_FREQUENCY_Hz (IR155_GROUND_ERROR_FREQUENCY_Hz - IR155_MEASUREMENT_INTERVAL_RANGE_Hz)
143 #define IR155_SUPPLY_ENABLE_PORT (hetREG1)
146 #define IR155_SUPPLY_ENABLE_PIN (25u)
149 #define IR155_DIGITAL_STATUS_INPUT_PORT (hetREG1)
152 #define IR155_DIGITAL_STATUS_INPUT_PIN (27u)
155 #define IR155_PWM_SIGNAL_PORT (hetREG2)
158 #define IR155_PWM_SIGNAL_PIN (27u)
General macros and definitions for the whole platform.
API header for the insulation monitoring device.