foxBMS - Unit Tests  1.4.1
The foxBMS Unit Tests API Documentation
can_cfg_rx-message-definitions.h File Reference

Header for the driver for the CAN module. More...

#include "can_cfg.h"
Include dependency graph for can_cfg_rx-message-definitions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CANRX_NOT_PERIODIC   (0u)
 
#define CANRX_SOFTWARE_RESET_ID   (0x95u)
 
#define CANRX_SOFTWARE_RESET_PERIOD_ms   (CANRX_NOT_PERIODIC)
 
#define CANRX_BMS_STATE_REQUEST_ID   (0x230u)
 
#define CANRX_BMS_STATE_REQUEST_PERIOD_ms   (CANRX_NOT_PERIODIC)
 
#define CANRX_DEBUG_ID   (0x200u)
 
#define CANRX_DEBUG_PERIOD_ms   (CANRX_NOT_PERIODIC)
 
#define CANRX_SOFTWARE_VERSION_ID   (0x777u)
 
#define CANRX_SOFTWARE_VERSION_PERIOD_ms   (CANRX_NOT_PERIODIC)
 
#define CANRX_IMD_INFO_ID   (0x37u)
 
#define CANRX_IMD_REQUEST_ID   (0x22u)
 
#define CANRX_IMD_RESPONSE_ID   (0x23u)
 
#define CANRX_CURRENT_SENSOR_MESSAGES_DLC   (6u)
 
#define CANRX_DEBUG_MESSAGE
 
#define CANRX_SOFTWARE_VERSION_MESSAGE
 
#define CANRX_IMD_INFO_MESSAGE
 
#define CANRX_IMD_RESPONSE_MESSAGE
 
#define CANRX_BMS_STATE_REQUEST_MESSAGE
 
#define CANRX_SOFTWARE_RESET_MESSAGE
 
#define CANRX_STRING0_CURRENT_MESSAGE
 
#define CANRX_STRING0_VOLTAGE1_MESSAGE
 
#define CANRX_STRING0_VOLTAGE2_MESSAGE
 
#define CANRX_STRING0_VOLTAGE3_MESSAGE
 
#define CANRX_STRING0_TEMPERATURE_MESSAGE
 
#define CANRX_STRING0_POWER_MESSAGE
 
#define CANRX_STRING0_CURRENT_COUNTER_MESSAGE
 
#define CANRX_STRING0_ENERGY_COUNTER_MESSAGE
 
#define CANRX_STRING0_CURRENT_ID   (0x521u)
 
#define CANRX_STRING0_CURRENT_PERIOD_ms   (CANRX_NOT_PERIODIC)
 
#define CANRX_STRING0_VOLTAGE1_ID   (0x522u)
 
#define CANRX_STRING0_VOLTAGE1_PERIOD_ms   (CANRX_NOT_PERIODIC)
 
#define CANRX_STRING0_VOLTAGE2_ID   (0x523u)
 
#define CANRX_STRING0_VOLTAGE2_PERIOD_ms   (CANRX_NOT_PERIODIC)
 
#define CANRX_STRING0_VOLTAGE3_ID   (0x524u)
 
#define CANRX_STRING0_VOLTAGE3_PERIOD_ms   (CANRX_NOT_PERIODIC)
 
#define CANRX_STRING0_TEMPERATURE_ID   (0x525u)
 
#define CANRX_STRING0_TEMPERATURE_PERIOD_ms   (CANRX_NOT_PERIODIC)
 
#define CANRX_STRING0_POWER_ID   (0x526u)
 
#define CANRX_STRING0_POWER_PERIOD_ms   (CANRX_NOT_PERIODIC)
 
#define CANRX_STRING0_CURRENT_COUNTER_ID   (0x527u)
 
#define CANRX_STRING0_CURRENT_COUNTER_PERIOD_ms   (CANRX_NOT_PERIODIC)
 
#define CANRX_STRING0_ENERGY_COUNTER_ID   (0x528u)
 
#define CANRX_STRING0_ENERGY_COUNTER_PERIOD_ms   (CANRX_NOT_PERIODIC)
 

Detailed Description

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:

  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
2022-07-01 (date of creation)
Updated
2022-10-27 (date of last update)
Version
v1.4.1
Prefix
CANRX

Definition in file can_cfg_rx-message-definitions.h.

Macro Definition Documentation

◆ CANRX_BMS_STATE_REQUEST_ID

#define CANRX_BMS_STATE_REQUEST_ID   (0x230u)

CAN message ID to perform a state request

Definition at line 72 of file can_cfg_rx-message-definitions.h.

◆ CANRX_BMS_STATE_REQUEST_MESSAGE

#define CANRX_BMS_STATE_REQUEST_MESSAGE
Value:
{ \
.dlc = CAN_DEFAULT_DLC, \
.endianness = CAN_BIG_ENDIAN, \
}, \
{ \
}
@ CAN_BIG_ENDIAN
Definition: can_cfg.h:148
#define CAN_DEFAULT_DLC
Definition: can_cfg.h:93
#define CANRX_BMS_STATE_REQUEST_PERIOD_ms
#define CANRX_BMS_STATE_REQUEST_ID

Definition at line 168 of file can_cfg_rx-message-definitions.h.

◆ CANRX_BMS_STATE_REQUEST_PERIOD_ms

#define CANRX_BMS_STATE_REQUEST_PERIOD_ms   (CANRX_NOT_PERIODIC)

Periodicity of CAN software reset messages in ms

Definition at line 74 of file can_cfg_rx-message-definitions.h.

◆ CANRX_CURRENT_SENSOR_MESSAGES_DLC

#define CANRX_CURRENT_SENSOR_MESSAGES_DLC   (6u)

The Isabellenhuette current sensors use a data length code of 6

Definition at line 120 of file can_cfg_rx-message-definitions.h.

◆ CANRX_DEBUG_ID

#define CANRX_DEBUG_ID   (0x200u)

CAN message ID for debug message

Definition at line 77 of file can_cfg_rx-message-definitions.h.

◆ CANRX_DEBUG_MESSAGE

#define CANRX_DEBUG_MESSAGE
Value:
{ \
.id = CANRX_DEBUG_ID, \
.dlc = CAN_DEFAULT_DLC, \
.endianness = CAN_LITTLE_ENDIAN, \
}, \
{ \
}
@ CAN_LITTLE_ENDIAN
Definition: can_cfg.h:147
#define CANRX_DEBUG_ID
#define CANRX_DEBUG_PERIOD_ms

Definition at line 128 of file can_cfg_rx-message-definitions.h.

◆ CANRX_DEBUG_PERIOD_ms

#define CANRX_DEBUG_PERIOD_ms   (CANRX_NOT_PERIODIC)

Periodicity of CAN software reset messages in ms

Definition at line 79 of file can_cfg_rx-message-definitions.h.

◆ CANRX_IMD_INFO_ID

#define CANRX_IMD_INFO_ID   (0x37u)

----------------------—CAUTION----------------------— The 3 following defines are used by the insulation monitoring device (IMD). If they are changed, the IMD will not work anymore ----------------------—CAUTION----------------------— CAN message ID for info message from iso165c

Definition at line 93 of file can_cfg_rx-message-definitions.h.

◆ CANRX_IMD_INFO_MESSAGE

#define CANRX_IMD_INFO_MESSAGE
Value:
{ \
.dlc = CAN_DEFAULT_DLC, \
.endianness = CAN_LITTLE_ENDIAN, \
}, \
{ \
.period = CANRX_NOT_PERIODIC \
}
#define CANRX_IMD_INFO_ID
#define CANRX_NOT_PERIODIC

Definition at line 148 of file can_cfg_rx-message-definitions.h.

◆ CANRX_IMD_REQUEST_ID

#define CANRX_IMD_REQUEST_ID   (0x22u)

CAN message ID for request message to iso165c

Definition at line 95 of file can_cfg_rx-message-definitions.h.

◆ CANRX_IMD_RESPONSE_ID

#define CANRX_IMD_RESPONSE_ID   (0x23u)

CAN message ID for response message from iso165c

Definition at line 97 of file can_cfg_rx-message-definitions.h.

◆ CANRX_IMD_RESPONSE_MESSAGE

#define CANRX_IMD_RESPONSE_MESSAGE
Value:
{ \
.dlc = CAN_DEFAULT_DLC, \
.endianness = CAN_LITTLE_ENDIAN, \
}, \
{ \
.period = CANRX_NOT_PERIODIC \
}
#define CANRX_IMD_RESPONSE_ID

Definition at line 158 of file can_cfg_rx-message-definitions.h.

◆ CANRX_NOT_PERIODIC

#define CANRX_NOT_PERIODIC   (0u)

Definition at line 62 of file can_cfg_rx-message-definitions.h.

◆ CANRX_SOFTWARE_RESET_ID

#define CANRX_SOFTWARE_RESET_ID   (0x95u)

CAN message ID to perform a software reset

Definition at line 67 of file can_cfg_rx-message-definitions.h.

◆ CANRX_SOFTWARE_RESET_MESSAGE

#define CANRX_SOFTWARE_RESET_MESSAGE
Value:
{ \
.dlc = CAN_DEFAULT_DLC, \
.endianness = CAN_LITTLE_ENDIAN, \
}, \
{ \
}
#define CANRX_SOFTWARE_RESET_PERIOD_ms
#define CANRX_SOFTWARE_RESET_ID

Definition at line 178 of file can_cfg_rx-message-definitions.h.

◆ CANRX_SOFTWARE_RESET_PERIOD_ms

#define CANRX_SOFTWARE_RESET_PERIOD_ms   (CANRX_NOT_PERIODIC)

Periodicity of CAN software reset messages in ms

Definition at line 69 of file can_cfg_rx-message-definitions.h.

◆ CANRX_SOFTWARE_VERSION_ID

#define CANRX_SOFTWARE_VERSION_ID   (0x777u)

CAN message ID to get software version

Definition at line 82 of file can_cfg_rx-message-definitions.h.

◆ CANRX_SOFTWARE_VERSION_MESSAGE

#define CANRX_SOFTWARE_VERSION_MESSAGE
Value:
{ \
.dlc = CAN_DEFAULT_DLC, \
.endianness = CAN_LITTLE_ENDIAN, \
}, \
{ \
}
#define CANRX_SOFTWARE_VERSION_ID
#define CANRX_SOFTWARE_VERSION_PERIOD_ms

Definition at line 138 of file can_cfg_rx-message-definitions.h.

◆ CANRX_SOFTWARE_VERSION_PERIOD_ms

#define CANRX_SOFTWARE_VERSION_PERIOD_ms   (CANRX_NOT_PERIODIC)

Periodicity of CAN ID to get the software version in ms

Definition at line 84 of file can_cfg_rx-message-definitions.h.

◆ CANRX_STRING0_CURRENT_COUNTER_ID

#define CANRX_STRING0_CURRENT_COUNTER_ID   (0x527u)

IDs for the messages from the current sensors String 0

Definition at line 113 of file can_cfg_rx-message-definitions.h.

◆ CANRX_STRING0_CURRENT_COUNTER_MESSAGE

#define CANRX_STRING0_CURRENT_COUNTER_MESSAGE
Value:
{ \
.endianness = CAN_BIG_ENDIAN, \
}, \
{ \
}
#define CANRX_STRING0_CURRENT_COUNTER_ID
#define CANRX_CURRENT_SENSOR_MESSAGES_DLC
#define CANRX_STRING0_CURRENT_COUNTER_PERIOD_ms

Definition at line 248 of file can_cfg_rx-message-definitions.h.

◆ CANRX_STRING0_CURRENT_COUNTER_PERIOD_ms

#define CANRX_STRING0_CURRENT_COUNTER_PERIOD_ms   (CANRX_NOT_PERIODIC)

IDs for the messages from the current sensors String 0

Definition at line 114 of file can_cfg_rx-message-definitions.h.

◆ CANRX_STRING0_CURRENT_ID

#define CANRX_STRING0_CURRENT_ID   (0x521u)

IDs for the messages from the current sensors String 0

Definition at line 101 of file can_cfg_rx-message-definitions.h.

◆ CANRX_STRING0_CURRENT_MESSAGE

#define CANRX_STRING0_CURRENT_MESSAGE
Value:
{ \
.endianness = CAN_BIG_ENDIAN, \
}, \
{ \
}
#define CANRX_STRING0_CURRENT_PERIOD_ms
#define CANRX_STRING0_CURRENT_ID

Definition at line 188 of file can_cfg_rx-message-definitions.h.

◆ CANRX_STRING0_CURRENT_PERIOD_ms

#define CANRX_STRING0_CURRENT_PERIOD_ms   (CANRX_NOT_PERIODIC)

IDs for the messages from the current sensors String 0

Definition at line 102 of file can_cfg_rx-message-definitions.h.

◆ CANRX_STRING0_ENERGY_COUNTER_ID

#define CANRX_STRING0_ENERGY_COUNTER_ID   (0x528u)

IDs for the messages from the current sensors String 0

Definition at line 115 of file can_cfg_rx-message-definitions.h.

◆ CANRX_STRING0_ENERGY_COUNTER_MESSAGE

#define CANRX_STRING0_ENERGY_COUNTER_MESSAGE
Value:
{ \
.endianness = CAN_BIG_ENDIAN, \
}, \
{ \
}
#define CANRX_STRING0_ENERGY_COUNTER_ID
#define CANRX_STRING0_ENERGY_COUNTER_PERIOD_ms

Definition at line 258 of file can_cfg_rx-message-definitions.h.

◆ CANRX_STRING0_ENERGY_COUNTER_PERIOD_ms

#define CANRX_STRING0_ENERGY_COUNTER_PERIOD_ms   (CANRX_NOT_PERIODIC)

IDs for the messages from the current sensors String 0

Definition at line 116 of file can_cfg_rx-message-definitions.h.

◆ CANRX_STRING0_POWER_ID

#define CANRX_STRING0_POWER_ID   (0x526u)

IDs for the messages from the current sensors String 0

Definition at line 111 of file can_cfg_rx-message-definitions.h.

◆ CANRX_STRING0_POWER_MESSAGE

#define CANRX_STRING0_POWER_MESSAGE
Value:
{ \
.endianness = CAN_BIG_ENDIAN, \
}, \
{ \
}
#define CANRX_STRING0_POWER_ID
#define CANRX_STRING0_POWER_PERIOD_ms

Definition at line 238 of file can_cfg_rx-message-definitions.h.

◆ CANRX_STRING0_POWER_PERIOD_ms

#define CANRX_STRING0_POWER_PERIOD_ms   (CANRX_NOT_PERIODIC)

IDs for the messages from the current sensors String 0

Definition at line 112 of file can_cfg_rx-message-definitions.h.

◆ CANRX_STRING0_TEMPERATURE_ID

#define CANRX_STRING0_TEMPERATURE_ID   (0x525u)

IDs for the messages from the current sensors String 0

Definition at line 109 of file can_cfg_rx-message-definitions.h.

◆ CANRX_STRING0_TEMPERATURE_MESSAGE

#define CANRX_STRING0_TEMPERATURE_MESSAGE
Value:
{ \
.endianness = CAN_BIG_ENDIAN, \
}, \
{ \
}
#define CANRX_STRING0_TEMPERATURE_PERIOD_ms
#define CANRX_STRING0_TEMPERATURE_ID

Definition at line 228 of file can_cfg_rx-message-definitions.h.

◆ CANRX_STRING0_TEMPERATURE_PERIOD_ms

#define CANRX_STRING0_TEMPERATURE_PERIOD_ms   (CANRX_NOT_PERIODIC)

IDs for the messages from the current sensors String 0

Definition at line 110 of file can_cfg_rx-message-definitions.h.

◆ CANRX_STRING0_VOLTAGE1_ID

#define CANRX_STRING0_VOLTAGE1_ID   (0x522u)

IDs for the messages from the current sensors String 0

Definition at line 103 of file can_cfg_rx-message-definitions.h.

◆ CANRX_STRING0_VOLTAGE1_MESSAGE

#define CANRX_STRING0_VOLTAGE1_MESSAGE
Value:
{ \
.endianness = CAN_BIG_ENDIAN, \
}, \
{ \
}
#define CANRX_STRING0_VOLTAGE1_ID
#define CANRX_STRING0_VOLTAGE1_PERIOD_ms

Definition at line 198 of file can_cfg_rx-message-definitions.h.

◆ CANRX_STRING0_VOLTAGE1_PERIOD_ms

#define CANRX_STRING0_VOLTAGE1_PERIOD_ms   (CANRX_NOT_PERIODIC)

IDs for the messages from the current sensors String 0

Definition at line 104 of file can_cfg_rx-message-definitions.h.

◆ CANRX_STRING0_VOLTAGE2_ID

#define CANRX_STRING0_VOLTAGE2_ID   (0x523u)

IDs for the messages from the current sensors String 0

Definition at line 105 of file can_cfg_rx-message-definitions.h.

◆ CANRX_STRING0_VOLTAGE2_MESSAGE

#define CANRX_STRING0_VOLTAGE2_MESSAGE
Value:
{ \
.endianness = CAN_BIG_ENDIAN, \
}, \
{ \
}
#define CANRX_STRING0_VOLTAGE2_ID
#define CANRX_STRING0_VOLTAGE2_PERIOD_ms

Definition at line 208 of file can_cfg_rx-message-definitions.h.

◆ CANRX_STRING0_VOLTAGE2_PERIOD_ms

#define CANRX_STRING0_VOLTAGE2_PERIOD_ms   (CANRX_NOT_PERIODIC)

IDs for the messages from the current sensors String 0

Definition at line 106 of file can_cfg_rx-message-definitions.h.

◆ CANRX_STRING0_VOLTAGE3_ID

#define CANRX_STRING0_VOLTAGE3_ID   (0x524u)

IDs for the messages from the current sensors String 0

Definition at line 107 of file can_cfg_rx-message-definitions.h.

◆ CANRX_STRING0_VOLTAGE3_MESSAGE

#define CANRX_STRING0_VOLTAGE3_MESSAGE
Value:
{ \
.endianness = CAN_BIG_ENDIAN, \
}, \
{ \
}
#define CANRX_STRING0_VOLTAGE3_PERIOD_ms
#define CANRX_STRING0_VOLTAGE3_ID

Definition at line 218 of file can_cfg_rx-message-definitions.h.

◆ CANRX_STRING0_VOLTAGE3_PERIOD_ms

#define CANRX_STRING0_VOLTAGE3_PERIOD_ms   (CANRX_NOT_PERIODIC)

IDs for the messages from the current sensors String 0

Definition at line 108 of file can_cfg_rx-message-definitions.h.