|
foxBMS
1.0.0
The foxBMS Battery Management System API Documentation
|
Go to the documentation of this file.
89 for (uint8_t i = 0; i < numberOfDevices; i++) {
107 uint8_t rxBufferLength,
116 const uint8_t startBytes = 2u;
118 for (uint8_t i = 0; i <= highestConnectedDevice; i++) {
119 uint8_t bufferPosition = startBytes + (i * 2u);
121 FAS_ASSERT((bufferPosition + 1u) <= rxBufferLength);
126 currentDevice->deviceID = id;
129 currentDevice->deviceID = ((uint32_t)
id << 16u) | currentDevice->deviceID;
140 const uint8_t startBytes = 2u;
142 for (uint8_t i = 0; i <= highestConnectedDevice; i++) {
143 uint8_t bufferPosition = startBytes + (i * 2u);
145 FAS_ASSERT((bufferPosition + 1u) <= rxBufferLength);
151 uint16_t version = 0;
void MXM_MonRegistryParseVersionIntoDevices(MXM_MONITORING_INSTANCE_s *pState, uint8_t rxBufferLength)
Parse Version into the registry.
enum MXM_MODEL_ID MXM_MODEL_ID_e
Type of monitoring device.
enum STD_RETURN_TYPE STD_RETURN_TYPE_e
uint8_t rxBuffer[MXM_RX_BUFFER_LENGTH]
MXM_siliconVersion_e siliconVersion
#define MXM_REG_VERSION_VER
Monitoring Register Version/Silicon Version.
#define MXM_MAXIMUM_NR_OF_MODULES
Maximum number of modules.
#define FAS_ASSERT(x)
Assertion macro that asserts that x is true.
void MXM_MonRegistryParseIdIntoDevices(MXM_MONITORING_INSTANCE_s *pState, uint8_t rxBufferLength, MXM_REG_NAME_e type)
Parse ID (1 or 2) into the registry.
uint8_t MXM_MonRegistryGetHighestConnected5XDevice(MXM_MONITORING_INSTANCE_s *pState)
Parse number of highest connected device from monitoring- register.
STD_RETURN_TYPE_e MXM_MonRegistryConnectDevices(MXM_MONITORING_INSTANCE_s *pState, uint8_t numberOfDevices)
Mark devices as connected in the registry and set the address.
enum MXM_siliconVersion MXM_siliconVersion_e
enum MXM_REG_NAME MXM_REG_NAME_e
MAX1785x register names.
void MXM_MonRegistryInit(MXM_MONITORING_INSTANCE_s *pState)
Initialize monitoring registry.
#define HELLOALL_START_SEED
#define NULL_PTR
Null pointer.
#define MXM_REG_VERSION_MOD
Monitoring Register Version/Model.
Functions in order to have a registry of monitoring ICs.
#define MXM_BM_WHOLE_REG
All bits of monitoring register.
MXM_REGISTRY_ENTRY_s registry[MXM_MAXIMUM_NR_OF_MODULES]