88 for (uint8_t i = 0; i < numberOfDevices; i++) {
106 uint8_t rxBufferLength,
115 const uint8_t startBytes = 2u;
117 for (uint8_t i = 0; i <= highestConnectedDevice; i++) {
118 uint8_t bufferPosition = startBytes + (i * 2u);
120 FAS_ASSERT((bufferPosition + 1u) <= rxBufferLength);
125 currentDevice->deviceID = id;
128 currentDevice->deviceID = ((uint32_t)
id << 16u) | currentDevice->deviceID;
139 for (uint8_t i = 0; i <= highestConnectedDevice; i++) {
140 const uint8_t startBytes = 2u;
141 uint8_t bufferPosition = startBytes + (i * 2u);
143 FAS_ASSERT((bufferPosition + 1u) <= rxBufferLength);
149 uint16_t version = 0;
#define FAS_ASSERT(x)
Assertion macro that asserts that x is true.
#define NULL_PTR
Null pointer.
enum STD_RETURN_TYPE STD_RETURN_TYPE_e
#define MXM_BM_WHOLE_REG
All bits of monitoring register.
#define MXM_REG_VERSION_VER
Monitoring Register Version/Silicon Version.
#define MXM_REG_VERSION_MOD
Monitoring Register Version/Model.
enum MXM_MODEL_ID MXM_MODEL_ID_e
Type of monitoring device.
enum MXM_siliconVersion MXM_siliconVersion_e
#define MXM_MAXIMUM_NR_OF_MODULES
Maximum number of modules.
#define HELLOALL_START_SEED
enum MXM_REG_NAME MXM_REG_NAME_e
MAX1785x register names.
void MXM_MonRegistryParseIdIntoDevices(MXM_MONITORING_INSTANCE_s *pState, uint8_t rxBufferLength, MXM_REG_NAME_e type)
Parse ID (1 or 2) into the registry.
void MXM_MonRegistryInit(MXM_MONITORING_INSTANCE_s *pState)
Initialize monitoring registry.
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.
uint8_t MXM_MonRegistryGetHighestConnected5XDevice(const MXM_MONITORING_INSTANCE_s *const kpkState)
Parse number of highest connected device from monitoring- register.
void MXM_MonRegistryParseVersionIntoDevices(MXM_MONITORING_INSTANCE_s *pState, uint8_t rxBufferLength)
Parse Version into the registry.
Functions in order to have a registry of monitoring ICs.
uint8_t rxBuffer[MXM_RX_BUFFER_LENGTH]
MXM_REGISTRY_ENTRY_s registry[MXM_MAXIMUM_NR_OF_MODULES]
MXM_siliconVersion_e siliconVersion