foxBMS
1.4.1
The foxBMS Battery Management System API Documentation
|
Header for the driver for the CAN module. More...
#include "can_cfg.h"
Go to the source code of this file.
Header for the driver for the CAN module.
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 can_cfg_tx-message-definitions.h.
#define CANTX_BMS_STATE_DETAILS_ID (0x226u) |
CAN message ID to send detail state
Definition at line 88 of file can_cfg_tx-message-definitions.h.
#define CANTX_BMS_STATE_DETAILS_MESSAGE |
Definition at line 189 of file can_cfg_tx-message-definitions.h.
#define CANTX_BMS_STATE_DETAILS_PERIOD_ms (1000u) |
Periodicity of CAN detail state messages in ms
Definition at line 90 of file can_cfg_tx-message-definitions.h.
#define CANTX_BMS_STATE_DETAILS_PHASE_ms (100u) |
Phase of CAN detail state messages in ms
Definition at line 92 of file can_cfg_tx-message-definitions.h.
#define CANTX_BMS_STATE_ID (0x220u) |
CAN message ID to send state
Definition at line 81 of file can_cfg_tx-message-definitions.h.
#define CANTX_BMS_STATE_MESSAGE |
Definition at line 179 of file can_cfg_tx-message-definitions.h.
#define CANTX_BMS_STATE_PERIOD_ms (100u) |
Periodicity of CAN state messages in ms
Definition at line 83 of file can_cfg_tx-message-definitions.h.
#define CANTX_BMS_STATE_PHASE_ms (0u) |
Phase of CAN state messages in ms
Definition at line 85 of file can_cfg_tx-message-definitions.h.
#define CANTX_BOOT_ID (0x199u) /* check_ids silence: CANTX_BOOT_ID */ |
CAN message ID for boot message
Definition at line 67 of file can_cfg_tx-message-definitions.h.
#define CANTX_BOOT_MESSAGE (-1) /* dummy */ |
Definition at line 71 of file can_cfg_tx-message-definitions.h.
#define CANTX_BOOT_PERIOD_ms (CANTX_NOT_PERIODIC) /* dummy */ |
Periodicity of boot messages in ms
Definition at line 69 of file can_cfg_tx-message-definitions.h.
#define CANTX_BOOT_PHASE_ms (0u) /* dummy */ |
Definition at line 70 of file can_cfg_tx-message-definitions.h.
#define CANTX_CELL_TEMPERATURES_ID (0x250u) |
CAN message ID to send temperatures
Definition at line 102 of file can_cfg_tx-message-definitions.h.
#define CANTX_CELL_TEMPERATURES_MESSAGE |
Definition at line 229 of file can_cfg_tx-message-definitions.h.
#define CANTX_CELL_TEMPERATURES_PERIOD_ms (200u) |
Periodicity of CAN temperature messages in ms
Definition at line 104 of file can_cfg_tx-message-definitions.h.
#define CANTX_CELL_TEMPERATURES_PHASE_ms (20u) |
Phase of CAN temperature messages in ms
Definition at line 106 of file can_cfg_tx-message-definitions.h.
#define CANTX_CELL_VOLTAGES_ID (0x240u) |
CAN message ID to send voltages
Definition at line 95 of file can_cfg_tx-message-definitions.h.
#define CANTX_CELL_VOLTAGES_MESSAGE |
Definition at line 199 of file can_cfg_tx-message-definitions.h.
#define CANTX_CELL_VOLTAGES_PERIOD_ms (100u) |
Periodicity of CAN voltage messages in ms
Definition at line 97 of file can_cfg_tx-message-definitions.h.
#define CANTX_CELL_VOLTAGES_PHASE_ms (10u) |
Phase of CAN voltage messages in ms
Definition at line 99 of file can_cfg_tx-message-definitions.h.
#define CANTX_DIE_ID_ID (0x227u) /* mark as dummy but it is not src/app/driver/config/can_cfg_tx_boot-message.c */ |
CAN message ID for die ID message
Definition at line 74 of file can_cfg_tx-message-definitions.h.
#define CANTX_DIE_ID_MESSAGE (-1) /* dummy */ |
Definition at line 78 of file can_cfg_tx-message-definitions.h.
#define CANTX_DIE_ID_PERIOD_ms (CANTX_NOT_PERIODIC) /* dummy */ |
Periodicity of die ID messages in ms
Definition at line 76 of file can_cfg_tx-message-definitions.h.
#define CANTX_DIE_ID_PHASE_ms (0u) /* dummy */ |
Definition at line 77 of file can_cfg_tx-message-definitions.h.
#define CANTX_LIMIT_VALUES_ID (0x224u) |
CAN message ID to send limit values
Definition at line 109 of file can_cfg_tx-message-definitions.h.
#define CANTX_LIMIT_VALUES_MESSAGE |
Definition at line 219 of file can_cfg_tx-message-definitions.h.
#define CANTX_LIMIT_VALUES_PERIOD_ms (100u) |
Periodicity of CAN limit messages in ms
Definition at line 111 of file can_cfg_tx-message-definitions.h.
#define CANTX_LIMIT_VALUES_PHASE_ms (30u) |
Phase of CAN limit messages in ms
Definition at line 113 of file can_cfg_tx-message-definitions.h.
#define CANTX_MINIMUM_MAXIMUM_VALUES_ID (0x223u) |
CAN message ID to send minimum and maximum values
Definition at line 116 of file can_cfg_tx-message-definitions.h.
#define CANTX_MINIMUM_MAXIMUM_VALUES_MESSAGE |
Definition at line 209 of file can_cfg_tx-message-definitions.h.
#define CANTX_MINIMUM_MAXIMUM_VALUES_PERIOD_ms (100u) |
Periodicity of CAN minimum and maximum value messages in ms
Definition at line 118 of file can_cfg_tx-message-definitions.h.
#define CANTX_MINIMUM_MAXIMUM_VALUES_PHASE_ms (40u) |
Phase of CAN minimum and maximum value messages in ms
Definition at line 120 of file can_cfg_tx-message-definitions.h.
#define CANTX_NOT_PERIODIC (0u) |
Definition at line 62 of file can_cfg_tx-message-definitions.h.
#define CANTX_PACK_STATE_ESTIMATION_ID (0x225u) |
CAN message ID to send pack state estimation values
Definition at line 123 of file can_cfg_tx-message-definitions.h.
#define CANTX_PACK_STATE_ESTIMATION_MESSAGE |
Definition at line 239 of file can_cfg_tx-message-definitions.h.
#define CANTX_PACK_STATE_ESTIMATION_PERIOD_ms (1000u) |
Periodicity of CAN pack state estimation messages in ms
Definition at line 125 of file can_cfg_tx-message-definitions.h.
#define CANTX_PACK_STATE_ESTIMATION_PHASE_ms (50u) |
Phase of CAN pack state estimation messages in ms
Definition at line 127 of file can_cfg_tx-message-definitions.h.
#define CANTX_PACK_VALUES_ID (0x222u) |
CAN message ID to send pack values
Definition at line 130 of file can_cfg_tx-message-definitions.h.
#define CANTX_PACK_VALUES_MESSAGE |
Definition at line 249 of file can_cfg_tx-message-definitions.h.
#define CANTX_PACK_VALUES_PERIOD_ms (100u) |
Periodicity of CAN pack values messages in ms
Definition at line 132 of file can_cfg_tx-message-definitions.h.
#define CANTX_PACK_VALUES_PHASE_ms (60u) |
Phase of CAN pack values messages in ms
Definition at line 134 of file can_cfg_tx-message-definitions.h.
#define CANTX_STRING_MIN_MAX_VALUES_ID (0x281u) |
CAN message ID to send string minimum and maximum values
Definition at line 153 of file can_cfg_tx-message-definitions.h.
#define CANTX_STRING_MIN_MAX_VALUES_MESSAGE |
Definition at line 289 of file can_cfg_tx-message-definitions.h.
#define CANTX_STRING_MIN_MAX_VALUES_PERIOD_ms (100u) |
Periodicity of CAN string state messages in ms
Definition at line 155 of file can_cfg_tx-message-definitions.h.
#define CANTX_STRING_MIN_MAX_VALUES_PHASE_ms (90u) |
Phase of CAN string state messages in ms
Definition at line 157 of file can_cfg_tx-message-definitions.h.
#define CANTX_STRING_STATE_ESTIMATION_ID (0x282u) |
CAN message ID to send string minimum and maximum values
Definition at line 160 of file can_cfg_tx-message-definitions.h.
#define CANTX_STRING_STATE_ESTIMATION_MESSAGE |
Definition at line 299 of file can_cfg_tx-message-definitions.h.
#define CANTX_STRING_STATE_ESTIMATION_PERIOD_ms (1000u) |
Periodicity of CAN string state messages in ms
Definition at line 162 of file can_cfg_tx-message-definitions.h.
#define CANTX_STRING_STATE_ESTIMATION_PHASE_ms (0u) |
Phase of CAN string state messages in ms
Definition at line 164 of file can_cfg_tx-message-definitions.h.
#define CANTX_STRING_STATE_ID (0x221u) |
TX messages - string related CAN message ID to send string state
Definition at line 139 of file can_cfg_tx-message-definitions.h.
#define CANTX_STRING_STATE_MESSAGE |
Definition at line 259 of file can_cfg_tx-message-definitions.h.
#define CANTX_STRING_STATE_PERIOD_ms (100u) |
Periodicity of CAN string state messages in ms
Definition at line 141 of file can_cfg_tx-message-definitions.h.
#define CANTX_STRING_STATE_PHASE_ms (70u) |
Phase of CAN string state messages in ms
Definition at line 143 of file can_cfg_tx-message-definitions.h.
#define CANTX_STRING_VALUES_P0_ID (0x280u) |
CAN message ID to send string values
Definition at line 146 of file can_cfg_tx-message-definitions.h.
#define CANTX_STRING_VALUES_P0_MESSAGE |
Definition at line 269 of file can_cfg_tx-message-definitions.h.
#define CANTX_STRING_VALUES_P0_PERIOD_ms (100u) |
Periodicity of CAN string state messages in ms
Definition at line 148 of file can_cfg_tx-message-definitions.h.
#define CANTX_STRING_VALUES_P0_PHASE_ms (80u) |
Phase of CAN string state messages in ms
Definition at line 150 of file can_cfg_tx-message-definitions.h.
#define CANTX_STRING_VALUES_P1_ID (0x283u) |
CAN message ID to send string values 2
Definition at line 167 of file can_cfg_tx-message-definitions.h.
#define CANTX_STRING_VALUES_P1_MESSAGE |
Definition at line 279 of file can_cfg_tx-message-definitions.h.
#define CANTX_STRING_VALUES_P1_PERIOD_ms (100u) |
Periodicity of CAN string state messages in ms
Definition at line 169 of file can_cfg_tx-message-definitions.h.
#define CANTX_STRING_VALUES_P1_PHASE_ms (10u) |
Phase of CAN string state messages in ms
Definition at line 171 of file can_cfg_tx-message-definitions.h.