foxBMS  1.6.0
The foxBMS Battery Management System API Documentation
bender_iso165c_cfg.h File Reference

Headers for the configuration for the insulation monitoring. More...

#include "imd.h"
#include "can_cfg.h"
#include <stdint.h>
Include dependency graph for bender_iso165c_cfg.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define I165C_CAN_NODE   (CAN_NODE_1)
 
#define I165C_IS_165C_USED   (false)
 
#define I165C_SELF_TEST_LONG
 
#define I165C_WARNING_THRESHOLD_kOhm   IMD_WARNING_THRESHOLD_INSULATION_RESISTANCE_kOhm
 
#define I165C_ERROR_THRESHOLD_kOhm   IMD_ERROR_THRESHOLD_INSULATION_RESISTANCE_kOhm
 
#define I165C_MEASUREMENT_AVERAGING_FACTOR   (10u) /* Recommended value for EVs according to data sheet: 10 */
 
#define I165C_TRANSMISSION_ATTEMPTS   (3u)
 
#define I165C_IMD_INFO_RECEIVE_ATTEMPTS   (50u)
 
#define I165C_MAX_QUEUE_READS   (5u)
 
#define I165C_QUEUE_TIMEOUT_ms   ((TickType_t)0u)
 
#define I165C_DW1   (0u)
 
#define I165C_DW2   (1u)
 
#define I165C_DW3   (2u)
 
#define I165C_DB1   (3u)
 
#define I165C_DB2   (4u)
 
#define I165C_DB3   (5u)
 
#define I165C_DB4   (6u)
 
#define I165C_MESSAGETYPE_IMD_INFO   (CANRX_IMD_INFO_ID)
 
#define I165C_MESSAGETYPE_IMD_REQUEST   (CANTX_IMD_REQUEST_ID)
 
#define I165C_MESSAGETYPE_IMD_RESPONSE   (CANRX_IMD_RESPONSE_ID)
 
#define I165C_RX_MESSAGE_IDENTIFIER_TYPE   (CANRX_IMD_ID_TYPE)
 
#define I165C_TX_MESSAGE_IDENTIFIER_TYPE   (CANTX_IMD_ID_TYPE)
 
#define I165C_CMD_S_IMC_CTL_SELFTEST   (0x21u)
 
#define I165C_D_IMC_SELFTEST_SCR_CTL_REQUEST   (I165C_DW1)
 
#define I165C_D_IMC_SELFTEST_SCR_CTL_RESPONSE   (I165C_DW1)
 
#define I165C_SELFTEST_SCENARIO_NO_ACTION   (0u)
 
#define I165C_SELFTEST_SCENARIO_OVERALL   (1u)
 
#define I165C_SELFTEST_SCENARIO_PARAMETERCONFIG   (2u)
 
#define I165C_CMD_S_VIFC_CTL_IMC_RESET   (0xC8u)
 
#define I165C_CMD_S_VIFC_CTL_LOCK   (0xCAu)
 
#define I165C_D_VIFC_LOCK_MODE_CTL_REQUEST   (I165C_DW1)
 
#define I165C_D_VIFC_LOCK_MODE_CTL_RESPONSE   (I165C_DW1)
 
#define I165C_D_VIFC_LOCK_PWD_CTL_REQUEST   (I165C_DW2)
 
#define I165C_LOCKMODE_UNLOCKED   (0u)
 
#define I165C_LOCKMODE_LOCKED   (1u)
 
#define I165C_LOCKMODE_UNKNOWN   (100u)
 
#define I165C_UNLOCK_PASSWORD   (0u)
 
#define I165C_LOCK_PASSWORD   (0xFFFFu)
 
#define I165C_CMD_S_VIFC_CTL_MEASUREMENT   (0xCBu)
 
#define I165C_DW_VIFC_CTL_MEASUREMENT_REQUEST   (I165C_DW1)
 
#define I165C_DISABLE_MEASUREMENT   (0u)
 
#define I165C_ENABLE_MEASUREMENT   (1u)
 
#define I165C_MEASUREMENT_MODE_UNKNOWN   (100u)
 
#define I165C_CMD_S_IMC_SET_R_ISO_ERR_THR   (0x28u)
 
#define I165C_D_IMC_R_ISO_ERR_THR_SET_REQUEST   (I165C_DW1)
 
#define I165C_D_IMC_R_ISO_ERR_THR_SET_RESPONSE   (I165C_DW1)
 
#define I165C_CMD_S_IMC_SET_R_ISO_ERR_WRN   (0x29u)
 
#define I165C_D_IMC_R_ISO_ERR_WRN_SET_REQUEST   (I165C_DW1)
 
#define I165C_D_IMC_R_ISO_ERR_WRN_SET_RESPONSE   (I165C_DW1)
 
#define I165C_CMD_S_IMC_SET_MEAN_FACTOR   (0x2Bu)
 
#define I165C_D_IMC_MEAN_FACTOR_SET_REQUEST   (I165C_DW1)
 
#define I165C_D_IMC_MEAN_FACTOR_SET_RESPONSE   (I165C_DW1)
 
#define I165C_CMD_S_VIFC_SET_HV_RELAIS   (0xD2u)
 
#define I165C_D_VIFC_HV_RELAIS_SET_REQUEST   (I165C_DW1)
 
#define I165C_D_VIFC_HV_RELAIS_STATE_SET_REQUEST   (I165C_DW2)
 
#define I165C_D_VIFC_HV_RELAIS_NEGATIVE   (0u)
 
#define I165C_D_VIFC_HV_RELAIS_POSITIVE   (1u)
 
#define I165C_D_VIFC_HV_RELAIS_SET_RESPONSE   (I165C_DW1)
 
#define I165C_D_VIFC_HV_RELAIS_STATE_SET_RESPONSE   (I165C_DW2)
 
#define I165C_RELAY_STATE_OPEN   (0u)
 
#define I165C_RELAY_STATE_CLOSED   (1u)
 
#define I165C_CMD_S_VIFC_DUMMY   (0x00u)
 
#define I165C_CMD_S_IMC_GET_STATUS   (0x37u)
 
#define I165C_D_IMC_STATUS_GET_RESPONSE   (I165C_DW1)
 
#define I165C_INSULATION_FAULT_SHIFT   (0u)
 
#define I165C_CHASSIS_FAULT_SHIFT   (1u)
 
#define I165C_SYSTEM_FAILURE_SHIFT   (2u)
 
#define I165C_CALIBRATION_RUNNING_SHIFT   (3u)
 
#define I165C_SELFTEST_RUNNING_SHIFT   (4u)
 
#define I165C_INSULATION_WARNING_SHIFT   (5u)
 
#define I165C_D_IMC_STATUS_EXT_GET_RESPONSE   (I165C_DW2)
 
#define I165C_CALIBRATION_PARAMETER_SHIFT   (0u)
 
#define I165C_HARDWARE_FAILURE_SHIFT   (1u)
 
#define I165C_EEPROM_PARAMETER_SHIFT   (2u)
 
#define I165C_FLASH_PARAMETER_SHIFT   (3u)
 
#define I165C_RAM_PARAMETER_SHIFT   (4u)
 
#define I165C_STACK_OVERFLOW_SHIFT   (5u)
 
#define I165C_PARAMETER_VALUE_SHIFT   (7u)
 
#define I165C_TEST_PULSE_VOLTAGE_A_REF_SHIFT   (8u)
 
#define I165C_VOLTAGE_LEVEL_PLUS12V_SHIFT   (9u)
 
#define I165C_VOLTAGE_LEVEL_MINUS12V_SHIFT   (10u)
 
#define I165C_FUSE_BIT_VALID_INVALID_SHIFT   (11u)
 
#define I165C_HV1_VOLTAGE_SHIFT   (12u)
 
#define I165C_HV2_VOLTAGE_SHIFT   (13u)
 
#define I165C_MANUFACTURER_STRING_VALID_INVALID_SHIFT   (14u)
 
#define I165C_CMD_S_IMC_GET_R_ISO   (0x35u)
 
#define I165C_D_IMC_R_ISO_GET_RESPONSE   (I165C_DW1)
 
#define I165C_D_IMC_R_ISO_BIAS_GET_RESPONSE   (I165C_DB1)
 
#define I165C_BIAS_TO_HV_MINUS   (1u)
 
#define I165C_BIAS_TO_HV_PLUS   (2u)
 
#define I165C_D_IMC_R_ISO_CNT_GET_RESPONSE   (I165C_DB2)
 
#define I165C_CMD_S_IMC_GET_R_ISO_ERR_THR   (0x32u)
 
#define I165C_D_IMC_R_ISO_ERR_THR_GET_RESPONSE   (I165C_DW1)
 
#define I165C_CMD_S_IMC_GET_R_ISO_WRN_THR   (0x39u)
 
#define I165C_D_IMC_R_ISO_WRN_THR_GET_RESPONSE   (I165C_DW1)
 
#define I165C_CMD_S_IMC_GET_MEAN_FACTOR   (0x3Cu)
 
#define I165C_D_IMC_MEAN_FACTOR_GET_RESPONSE   (I165C_DW1)
 
#define I165C_CMD_S_IMC_GET_HV_1   (0x36u)
 
#define I165C_D_IMC_HV_1_GET_RESPONSE   (I165C_DW1)
 
#define I165C_CMD_S_IMC_GET_HV_2   (0x3Au)
 
#define I165C_D_IMC_HV_2_GET_RESPONSE   (I165C_DW1)
 
#define I165C_CMD_S_IMC_GET_VERSION   (0x33u)
 
#define I165C_D_IMC_VERSION_INDEX_GET_REQUEST   (I165C_DW1)
 
#define I165C_IMC_BOOTLOADER   (0u)
 
#define I165C_IMC_FIRMWARE   (1u)
 
#define I165C_IMC_FIRMWARE_ID   (2u)
 
#define I165C_IMC_FIRMWARE_HASH   (3u)
 
#define I165C_D_IMC_VERSION_INDEX_GET_RESPONSE   (I165C_DW1)
 
#define I165C_D_IMC_VERSION_GET_RESPONSE   (I165C_DW2)
 
#define I165C_CMD_S_IMC_GET_TEST_CNT   (0x5Au)
 
#define I165C_D_IMC_TEST_CNT_GET_RESPONSE   (I165C_DW1)
 
#define I165C_CMD_S_IMC_GET_MANUFACTURER   (0x3Du)
 
#define I165C_D_IMC_MANUFACT_INDEX_GET_REQUEST   (I165C_DW1)
 
#define I165C_D_IMC_MANUFACT_INDEX_GET_RESPONSE   (I165C_DW1)
 
#define I165C_D_IMC_MANUFACT_DATA_GET_RESPONSE   (I165C_DW2)
 
#define I165C_CMD_S_VIFC_GET_STATUS   (0xDCu)
 
#define I165C_D_VIFC_STATUS_GET_RESPONSE   (I165C_DW1)
 
#define I165C_INSULATION_MEASUREMENT_STATUS_SHIFT   (0u)
 
#define I165C_IMC_CONNECTIVITY_SHIFT   (1u)
 
#define I165C_IMC_ALIVE_STATUS_DETECTION_SHIFT   (2u)
 
#define I165C_VIFC_COMMAND_SHIFT   (4u)
 
#define I165C_RESISTANCE_VALUE_OUTDATED_SHIFT   (8u)
 
#define I165C_IMC_SELFTEST_OVERALL_SCENARIO_SHIFT   (12u)
 
#define I165C_IMC_SELFTEST_PARAMETERCONFIG_SCENARIO_SHIFT   (13u)
 
#define I165C_CMD_S_VIFC_GET_HV_RELAIS   (0xDDu)
 
#define I165C_D_VIFC_HV_RELAIS_GET_REQUEST   (I165C_DW1)
 
#define I165C_D_VIFC_HV_RELAIS_GET_RESPONSE   (I165C_DW1)
 
#define I165C_D_VIFC_HV_RELAIS_STATE_GET_RESPONSE   (I165C_DW2)
 
#define I165C_CMD_S_VIFC_GET_IMC_ALIVE   (0xE2u)
 
#define I165C_D_VIFC_IMC_ALIVE_GET_RESPONSE   (I165C_DW1)
 
#define I165C_CMD_S_VIFC_GET_VERSION   (0xDEu)
 
#define I165C_D_IMC_VERSION_INDEX_GET_REQUEST   (I165C_DW1)
 
#define I165C_D_VIFC_VERSION_INDEX_GET_RESPONSE   (I165C_DW1)
 
#define I165C_D_VIFC_VERSION_GET_RESPONSE   (I165C_DW2)
 
#define I165C_CMD_S_VIFC_GET_LOCK   (0xE0u)
 
#define I165C_D_VIFC_LOCK_MODE_GET_RESPONSE   (I165C_DW1)
 

Detailed Description

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:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

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:

  • ″This product uses parts of foxBMS®″
  • ″This product includes parts of foxBMS®″
  • ″This product is derived from foxBMS®″
Author
foxBMS Team
Date
2021-03-17 (date of creation)
Updated
2023-10-12 (date of last update)
Version
v1.6.0
Prefix
I165C

Please see the manual and data sheet for detailed information about the specifications and defines used within this file.

docref: iso165C_C1_D00154_06_M_XXEN - 03/2021 - Manual docref: iso165Cx_D00154_04_D_XXEN - 03/2021 - Data sheet

Definition in file bender_iso165c_cfg.h.

Macro Definition Documentation

◆ I165C_BIAS_TO_HV_MINUS

#define I165C_BIAS_TO_HV_MINUS   (1u)

Definition at line 258 of file bender_iso165c_cfg.h.

◆ I165C_BIAS_TO_HV_PLUS

#define I165C_BIAS_TO_HV_PLUS   (2u)

Definition at line 259 of file bender_iso165c_cfg.h.

◆ I165C_CALIBRATION_PARAMETER_SHIFT

#define I165C_CALIBRATION_PARAMETER_SHIFT   (0u)

Definition at line 239 of file bender_iso165c_cfg.h.

◆ I165C_CALIBRATION_RUNNING_SHIFT

#define I165C_CALIBRATION_RUNNING_SHIFT   (3u)

Definition at line 233 of file bender_iso165c_cfg.h.

◆ I165C_CAN_NODE

#define I165C_CAN_NODE   (CAN_NODE_1)

CAN Node the IMD device is connected to

Definition at line 75 of file bender_iso165c_cfg.h.

◆ I165C_CHASSIS_FAULT_SHIFT

#define I165C_CHASSIS_FAULT_SHIFT   (1u)

Definition at line 231 of file bender_iso165c_cfg.h.

◆ I165C_CMD_S_IMC_CTL_SELFTEST

#define I165C_CMD_S_IMC_CTL_SELFTEST   (0x21u)

control commands (CTL) trigger self test

Definition at line 158 of file bender_iso165c_cfg.h.

◆ I165C_CMD_S_IMC_GET_HV_1

#define I165C_CMD_S_IMC_GET_HV_1   (0x36u)

get HV1, HV value between HV1_POS and HV1_NEG

Definition at line 275 of file bender_iso165c_cfg.h.

◆ I165C_CMD_S_IMC_GET_HV_2

#define I165C_CMD_S_IMC_GET_HV_2   (0x3Au)

get HV2, HV value between HV2_POS and HV2_NEG

Definition at line 279 of file bender_iso165c_cfg.h.

◆ I165C_CMD_S_IMC_GET_MANUFACTURER

#define I165C_CMD_S_IMC_GET_MANUFACTURER   (0x3Du)

get manufacturer information

Definition at line 297 of file bender_iso165c_cfg.h.

◆ I165C_CMD_S_IMC_GET_MEAN_FACTOR

#define I165C_CMD_S_IMC_GET_MEAN_FACTOR   (0x3Cu)

get mean factor

Definition at line 271 of file bender_iso165c_cfg.h.

◆ I165C_CMD_S_IMC_GET_R_ISO

#define I165C_CMD_S_IMC_GET_R_ISO   (0x35u)

get the insulation resistance

Definition at line 255 of file bender_iso165c_cfg.h.

◆ I165C_CMD_S_IMC_GET_R_ISO_ERR_THR

#define I165C_CMD_S_IMC_GET_R_ISO_ERR_THR   (0x32u)

get error threshold

Definition at line 263 of file bender_iso165c_cfg.h.

◆ I165C_CMD_S_IMC_GET_R_ISO_WRN_THR

#define I165C_CMD_S_IMC_GET_R_ISO_WRN_THR   (0x39u)

get warning threshold

Definition at line 267 of file bender_iso165c_cfg.h.

◆ I165C_CMD_S_IMC_GET_STATUS

#define I165C_CMD_S_IMC_GET_STATUS   (0x37u)

get the D_IMC_STATUS internal status of the I165C

Definition at line 228 of file bender_iso165c_cfg.h.

◆ I165C_CMD_S_IMC_GET_TEST_CNT

#define I165C_CMD_S_IMC_GET_TEST_CNT   (0x5Au)

get insulation monitoring counter value

Definition at line 293 of file bender_iso165c_cfg.h.

◆ I165C_CMD_S_IMC_GET_VERSION

#define I165C_CMD_S_IMC_GET_VERSION   (0x33u)

get software version of the IMC

Definition at line 283 of file bender_iso165c_cfg.h.

◆ I165C_CMD_S_IMC_SET_MEAN_FACTOR

#define I165C_CMD_S_IMC_SET_MEAN_FACTOR   (0x2Bu)

set the mean factor of the insulation resistance averaging algorithm

Definition at line 202 of file bender_iso165c_cfg.h.

◆ I165C_CMD_S_IMC_SET_R_ISO_ERR_THR

#define I165C_CMD_S_IMC_SET_R_ISO_ERR_THR   (0x28u)

set commands (SET) for each command, 0,1 or 2 data words are defined they are defined for the request and the response a response is always sent when the I165C receives a command set error threshold

Definition at line 194 of file bender_iso165c_cfg.h.

◆ I165C_CMD_S_IMC_SET_R_ISO_ERR_WRN

#define I165C_CMD_S_IMC_SET_R_ISO_ERR_WRN   (0x29u)

set warning threshold

Definition at line 198 of file bender_iso165c_cfg.h.

◆ I165C_CMD_S_VIFC_CTL_IMC_RESET

#define I165C_CMD_S_VIFC_CTL_IMC_RESET   (0xC8u)

reset I165C

Definition at line 165 of file bender_iso165c_cfg.h.

◆ I165C_CMD_S_VIFC_CTL_LOCK

#define I165C_CMD_S_VIFC_CTL_LOCK   (0xCAu)

lock and unlock possibility to make changes to I165C

Definition at line 168 of file bender_iso165c_cfg.h.

◆ I165C_CMD_S_VIFC_CTL_MEASUREMENT

#define I165C_CMD_S_VIFC_CTL_MEASUREMENT   (0xCBu)

change measurement mode

Definition at line 179 of file bender_iso165c_cfg.h.

◆ I165C_CMD_S_VIFC_DUMMY

#define I165C_CMD_S_VIFC_DUMMY   (0x00u)

get commands (GET) for each command, 0,1 or 2 data words are defined they are defined for the request and the response a response is always sent when the I165C receives a command dummy command (ping the I165C)

Definition at line 225 of file bender_iso165c_cfg.h.

◆ I165C_CMD_S_VIFC_GET_HV_RELAIS

#define I165C_CMD_S_VIFC_GET_HV_RELAIS   (0xDDu)

get state of the HV relays in the HV coupling network

Definition at line 314 of file bender_iso165c_cfg.h.

◆ I165C_CMD_S_VIFC_GET_IMC_ALIVE

#define I165C_CMD_S_VIFC_GET_IMC_ALIVE   (0xE2u)

get "Alive" state of the IMC

Definition at line 320 of file bender_iso165c_cfg.h.

◆ I165C_CMD_S_VIFC_GET_LOCK

#define I165C_CMD_S_VIFC_GET_LOCK   (0xE0u)

get locking state of the iso165C

Definition at line 330 of file bender_iso165c_cfg.h.

◆ I165C_CMD_S_VIFC_GET_STATUS

#define I165C_CMD_S_VIFC_GET_STATUS   (0xDCu)

get internal status of the D_VIFC_STATUS

Definition at line 303 of file bender_iso165c_cfg.h.

◆ I165C_CMD_S_VIFC_GET_VERSION

#define I165C_CMD_S_VIFC_GET_VERSION   (0xDEu)

get software version of the VIFC

Definition at line 324 of file bender_iso165c_cfg.h.

◆ I165C_CMD_S_VIFC_SET_HV_RELAIS

#define I165C_CMD_S_VIFC_SET_HV_RELAIS   (0xD2u)

change the state of the HV relays in the HV coupling network

Definition at line 206 of file bender_iso165c_cfg.h.

◆ I165C_D_IMC_HV_1_GET_RESPONSE

#define I165C_D_IMC_HV_1_GET_RESPONSE   (I165C_DW1)

Definition at line 276 of file bender_iso165c_cfg.h.

◆ I165C_D_IMC_HV_2_GET_RESPONSE

#define I165C_D_IMC_HV_2_GET_RESPONSE   (I165C_DW1)

Definition at line 280 of file bender_iso165c_cfg.h.

◆ I165C_D_IMC_MANUFACT_DATA_GET_RESPONSE

#define I165C_D_IMC_MANUFACT_DATA_GET_RESPONSE   (I165C_DW2)

Definition at line 300 of file bender_iso165c_cfg.h.

◆ I165C_D_IMC_MANUFACT_INDEX_GET_REQUEST

#define I165C_D_IMC_MANUFACT_INDEX_GET_REQUEST   (I165C_DW1)

Definition at line 298 of file bender_iso165c_cfg.h.

◆ I165C_D_IMC_MANUFACT_INDEX_GET_RESPONSE

#define I165C_D_IMC_MANUFACT_INDEX_GET_RESPONSE   (I165C_DW1)

Definition at line 299 of file bender_iso165c_cfg.h.

◆ I165C_D_IMC_MEAN_FACTOR_GET_RESPONSE

#define I165C_D_IMC_MEAN_FACTOR_GET_RESPONSE   (I165C_DW1)

Definition at line 272 of file bender_iso165c_cfg.h.

◆ I165C_D_IMC_MEAN_FACTOR_SET_REQUEST

#define I165C_D_IMC_MEAN_FACTOR_SET_REQUEST   (I165C_DW1)

Definition at line 203 of file bender_iso165c_cfg.h.

◆ I165C_D_IMC_MEAN_FACTOR_SET_RESPONSE

#define I165C_D_IMC_MEAN_FACTOR_SET_RESPONSE   (I165C_DW1)

Definition at line 204 of file bender_iso165c_cfg.h.

◆ I165C_D_IMC_R_ISO_BIAS_GET_RESPONSE

#define I165C_D_IMC_R_ISO_BIAS_GET_RESPONSE   (I165C_DB1)

Definition at line 257 of file bender_iso165c_cfg.h.

◆ I165C_D_IMC_R_ISO_CNT_GET_RESPONSE

#define I165C_D_IMC_R_ISO_CNT_GET_RESPONSE   (I165C_DB2)

Definition at line 260 of file bender_iso165c_cfg.h.

◆ I165C_D_IMC_R_ISO_ERR_THR_GET_RESPONSE

#define I165C_D_IMC_R_ISO_ERR_THR_GET_RESPONSE   (I165C_DW1)

Definition at line 264 of file bender_iso165c_cfg.h.

◆ I165C_D_IMC_R_ISO_ERR_THR_SET_REQUEST

#define I165C_D_IMC_R_ISO_ERR_THR_SET_REQUEST   (I165C_DW1)

Definition at line 195 of file bender_iso165c_cfg.h.

◆ I165C_D_IMC_R_ISO_ERR_THR_SET_RESPONSE

#define I165C_D_IMC_R_ISO_ERR_THR_SET_RESPONSE   (I165C_DW1)

Definition at line 196 of file bender_iso165c_cfg.h.

◆ I165C_D_IMC_R_ISO_ERR_WRN_SET_REQUEST

#define I165C_D_IMC_R_ISO_ERR_WRN_SET_REQUEST   (I165C_DW1)

Definition at line 199 of file bender_iso165c_cfg.h.

◆ I165C_D_IMC_R_ISO_ERR_WRN_SET_RESPONSE

#define I165C_D_IMC_R_ISO_ERR_WRN_SET_RESPONSE   (I165C_DW1)

Definition at line 200 of file bender_iso165c_cfg.h.

◆ I165C_D_IMC_R_ISO_GET_RESPONSE

#define I165C_D_IMC_R_ISO_GET_RESPONSE   (I165C_DW1)

Definition at line 256 of file bender_iso165c_cfg.h.

◆ I165C_D_IMC_R_ISO_WRN_THR_GET_RESPONSE

#define I165C_D_IMC_R_ISO_WRN_THR_GET_RESPONSE   (I165C_DW1)

Definition at line 268 of file bender_iso165c_cfg.h.

◆ I165C_D_IMC_SELFTEST_SCR_CTL_REQUEST

#define I165C_D_IMC_SELFTEST_SCR_CTL_REQUEST   (I165C_DW1)

Definition at line 159 of file bender_iso165c_cfg.h.

◆ I165C_D_IMC_SELFTEST_SCR_CTL_RESPONSE

#define I165C_D_IMC_SELFTEST_SCR_CTL_RESPONSE   (I165C_DW1)

Definition at line 160 of file bender_iso165c_cfg.h.

◆ I165C_D_IMC_STATUS_EXT_GET_RESPONSE

#define I165C_D_IMC_STATUS_EXT_GET_RESPONSE   (I165C_DW2)

get the D_IMC_STATUS_EXT device-internal IMC self-test results

Definition at line 238 of file bender_iso165c_cfg.h.

◆ I165C_D_IMC_STATUS_GET_RESPONSE

#define I165C_D_IMC_STATUS_GET_RESPONSE   (I165C_DW1)

Definition at line 229 of file bender_iso165c_cfg.h.

◆ I165C_D_IMC_TEST_CNT_GET_RESPONSE

#define I165C_D_IMC_TEST_CNT_GET_RESPONSE   (I165C_DW1)

Definition at line 294 of file bender_iso165c_cfg.h.

◆ I165C_D_IMC_VERSION_GET_RESPONSE

#define I165C_D_IMC_VERSION_GET_RESPONSE   (I165C_DW2)

Definition at line 290 of file bender_iso165c_cfg.h.

◆ I165C_D_IMC_VERSION_INDEX_GET_REQUEST [1/2]

#define I165C_D_IMC_VERSION_INDEX_GET_REQUEST   (I165C_DW1)

Definition at line 325 of file bender_iso165c_cfg.h.

◆ I165C_D_IMC_VERSION_INDEX_GET_REQUEST [2/2]

#define I165C_D_IMC_VERSION_INDEX_GET_REQUEST   (I165C_DW1)

Definition at line 325 of file bender_iso165c_cfg.h.

◆ I165C_D_IMC_VERSION_INDEX_GET_RESPONSE

#define I165C_D_IMC_VERSION_INDEX_GET_RESPONSE   (I165C_DW1)

Definition at line 289 of file bender_iso165c_cfg.h.

◆ I165C_D_VIFC_HV_RELAIS_GET_REQUEST

#define I165C_D_VIFC_HV_RELAIS_GET_REQUEST   (I165C_DW1)

Definition at line 315 of file bender_iso165c_cfg.h.

◆ I165C_D_VIFC_HV_RELAIS_GET_RESPONSE

#define I165C_D_VIFC_HV_RELAIS_GET_RESPONSE   (I165C_DW1)

Definition at line 316 of file bender_iso165c_cfg.h.

◆ I165C_D_VIFC_HV_RELAIS_NEGATIVE

#define I165C_D_VIFC_HV_RELAIS_NEGATIVE   (0u)

Definition at line 209 of file bender_iso165c_cfg.h.

◆ I165C_D_VIFC_HV_RELAIS_POSITIVE

#define I165C_D_VIFC_HV_RELAIS_POSITIVE   (1u)

Definition at line 210 of file bender_iso165c_cfg.h.

◆ I165C_D_VIFC_HV_RELAIS_SET_REQUEST

#define I165C_D_VIFC_HV_RELAIS_SET_REQUEST   (I165C_DW1)

Definition at line 207 of file bender_iso165c_cfg.h.

◆ I165C_D_VIFC_HV_RELAIS_SET_RESPONSE

#define I165C_D_VIFC_HV_RELAIS_SET_RESPONSE   (I165C_DW1)

Definition at line 211 of file bender_iso165c_cfg.h.

◆ I165C_D_VIFC_HV_RELAIS_STATE_GET_RESPONSE

#define I165C_D_VIFC_HV_RELAIS_STATE_GET_RESPONSE   (I165C_DW2)

Definition at line 317 of file bender_iso165c_cfg.h.

◆ I165C_D_VIFC_HV_RELAIS_STATE_SET_REQUEST

#define I165C_D_VIFC_HV_RELAIS_STATE_SET_REQUEST   (I165C_DW2)

Definition at line 208 of file bender_iso165c_cfg.h.

◆ I165C_D_VIFC_HV_RELAIS_STATE_SET_RESPONSE

#define I165C_D_VIFC_HV_RELAIS_STATE_SET_RESPONSE   (I165C_DW2)

Definition at line 212 of file bender_iso165c_cfg.h.

◆ I165C_D_VIFC_IMC_ALIVE_GET_RESPONSE

#define I165C_D_VIFC_IMC_ALIVE_GET_RESPONSE   (I165C_DW1)

Definition at line 321 of file bender_iso165c_cfg.h.

◆ I165C_D_VIFC_LOCK_MODE_CTL_REQUEST

#define I165C_D_VIFC_LOCK_MODE_CTL_REQUEST   (I165C_DW1)

Definition at line 169 of file bender_iso165c_cfg.h.

◆ I165C_D_VIFC_LOCK_MODE_CTL_RESPONSE

#define I165C_D_VIFC_LOCK_MODE_CTL_RESPONSE   (I165C_DW1)

Definition at line 170 of file bender_iso165c_cfg.h.

◆ I165C_D_VIFC_LOCK_MODE_GET_RESPONSE

#define I165C_D_VIFC_LOCK_MODE_GET_RESPONSE   (I165C_DW1)

Definition at line 331 of file bender_iso165c_cfg.h.

◆ I165C_D_VIFC_LOCK_PWD_CTL_REQUEST

#define I165C_D_VIFC_LOCK_PWD_CTL_REQUEST   (I165C_DW2)

Definition at line 171 of file bender_iso165c_cfg.h.

◆ I165C_D_VIFC_STATUS_GET_RESPONSE

#define I165C_D_VIFC_STATUS_GET_RESPONSE   (I165C_DW1)

Definition at line 304 of file bender_iso165c_cfg.h.

◆ I165C_D_VIFC_VERSION_GET_RESPONSE

#define I165C_D_VIFC_VERSION_GET_RESPONSE   (I165C_DW2)

Definition at line 327 of file bender_iso165c_cfg.h.

◆ I165C_D_VIFC_VERSION_INDEX_GET_RESPONSE

#define I165C_D_VIFC_VERSION_INDEX_GET_RESPONSE   (I165C_DW1)

Definition at line 326 of file bender_iso165c_cfg.h.

◆ I165C_DB1

#define I165C_DB1   (3u)

data byte 1 is in first position

Definition at line 134 of file bender_iso165c_cfg.h.

◆ I165C_DB2

#define I165C_DB2   (4u)

data byte 2 is in second position

Definition at line 136 of file bender_iso165c_cfg.h.

◆ I165C_DB3

#define I165C_DB3   (5u)

data byte 3 is in third position

Definition at line 138 of file bender_iso165c_cfg.h.

◆ I165C_DB4

#define I165C_DB4   (6u)

data byte 4 is in fourth position

Definition at line 140 of file bender_iso165c_cfg.h.

◆ I165C_DISABLE_MEASUREMENT

#define I165C_DISABLE_MEASUREMENT   (0u)

Definition at line 181 of file bender_iso165c_cfg.h.

◆ I165C_DW1

#define I165C_DW1   (0u)

datsheet version: iso165C_D00154_03_M_XXEN/01.2019 frames have up to two data words (1 data word length = 16 bits) or up to 4 data bytes (1 data byte length = 8 bits)

CAUTION: data word order is reversed !!!!!!!!! (see data sheet page 15) data word 1 is in first position

Definition at line 128 of file bender_iso165c_cfg.h.

◆ I165C_DW2

#define I165C_DW2   (1u)

data word 2 is in second position

Definition at line 130 of file bender_iso165c_cfg.h.

◆ I165C_DW3

#define I165C_DW3   (2u)

data word 3 is in third position

Definition at line 132 of file bender_iso165c_cfg.h.

◆ I165C_DW_VIFC_CTL_MEASUREMENT_REQUEST

#define I165C_DW_VIFC_CTL_MEASUREMENT_REQUEST   (I165C_DW1)

Definition at line 180 of file bender_iso165c_cfg.h.

◆ I165C_EEPROM_PARAMETER_SHIFT

#define I165C_EEPROM_PARAMETER_SHIFT   (2u)

Definition at line 241 of file bender_iso165c_cfg.h.

◆ I165C_ENABLE_MEASUREMENT

#define I165C_ENABLE_MEASUREMENT   (1u)

Definition at line 182 of file bender_iso165c_cfg.h.

◆ I165C_ERROR_THRESHOLD_kOhm

#define I165C_ERROR_THRESHOLD_kOhm   IMD_ERROR_THRESHOLD_INSULATION_RESISTANCE_kOhm

Measured resistance threshold under which an error is issued by i165c

Definition at line 91 of file bender_iso165c_cfg.h.

◆ I165C_FLASH_PARAMETER_SHIFT

#define I165C_FLASH_PARAMETER_SHIFT   (3u)

Definition at line 242 of file bender_iso165c_cfg.h.

◆ I165C_FUSE_BIT_VALID_INVALID_SHIFT

#define I165C_FUSE_BIT_VALID_INVALID_SHIFT   (11u)

Definition at line 249 of file bender_iso165c_cfg.h.

◆ I165C_HARDWARE_FAILURE_SHIFT

#define I165C_HARDWARE_FAILURE_SHIFT   (1u)

Definition at line 240 of file bender_iso165c_cfg.h.

◆ I165C_HV1_VOLTAGE_SHIFT

#define I165C_HV1_VOLTAGE_SHIFT   (12u)

Definition at line 250 of file bender_iso165c_cfg.h.

◆ I165C_HV2_VOLTAGE_SHIFT

#define I165C_HV2_VOLTAGE_SHIFT   (13u)

Definition at line 251 of file bender_iso165c_cfg.h.

◆ I165C_IMC_ALIVE_STATUS_DETECTION_SHIFT

#define I165C_IMC_ALIVE_STATUS_DETECTION_SHIFT   (2u)

Definition at line 307 of file bender_iso165c_cfg.h.

◆ I165C_IMC_BOOTLOADER

#define I165C_IMC_BOOTLOADER   (0u)

Definition at line 285 of file bender_iso165c_cfg.h.

◆ I165C_IMC_CONNECTIVITY_SHIFT

#define I165C_IMC_CONNECTIVITY_SHIFT   (1u)

Definition at line 306 of file bender_iso165c_cfg.h.

◆ I165C_IMC_FIRMWARE

#define I165C_IMC_FIRMWARE   (1u)

Definition at line 286 of file bender_iso165c_cfg.h.

◆ I165C_IMC_FIRMWARE_HASH

#define I165C_IMC_FIRMWARE_HASH   (3u)

Definition at line 288 of file bender_iso165c_cfg.h.

◆ I165C_IMC_FIRMWARE_ID

#define I165C_IMC_FIRMWARE_ID   (2u)

Definition at line 287 of file bender_iso165c_cfg.h.

◆ I165C_IMC_SELFTEST_OVERALL_SCENARIO_SHIFT

#define I165C_IMC_SELFTEST_OVERALL_SCENARIO_SHIFT   (12u)

Definition at line 310 of file bender_iso165c_cfg.h.

◆ I165C_IMC_SELFTEST_PARAMETERCONFIG_SCENARIO_SHIFT

#define I165C_IMC_SELFTEST_PARAMETERCONFIG_SCENARIO_SHIFT   (13u)

Definition at line 311 of file bender_iso165c_cfg.h.

◆ I165C_IMD_INFO_RECEIVE_ATTEMPTS

#define I165C_IMD_INFO_RECEIVE_ATTEMPTS   (50u)

Number of attempts to receive the IMD_Info message from iso165c

Definition at line 107 of file bender_iso165c_cfg.h.

◆ I165C_INSULATION_FAULT_SHIFT

#define I165C_INSULATION_FAULT_SHIFT   (0u)

Definition at line 230 of file bender_iso165c_cfg.h.

◆ I165C_INSULATION_MEASUREMENT_STATUS_SHIFT

#define I165C_INSULATION_MEASUREMENT_STATUS_SHIFT   (0u)

Definition at line 305 of file bender_iso165c_cfg.h.

◆ I165C_INSULATION_WARNING_SHIFT

#define I165C_INSULATION_WARNING_SHIFT   (5u)

Definition at line 235 of file bender_iso165c_cfg.h.

◆ I165C_IS_165C_USED

#define I165C_IS_165C_USED   (false)

Switch if bender iso165C or iso165C-1 is used true: iso165C false: iso165C-1

Definition at line 81 of file bender_iso165c_cfg.h.

◆ I165C_LOCK_PASSWORD

#define I165C_LOCK_PASSWORD   (0xFFFFu)

Definition at line 176 of file bender_iso165c_cfg.h.

◆ I165C_LOCKMODE_LOCKED

#define I165C_LOCKMODE_LOCKED   (1u)

Definition at line 173 of file bender_iso165c_cfg.h.

◆ I165C_LOCKMODE_UNKNOWN

#define I165C_LOCKMODE_UNKNOWN   (100u)

Definition at line 174 of file bender_iso165c_cfg.h.

◆ I165C_LOCKMODE_UNLOCKED

#define I165C_LOCKMODE_UNLOCKED   (0u)

Definition at line 172 of file bender_iso165c_cfg.h.

◆ I165C_MANUFACTURER_STRING_VALID_INVALID_SHIFT

#define I165C_MANUFACTURER_STRING_VALID_INVALID_SHIFT   (14u)

Definition at line 252 of file bender_iso165c_cfg.h.

◆ I165C_MAX_QUEUE_READS

#define I165C_MAX_QUEUE_READS   (5u)

Max number of attempts to read CAN queue

Definition at line 110 of file bender_iso165c_cfg.h.

◆ I165C_MEASUREMENT_AVERAGING_FACTOR

#define I165C_MEASUREMENT_AVERAGING_FACTOR   (10u) /* Recommended value for EVs according to data sheet: 10 */

Measurement averaging factor

Definition at line 101 of file bender_iso165c_cfg.h.

◆ I165C_MEASUREMENT_MODE_UNKNOWN

#define I165C_MEASUREMENT_MODE_UNKNOWN   (100u)

Definition at line 183 of file bender_iso165c_cfg.h.

◆ I165C_MESSAGETYPE_IMD_INFO

#define I165C_MESSAGETYPE_IMD_INFO   (CANRX_IMD_INFO_ID)

type of messages to communicate with I165C cyclic message, transmitted every second

Definition at line 145 of file bender_iso165c_cfg.h.

◆ I165C_MESSAGETYPE_IMD_REQUEST

#define I165C_MESSAGETYPE_IMD_REQUEST   (CANTX_IMD_REQUEST_ID)

message for requests (self test, reset, set values...)

Definition at line 147 of file bender_iso165c_cfg.h.

◆ I165C_MESSAGETYPE_IMD_RESPONSE

#define I165C_MESSAGETYPE_IMD_RESPONSE   (CANRX_IMD_RESPONSE_ID)

answer message, always send by I165C when it received a request

Definition at line 149 of file bender_iso165c_cfg.h.

◆ I165C_PARAMETER_VALUE_SHIFT

#define I165C_PARAMETER_VALUE_SHIFT   (7u)

Definition at line 245 of file bender_iso165c_cfg.h.

◆ I165C_QUEUE_TIMEOUT_ms

#define I165C_QUEUE_TIMEOUT_ms   ((TickType_t)0u)

Maximum queue timeout time in milliseconds

Definition at line 113 of file bender_iso165c_cfg.h.

◆ I165C_RAM_PARAMETER_SHIFT

#define I165C_RAM_PARAMETER_SHIFT   (4u)

Definition at line 243 of file bender_iso165c_cfg.h.

◆ I165C_RELAY_STATE_CLOSED

#define I165C_RELAY_STATE_CLOSED   (1u)

Definition at line 214 of file bender_iso165c_cfg.h.

◆ I165C_RELAY_STATE_OPEN

#define I165C_RELAY_STATE_OPEN   (0u)

Definition at line 213 of file bender_iso165c_cfg.h.

◆ I165C_RESISTANCE_VALUE_OUTDATED_SHIFT

#define I165C_RESISTANCE_VALUE_OUTDATED_SHIFT   (8u)

Definition at line 309 of file bender_iso165c_cfg.h.

◆ I165C_RX_MESSAGE_IDENTIFIER_TYPE

#define I165C_RX_MESSAGE_IDENTIFIER_TYPE   (CANRX_IMD_ID_TYPE)

RX message identifier type

Definition at line 151 of file bender_iso165c_cfg.h.

◆ I165C_SELF_TEST_LONG

#define I165C_SELF_TEST_LONG

Select if self-test scenario overall (I165C_SELF_TEST_LONG) or ParameterConfig self-test scenario (I165C_SELF_TEST_SHORT) shall be executed

Definition at line 85 of file bender_iso165c_cfg.h.

◆ I165C_SELFTEST_RUNNING_SHIFT

#define I165C_SELFTEST_RUNNING_SHIFT   (4u)

Definition at line 234 of file bender_iso165c_cfg.h.

◆ I165C_SELFTEST_SCENARIO_NO_ACTION

#define I165C_SELFTEST_SCENARIO_NO_ACTION   (0u)

Definition at line 161 of file bender_iso165c_cfg.h.

◆ I165C_SELFTEST_SCENARIO_OVERALL

#define I165C_SELFTEST_SCENARIO_OVERALL   (1u)

Definition at line 162 of file bender_iso165c_cfg.h.

◆ I165C_SELFTEST_SCENARIO_PARAMETERCONFIG

#define I165C_SELFTEST_SCENARIO_PARAMETERCONFIG   (2u)

Definition at line 163 of file bender_iso165c_cfg.h.

◆ I165C_STACK_OVERFLOW_SHIFT

#define I165C_STACK_OVERFLOW_SHIFT   (5u)

Definition at line 244 of file bender_iso165c_cfg.h.

◆ I165C_SYSTEM_FAILURE_SHIFT

#define I165C_SYSTEM_FAILURE_SHIFT   (2u)

Definition at line 232 of file bender_iso165c_cfg.h.

◆ I165C_TEST_PULSE_VOLTAGE_A_REF_SHIFT

#define I165C_TEST_PULSE_VOLTAGE_A_REF_SHIFT   (8u)

Definition at line 246 of file bender_iso165c_cfg.h.

◆ I165C_TRANSMISSION_ATTEMPTS

#define I165C_TRANSMISSION_ATTEMPTS   (3u)

Number of attempts to get acknowledgement of message reception by i165c

Definition at line 104 of file bender_iso165c_cfg.h.

◆ I165C_TX_MESSAGE_IDENTIFIER_TYPE

#define I165C_TX_MESSAGE_IDENTIFIER_TYPE   (CANTX_IMD_ID_TYPE)

TX message identifier type

Definition at line 153 of file bender_iso165c_cfg.h.

◆ I165C_UNLOCK_PASSWORD

#define I165C_UNLOCK_PASSWORD   (0u)

Definition at line 175 of file bender_iso165c_cfg.h.

◆ I165C_VIFC_COMMAND_SHIFT

#define I165C_VIFC_COMMAND_SHIFT   (4u)

Definition at line 308 of file bender_iso165c_cfg.h.

◆ I165C_VOLTAGE_LEVEL_MINUS12V_SHIFT

#define I165C_VOLTAGE_LEVEL_MINUS12V_SHIFT   (10u)

Definition at line 248 of file bender_iso165c_cfg.h.

◆ I165C_VOLTAGE_LEVEL_PLUS12V_SHIFT

#define I165C_VOLTAGE_LEVEL_PLUS12V_SHIFT   (9u)

Definition at line 247 of file bender_iso165c_cfg.h.

◆ I165C_WARNING_THRESHOLD_kOhm

#define I165C_WARNING_THRESHOLD_kOhm   IMD_WARNING_THRESHOLD_INSULATION_RESISTANCE_kOhm

Measured resistance threshold under which a warning is issued by i165c

Definition at line 88 of file bender_iso165c_cfg.h.