foxBMS  1.4.0
The foxBMS Battery Management System API Documentation
can_cfg.c
Go to the documentation of this file.
1 /**
2  *
3  * @copyright © 2010 - 2022, Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V.
4  * All rights reserved.
5  *
6  * SPDX-License-Identifier: BSD-3-Clause
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following conditions are met:
10  *
11  * 1. Redistributions of source code must retain the above copyright notice, this
12  * list of conditions and the following disclaimer.
13  *
14  * 2. Redistributions in binary form must reproduce the above copyright notice,
15  * this list of conditions and the following disclaimer in the documentation
16  * and/or other materials provided with the distribution.
17  *
18  * 3. Neither the name of the copyright holder nor the names of its
19  * contributors may be used to endorse or promote products derived from
20  * this software without specific prior written permission.
21  *
22  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
25  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
26  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32  *
33  * We kindly request you to use one or more of the following phrases to refer to
34  * foxBMS in your hardware, software, documentation or advertising materials:
35  *
36  * - ″This product uses parts of foxBMS®″
37  * - ″This product includes parts of foxBMS®″
38  * - ″This product is derived from foxBMS®″
39  *
40  */
41 
42 /**
43  * @file can_cfg.c
44  * @author foxBMS Team
45  * @date 2019-12-04 (date of creation)
46  * @updated 2022-07-28 (date of last update)
47  * @version v1.4.0
48  * @ingroup DRIVERS_CONFIGURATION
49  * @prefix CAN
50  *
51  * @brief Configuration for the CAN module
52  *
53  * @details The CAN bus settings and the received messages and their
54  * reception handling are to be specified here.
55  *
56  *
57  */
58 
59 /*========== Includes =======================================================*/
60 #include "can_cfg.h"
61 
62 #include "can_cbs.h"
63 #include "database.h"
64 #include "ftask.h"
65 
66 /*========== Macros and Definitions =========================================*/
67 
68 /*========== Static Function Prototypes =====================================*/
69 
70 /*========== Static Constant and Variable Definitions =======================*/
71 
72 /** Multiplexer values @{*/
73 static uint8_t can_voltageMux = 0u;
74 static uint8_t can_temperatureMux = 0u;
75 static uint8_t can_stringStateMux = 0u;
76 static uint8_t can_stringValuesMux = 0u;
77 static uint8_t can_stringMinMaxMux = 0u;
78 static uint8_t can_stringStateEstimationMux = 0u;
79 static uint8_t can_stringValues2Mux = 0u;
80 /**@}*/
81 
82 /*========== Extern Constant and Variable Definitions =======================*/
83 
84 /* ***************************************
85  * Configure TX messages here
86  ****************************************/
87 
88 /** registry of CAN TX messages */
90  {CAN1_NODE,
92  CAN_DLC,
96  &CAN_TxState,
97  NULL_PTR}, /*!< State */
98  {CAN1_NODE,
100  CAN_DLC,
105  NULL_PTR}, /*!< Detail State */
106  {CAN1_NODE,
108  CAN_DLC,
112  &CAN_TxVoltage,
113  &can_voltageMux}, /*!< Cell voltages */
114  {CAN1_NODE,
116  CAN_DLC,
121  &can_temperatureMux}, /*!< Cell temperatures */
122  {CAN1_NODE,
124  CAN_DLC,
129  NULL_PTR}, /*!< Limits */
130  {CAN1_NODE,
132  CAN_DLC,
137  NULL_PTR}, /*!< Pack minimum and maximum values */
138  {CAN1_NODE,
140  CAN_DLC,
145  NULL_PTR}, /*!< Pack state estimation */
146  {CAN1_NODE,
148  CAN_DLC,
153  NULL_PTR}, /*!< Pack values */
154  {CAN1_NODE,
156  CAN_DLC,
161  &can_stringStateMux}, /*!< String state values */
162  {CAN1_NODE,
164  CAN_DLC,
169  &can_stringValuesMux}, /*!< String values */
170  {CAN1_NODE,
172  CAN_DLC,
177  &can_stringMinMaxMux}, /*!< String minimum maximum values */
178  {CAN1_NODE,
180  CAN_DLC,
185  &can_stringStateEstimationMux}, /*!< String minimum maximum values */
186  {CAN1_NODE,
188  CAN_DLC,
193  &can_stringValues2Mux}, /*!< String minimum maximum values */
194 };
195 
196 /* ***************************************
197  * Configure RX messages here
198  ****************************************/
199 
200 /** registry of CAN RX messages */
202  {CAN1_NODE, CAN_ID_IMD_INFO, CAN_DLC, CAN_LITTLE_ENDIAN, &CAN_RxImdInfo}, /*!< info message from iso165c */
203  {CAN1_NODE,
205  CAN_DLC,
207  &CAN_RxImdResponse}, /*!< response message from iso165c */
208 
209  {CAN1_NODE, CAN_ID_COMMAND, CAN_DLC, CAN_BIG_ENDIAN, &CAN_RxRequest}, /*!< state request */
211 
212  {CAN1_NODE,
214  CAN_DLC,
216  &CAN_RxCurrentSensor}, /*!< current sensor I in cyclic mode */
217  {CAN1_NODE,
219  CAN_DLC,
221  &CAN_RxCurrentSensor}, /*!< current sensor U1 in cyclic mode */
222  {CAN1_NODE,
224  CAN_DLC,
226  &CAN_RxCurrentSensor}, /*!< current sensor U2 in cyclic mode */
227  {CAN1_NODE,
229  CAN_DLC,
231  &CAN_RxCurrentSensor}, /*!< current sensor U3 in cyclic mode */
232  {CAN1_NODE,
234  CAN_DLC,
236  &CAN_RxCurrentSensor}, /*!< current sensor T in cyclic mode */
237  {CAN1_NODE,
239  CAN_DLC,
241  &CAN_RxCurrentSensor}, /*!< current sensor Power in cyclic mode */
242  {CAN1_NODE,
244  CAN_DLC,
246  &CAN_RxCurrentSensor}, /*!< current sensor C-C in cyclic mode */
247  {CAN1_NODE,
249  CAN_DLC,
251  &CAN_RxCurrentSensor}, /*!< current sensor E-C in cyclic mode */
252 
253 #if BS_NR_OF_STRINGS > 1u
254  {CAN1_NODE,
256  CAN_DLC,
258  &CAN_RxCurrentSensor}, /*!< current sensor I in cyclic mode */
259  {CAN1_NODE,
261  CAN_DLC,
263  &CAN_RxCurrentSensor}, /*!< current sensor U1 in cyclic mode */
264  {CAN1_NODE,
266  CAN_DLC,
268  &CAN_RxCurrentSensor}, /*!< current sensor U2 in cyclic mode */
269  {CAN1_NODE,
271  CAN_DLC,
273  &CAN_RxCurrentSensor}, /*!< current sensor U3 in cyclic mode */
274  {CAN1_NODE,
276  CAN_DLC,
278  &CAN_RxCurrentSensor}, /*!< current sensor T in cyclic mode */
279  {CAN1_NODE,
281  CAN_DLC,
283  &CAN_RxCurrentSensor}, /*!< current sensor Power in cyclic mode */
284  {CAN1_NODE,
286  CAN_DLC,
288  &CAN_RxCurrentSensor}, /*!< current sensor C-C in cyclic mode */
289  {CAN1_NODE,
291  CAN_DLC,
293  &CAN_RxCurrentSensor}, /*!< current sensor E-C in cyclic mode */
294 
295 #if BS_NR_OF_STRINGS > 2u
296  {CAN1_NODE,
298  CAN_DLC,
300  &CAN_RxCurrentSensor}, /*!< current sensor I in cyclic mode */
301  {CAN1_NODE,
303  CAN_DLC,
305  &CAN_RxCurrentSensor}, /*!< current sensor U1 in cyclic mode */
306  {CAN1_NODE,
308  CAN_DLC,
310  &CAN_RxCurrentSensor}, /*!< current sensor U2 in cyclic mode */
311  {CAN1_NODE,
313  CAN_DLC,
315  &CAN_RxCurrentSensor}, /*!< current sensor U3 in cyclic mode */
316  {CAN1_NODE,
318  CAN_DLC,
320  &CAN_RxCurrentSensor}, /*!< current sensor T in cyclic mode */
321  {CAN1_NODE,
323  CAN_DLC,
325  &CAN_RxCurrentSensor}, /*!< current sensor Power in cyclic mode */
326  {CAN1_NODE,
328  CAN_DLC,
330  &CAN_RxCurrentSensor}, /*!< current sensor C-C in cyclic mode */
331  {CAN1_NODE,
333  CAN_DLC,
335  &CAN_RxCurrentSensor}, /*!< current sensor E-C in cyclic mode */
336 
337 #endif /* BS_NR_OF_STRINGS > 2 */
338 #endif /* BS_NR_OF_STRINGS > 1 */
339 
340  {CAN1_NODE, CAN_ID_DEBUG, CAN_DLC, CAN_LITTLE_ENDIAN, &CAN_RxDebug}, /*!< debug message */
341  {CAN1_NODE, CAN_ID_SW_VERSION, CAN_DLC, CAN_LITTLE_ENDIAN, &CAN_RxSwVersion}, /*!< request SW version */
342 };
343 
344 /** length of CAN message arrays @{*/
345 const uint8_t can_txLength = sizeof(can_txMessages) / sizeof(can_txMessages[0]);
346 const uint8_t can_rxLength = sizeof(can_rxMessages) / sizeof(can_rxMessages[0]);
347 /**@}*/
348 
349 /** local copies of database tables */
350 /**@{*/
366 /**@}*/
367 
370  .pTableCellVoltage = &can_tableCellVoltages,
371  .pTableCellTemperature = &can_tableTemperatures,
372  .pTableMinMax = &can_tableMinimumMaximumValues,
373  .pTableCurrentSensor = &can_tableCurrentSensor,
374  .pTableOpenWire = &can_tableOpenWire,
375  .pTableStateRequest = &can_tableStateRequest,
376  .pTablePackValues = &can_tablePackValues,
377  .pTableSof = &can_tableSof,
378  .pTableSox = &can_tableSox,
379  .pTableErrorState = &can_tableErrorState,
380  .pTableInsulation = &can_tableInsulation,
381  .pTableMsl = &can_tableMslFlags,
382  .pTableRsl = &can_tableRslFlags,
383  .pTableMol = &can_tableMolFlags,
384 };
385 
386 /*========== Static Function Prototypes =====================================*/
387 
388 /*========== Static Function Implementations ================================*/
389 
390 /*========== Extern Function Implementations ================================*/
391 
392 /*========== Externalized Static Function Implementations (Unit Test) =======*/
393 #ifdef UNITY_UNIT_TEST
394 
395 #endif
CAN callbacks header.
uint32_t CAN_RxImdResponse(uint32_t id, uint8_t dlc, CAN_ENDIANNESS_e endianness, const uint8_t *const kpkCanData, const CAN_SHIM_s *const kpkCanShim)
can rx callback function for IMD response messages
uint32_t CAN_TxStateEstimation(uint32_t id, uint8_t dlc, CAN_ENDIANNESS_e endianness, uint8_t *pCanData, uint8_t *pMuxId, const CAN_SHIM_s *const kpkCanShim)
can tx callback function for state estimation values
uint32_t CAN_RxRequest(uint32_t id, uint8_t dlc, CAN_ENDIANNESS_e endianness, const uint8_t *const kpkCanData, const CAN_SHIM_s *const kpkCanShim)
can rx callback function for state requests
uint32_t CAN_TxDetailState(uint32_t id, uint8_t dlc, CAN_ENDIANNESS_e endianness, uint8_t *pCanData, uint8_t *pMuxId, const CAN_SHIM_s *const kpkCanShim)
can tx callback function for detail state
uint32_t CAN_TxStringValues2(uint32_t id, uint8_t dlc, CAN_ENDIANNESS_e endianness, uint8_t *pCanData, uint8_t *pMuxId, const CAN_SHIM_s *const kpkCanShim)
can tx callback function for string values 2
uint32_t CAN_RxCurrentSensor(uint32_t id, uint8_t dlc, CAN_ENDIANNESS_e endianness, const uint8_t *const kpkCanData, const CAN_SHIM_s *const kpkCanShim)
can rx callback function for current sensor measurements
uint32_t CAN_TxMinimumMaximumValues(uint32_t id, uint8_t dlc, CAN_ENDIANNESS_e endianness, uint8_t *pCanData, uint8_t *pMuxId, const CAN_SHIM_s *const kpkCanShim)
can tx callback function for min/max values
uint32_t CAN_RxSwVersion(uint32_t id, uint8_t dlc, CAN_ENDIANNESS_e endianness, const uint8_t *const kpkCanData, const CAN_SHIM_s *const kpkCanShim)
can rx callback function for SW version
uint32_t CAN_TxCellTemperature(uint32_t id, uint8_t dlc, CAN_ENDIANNESS_e endianness, uint8_t *pCanData, uint8_t *pMuxId, const CAN_SHIM_s *const kpkCanShim)
can tx callback function for cell temperatures
uint32_t CAN_TxPackValues(uint32_t id, uint8_t dlc, CAN_ENDIANNESS_e endianness, uint8_t *pCanData, uint8_t *pMuxId, const CAN_SHIM_s *const kpkCanShim)
can tx callback function for pack values values
uint32_t CAN_TxVoltage(uint32_t id, uint8_t dlc, CAN_ENDIANNESS_e endianness, uint8_t *pCanData, uint8_t *pMuxId, const CAN_SHIM_s *const kpkCanShim)
can tx callback function for cell voltages
uint32_t CAN_RxSwReset(uint32_t id, uint8_t dlc, CAN_ENDIANNESS_e endianness, const uint8_t *const kpkCanData, const CAN_SHIM_s *const kpkCanShim)
can rx callback function for SW reset
uint32_t CAN_RxDebug(uint32_t id, uint8_t dlc, CAN_ENDIANNESS_e endianness, const uint8_t *const kpkCanData, const CAN_SHIM_s *const kpkCanShim)
can rx callback function for debug messages
uint32_t CAN_TxStringState(uint32_t id, uint8_t dlc, CAN_ENDIANNESS_e endianness, uint8_t *pCanData, uint8_t *pMuxId, const CAN_SHIM_s *const kpkCanShim)
can tx callback function for string state values
uint32_t CAN_TxStringMinimumMaximumValues(uint32_t id, uint8_t dlc, CAN_ENDIANNESS_e endianness, uint8_t *pCanData, uint8_t *pMuxId, const CAN_SHIM_s *const kpkCanShim)
can tx callback function for string minimum and maximum values
uint32_t CAN_TxStringValues(uint32_t id, uint8_t dlc, CAN_ENDIANNESS_e endianness, uint8_t *pCanData, uint8_t *pMuxId, const CAN_SHIM_s *const kpkCanShim)
can tx callback function for string values
uint32_t CAN_RxImdInfo(uint32_t id, uint8_t dlc, CAN_ENDIANNESS_e endianness, const uint8_t *const kpkCanData, const CAN_SHIM_s *const kpkCanShim)
can rx callback function for IMD info messages
uint32_t CAN_TxLimitValues(uint32_t id, uint8_t dlc, CAN_ENDIANNESS_e endianness, uint8_t *pCanData, uint8_t *pMuxId, const CAN_SHIM_s *const kpkCanShim)
can tx callback function for limit values
uint32_t CAN_TxStringStateEstimation(uint32_t id, uint8_t dlc, CAN_ENDIANNESS_e endianness, uint8_t *pCanData, uint8_t *pMuxId, const CAN_SHIM_s *const kpkCanShim)
can tx callback function for string state estimation
uint32_t CAN_TxState(uint32_t id, uint8_t dlc, CAN_ENDIANNESS_e endianness, uint8_t *pCanData, uint8_t *pMuxId, const CAN_SHIM_s *const kpkCanShim)
can tx callback function for state
static uint8_t can_stringValues2Mux
Definition: can_cfg.c:79
static DATA_BLOCK_CELL_VOLTAGE_s can_tableCellVoltages
Definition: can_cfg.c:351
const CAN_MSG_RX_TYPE_s can_rxMessages[]
Definition: can_cfg.c:201
static DATA_BLOCK_ERRORSTATE_s can_tableErrorState
Definition: can_cfg.c:360
static DATA_BLOCK_MSL_FLAG_s can_tableMslFlags
Definition: can_cfg.c:363
static DATA_BLOCK_MIN_MAX_s can_tableMinimumMaximumValues
Definition: can_cfg.c:353
static DATA_BLOCK_OPEN_WIRE_s can_tableOpenWire
Definition: can_cfg.c:355
const uint8_t can_txLength
Definition: can_cfg.c:345
static uint8_t can_stringValuesMux
Definition: can_cfg.c:76
static uint8_t can_stringStateMux
Definition: can_cfg.c:75
static DATA_BLOCK_PACK_VALUES_s can_tablePackValues
Definition: can_cfg.c:357
static uint8_t can_stringStateEstimationMux
Definition: can_cfg.c:78
static DATA_BLOCK_MOL_FLAG_s can_tableMolFlags
Definition: can_cfg.c:365
const CAN_MSG_TX_TYPE_s can_txMessages[]
Definition: can_cfg.c:89
static uint8_t can_stringMinMaxMux
Definition: can_cfg.c:77
const CAN_SHIM_s can_kShim
Definition: can_cfg.c:368
static DATA_BLOCK_CELL_TEMPERATURE_s can_tableTemperatures
Definition: can_cfg.c:352
static DATA_BLOCK_SOX_s can_tableSox
Definition: can_cfg.c:359
static DATA_BLOCK_RSL_FLAG_s can_tableRslFlags
Definition: can_cfg.c:364
static uint8_t can_temperatureMux
Definition: can_cfg.c:74
const uint8_t can_rxLength
Definition: can_cfg.c:346
static DATA_BLOCK_INSULATION_MONITORING_s can_tableInsulation
Definition: can_cfg.c:361
static DATA_BLOCK_SOF_s can_tableSof
Definition: can_cfg.c:358
static uint8_t can_voltageMux
Definition: can_cfg.c:73
static DATA_BLOCK_STATEREQUEST_s can_tableStateRequest
Definition: can_cfg.c:356
static DATA_BLOCK_CURRENT_SENSOR_s can_tableCurrentSensor
Definition: can_cfg.c:354
Headers for the configuration for the CAN module.
#define CAN_ID_DEBUG
Definition: can_cfg.h:200
#define CAN_ID_IMD_INFO
Definition: can_cfg.h:212
#define CAN_TX_STRING_VALUES_PERIOD_MS
Definition: can_cfg.h:166
#define CAN_ID_STRING1_VOLTAGE1
Definition: can_cfg.h:231
#define CAN_ID_STRING0_CURRENT
Definition: can_cfg.h:220
#define CAN_ID_STRING2_TEMPERATURE
Definition: can_cfg.h:244
#define CAN_TX_PACK_STATE_ESTIMATION_PERIOD_MS
Definition: can_cfg.h:143
#define CAN_TX_STRING_MINIMUM_MAXIMUM_PERIOD_MS
Definition: can_cfg.h:173
#define CAN_TX_STRING_STATE_ESTIMATION_PERIOD_MS
Definition: can_cfg.h:180
#define CAN_TX_TEMPERATURES_PERIOD_MS
Definition: can_cfg.h:122
#define CAN_ID_TX_STRING_STATE
Definition: can_cfg.h:157
@ CAN_LITTLE_ENDIAN
Definition: can_cfg.h:299
@ CAN_BIG_ENDIAN
Definition: can_cfg.h:300
#define CAN_ID_IMD_RESPONSE
Definition: can_cfg.h:216
#define CAN_TX_LIMIT_VALUES_PERIOD_MS
Definition: can_cfg.h:129
#define CAN_ID_STRING2_VOLTAGE2
Definition: can_cfg.h:242
#define CAN_TX_STRING_STATE_PERIOD_MS
Definition: can_cfg.h:159
#define CAN_ID_STRING1_TEMPERATURE
Definition: can_cfg.h:234
#define CAN_ID_STRING2_CURRENT_COUNTER
Definition: can_cfg.h:246
#define CAN_ID_TX_VOLTAGES
Definition: can_cfg.h:113
#define CAN_ID_TX_STRING_VALUES_2
Definition: can_cfg.h:185
#define CAN_ID_TX_LIMIT_VALUES
Definition: can_cfg.h:127
#define CAN_ID_STRING0_CURRENT_COUNTER
Definition: can_cfg.h:226
#define CAN_ID_STRING0_TEMPERATURE
Definition: can_cfg.h:224
#define CAN_ID_TX_PACK_STATE_ESTIMATION
Definition: can_cfg.h:141
#define CAN_TX_STRING_MINIMUM_MAXIMUM_PHASE_MS
Definition: can_cfg.h:175
#define CAN_ID_COMMAND
Definition: can_cfg.h:197
#define CAN_TX_MINIMUM_MAXIMUM_VALUES_PERIOD_MS
Definition: can_cfg.h:136
#define CAN_TX_STRING_STATE_PHASE_MS
Definition: can_cfg.h:161
#define CAN_ID_TX_MINIMUM_MAXIMUM_VALUES
Definition: can_cfg.h:134
#define CAN_ID_STRING0_VOLTAGE3
Definition: can_cfg.h:223
#define CAN_TX_STRING_STATE_ESTIMATION_PHASE_MS
Definition: can_cfg.h:182
#define CAN_DLC
Definition: can_cfg.h:91
#define CAN_ID_TX_TEMPERATURES
Definition: can_cfg.h:120
#define CAN_TX_STATE_PHASE_MS
Definition: can_cfg.h:104
#define CAN_ID_SW_VERSION
Definition: can_cfg.h:203
#define CAN_ID_STRING1_VOLTAGE3
Definition: can_cfg.h:233
#define CAN_TX_VOLTAGES_PHASE_MS
Definition: can_cfg.h:117
#define CAN_TX_TEMPERATURES_PHASE_MS
Definition: can_cfg.h:124
#define CAN_TX_STATE_PERIOD_MS
Definition: can_cfg.h:102
#define CAN_ID_STRING1_CURRENT_COUNTER
Definition: can_cfg.h:236
#define CAN_ID_STRING1_ENERGY_COUNTER
Definition: can_cfg.h:237
#define CAN_ID_STRING0_VOLTAGE2
Definition: can_cfg.h:222
#define CAN_ID_TX_STRING_MINIMUM_MAXIMUM
Definition: can_cfg.h:171
#define CAN_TX_LIMIT_VALUES_PHASE_MS
Definition: can_cfg.h:131
#define CAN_ID_TX_STATE
Definition: can_cfg.h:100
#define CAN_TX_STRING_VALUES_2_PERIOD_MS
Definition: can_cfg.h:187
#define CAN_ID_STRING2_VOLTAGE1
Definition: can_cfg.h:241
#define CAN_ID_STRING1_CURRENT
Definition: can_cfg.h:230
#define CAN1_NODE
Definition: can_cfg.h:71
#define CAN_ID_SOFTWARE_RESET
Definition: can_cfg.h:194
#define CAN_ID_STRING2_ENERGY_COUNTER
Definition: can_cfg.h:247
#define CAN_TX_DETAIL_STATE_PERIOD_MS
Definition: can_cfg.h:108
#define CAN_ID_TX_STRING_STATE_ESTIMATION
Definition: can_cfg.h:178
#define CAN_ID_STRING2_POWER
Definition: can_cfg.h:245
#define CAN_ID_STRING1_VOLTAGE2
Definition: can_cfg.h:232
#define CAN_TX_MINIMUM_MAXIMUM_VALUES_PHASE_MS
Definition: can_cfg.h:138
#define CAN_TX_STRING_VALUES_2_PHASE_MS
Definition: can_cfg.h:189
#define CAN_TX_DETAIL_STATE_PHASE_MS
Definition: can_cfg.h:110
#define CAN_ID_STRING2_VOLTAGE3
Definition: can_cfg.h:243
#define CAN_ID_STRING0_VOLTAGE1
Definition: can_cfg.h:221
#define CAN_TX_STRING_VALUES_PHASE_MS
Definition: can_cfg.h:168
#define CAN_TX_PACK_VALUES_PERIOD_MS
Definition: can_cfg.h:150
#define CAN_TX_PACK_VALUES_PHASE_MS
Definition: can_cfg.h:152
#define CAN_ID_STRING0_POWER
Definition: can_cfg.h:225
#define CAN_TX_PACK_STATE_ESTIMATION_PHASE_MS
Definition: can_cfg.h:145
#define CAN_ID_STRING1_POWER
Definition: can_cfg.h:235
#define CAN_ID_STRING2_CURRENT
Definition: can_cfg.h:240
#define CAN_TX_VOLTAGES_PERIOD_MS
Definition: can_cfg.h:115
#define CAN_ID_STRING0_ENERGY_COUNTER
Definition: can_cfg.h:227
#define CAN_ID_TX_DETAIL_STATE
Definition: can_cfg.h:106
#define CAN_ID_TX_STRING_VALUES
Definition: can_cfg.h:164
#define CAN_ID_TX_PACK_VALUES
Definition: can_cfg.h:148
Database module header.
@ DATA_BLOCK_ID_MIN_MAX
Definition: database_cfg.h:78
@ DATA_BLOCK_ID_SOX
Definition: database_cfg.h:94
@ DATA_BLOCK_ID_RSL_FLAG
Definition: database_cfg.h:92
@ DATA_BLOCK_ID_INSULATION_MONITORING
Definition: database_cfg.h:104
@ DATA_BLOCK_ID_CELL_VOLTAGE
Definition: database_cfg.h:76
@ DATA_BLOCK_ID_CURRENT_SENSOR
Definition: database_cfg.h:79
@ DATA_BLOCK_ID_OPEN_WIRE_BASE
Definition: database_cfg.h:84
@ DATA_BLOCK_ID_SOF
Definition: database_cfg.h:89
@ DATA_BLOCK_ID_MSL_FLAG
Definition: database_cfg.h:91
@ DATA_BLOCK_ID_ERRORSTATE
Definition: database_cfg.h:86
@ DATA_BLOCK_ID_PACK_VALUES
Definition: database_cfg.h:105
@ DATA_BLOCK_ID_MOL_FLAG
Definition: database_cfg.h:93
@ DATA_BLOCK_ID_CELL_TEMPERATURE
Definition: database_cfg.h:77
@ DATA_BLOCK_ID_STATEREQUEST
Definition: database_cfg.h:95
#define NULL_PTR
Null pointer.
Definition: fstd_types.h:76
Header of task driver implementation.
QueueHandle_t ftsk_imdCanDataQueue
OS_QUEUE * pQueueImd
Definition: can_cfg.h:312
DATA_BLOCK_HEADER_s header
Definition: database_cfg.h:146
DATA_BLOCK_HEADER_s header
Definition: database_cfg.h:129
DATA_BLOCK_HEADER_s header
Definition: database_cfg.h:211
DATA_BLOCK_HEADER_s header
Definition: database_cfg.h:329
DATA_BLOCK_ID_e uniqueId
Definition: database_cfg.h:119
DATA_BLOCK_HEADER_s header
Definition: database_cfg.h:159
DATA_BLOCK_HEADER_s header
Definition: database_cfg.h:492
DATA_BLOCK_HEADER_s header
Definition: database_cfg.h:450
DATA_BLOCK_HEADER_s header
Definition: database_cfg.h:302
DATA_BLOCK_HEADER_s header
Definition: database_cfg.h:187
DATA_BLOCK_HEADER_s header
Definition: database_cfg.h:472
DATA_BLOCK_HEADER_s header
Definition: database_cfg.h:411
DATA_BLOCK_HEADER_s header
Definition: database_cfg.h:512
DATA_BLOCK_HEADER_s header
Definition: database_cfg.h:532