106 uint16_t storedVoltageIndex = 0u;
110 uint8_t dccRegisterLow = 0u;
111 uint8_t dccRegisterHigh = 0u;
119 dccRegisterLow |= (uint8_t)(1u << c);
143 #ifdef UNITY_UNIT_TEST
void ADI_DeactivateBalancing(ADI_STATE_s *adiState)
Disable balancing.
void ADI_DetermineBalancingRegisterConfiguration(ADI_STATE_s *adiState)
Determines how the balancing registers need to be set.
const uint8_t adi_voltageInputsUsed[ADI_MAX_SUPPORTED_CELLS]
#define ADI_MAX_SUPPORTED_CELLS
Headers for the driver for the ADI analog front-end.
uint8_t adi_configurationRegisterBgroup[BS_NR_OF_STRINGS][BS_NR_OF_MODULES_PER_STRING *ADI_MAX_REGISTER_SIZE_IN_BYTES]
uint16_t adi_command[ADI_COMMAND_DEFINITION_LENGTH]
Header for the buffers used by the driver for the ADI analog front-end.
Header for the configuration for the ADI analog front-end.
const uint16_t adi_cmdUnmute[ADI_COMMAND_DEFINITION_LENGTH]
Header file of some software.
Headers for the driver for the ades183x analog front-end.
#define ADI_CFGRB5_DCC_9_16_MASK
#define ADI_CFGRB4_DCC_1_8_POS
#define ADI_CFGRB4_DCC_1_8_MASK
#define ADI_REGISTER_OFFSET5
#define ADI_CFGRB_NUMBER_OF_DCC_BITS_PER_BYTE
#define ADI_CFGRB5_DCC_9_16_POS
#define ADI_REGISTER_OFFSET4
void ADI_WriteDataBits(uint8_t *pSentData, uint8_t dataToWrite, uint8_t position, uint8_t mask)
Helper function to write specific bits in data to be sent.
void ADI_StoredConfigurationWriteToAfeGlobal(ADI_STATE_s *adiState)
Sends data in the configuration stored in driver to all AFEs in the daisy chain, for all configuratio...
void ADI_TransmitCommand(uint16_t *command, ADI_STATE_s *adiState)
send command to the ades183x daisy-chain (e.g., start voltage measurement).
void ADI_CopyCommandBits(const uint16_t *sourceCommand, uint16_t *destinationCommand)
copy command bits in variables.
Headers for the diagnostic driver for the ADI analog front-end.
uint16_t ADI_GetStoredVoltageIndex(uint16_t registerVoltageIndex)
Converts index of read voltages.
Header file of some software.
#define BS_NR_OF_CELL_BLOCKS_PER_MODULE
number of cells per module
#define BS_NR_OF_MODULES_PER_STRING
number of modules in a string
#define FAS_ASSERT(x)
Assertion macro that asserts that x is true.
#define NULL_PTR
Null pointer.
DATA_BLOCK_BALANCING_CONTROL_s * balancingControl
uint8_t balancingState[BS_NR_OF_STRINGS][BS_NR_OF_CELL_BLOCKS_PER_STRING]