![]() |
foxBMS
1.6.0
The foxBMS Battery Management System API Documentation
|
Driver for the ADI analog front-end. More...
#include "adi_ades183x.h"
#include "adi_ades183x_balancing.h"
#include "adi_ades183x_buffers.h"
#include "adi_ades183x_commands.h"
#include "adi_ades183x_diagnostic.h"
#include "adi_ades183x_gpio_voltages.h"
#include "adi_ades183x_helpers.h"
#include "adi_ades183x_initialization.h"
#include "adi_ades183x_pec.h"
#include "adi_ades183x_temperatures.h"
#include "adi_ades183x_voltages.h"
#include "database.h"
#include "ftask.h"
#include "infinite-loop-helper.h"
#include "os.h"
#include "pex.h"
#include <stdbool.h>
#include <stdint.h>
Go to the source code of this file.
Functions | |
static void | ADI_AccessToDatabase (ADI_STATE_s *adiState) |
Read local variables from database and write local variables to database. More... | |
static void | ADI_BalanceControl (ADI_STATE_s *adiState) |
Sets the balancing according to the control values read in the database. More... | |
static STD_RETURN_TYPE_e | ADI_GetRequest (AFE_REQUEST_e *request) |
Checks the requests made to the ades183x driver. More... | |
static bool | ADI_ProcessMeasurementNotStartedState (ADI_STATE_s *adiState, AFE_REQUEST_e *request) |
Runs the initialization sequence of the driver. More... | |
static void | ADI_SetFirstMeasurementCycleFinished (ADI_STATE_s *adiState) |
sets the measurement initialization status. More... | |
static void | ADI_RunCurrentStringMeasurement (ADI_STATE_s *adiState) |
void | ADI_ActivateInterfaceBoard (void) |
Sets the pins to activate the interface board. More... | |
STD_RETURN_TYPE_e | ADI_MakeRequest (AFE_REQUEST_e request) |
Makes a request to the ADI driver. More... | |
bool | ADI_IsFirstMeasurementCycleFinished (ADI_STATE_s *adiState) |
Gets the measurement initialization status. More... | |
void | ADI_MeasurementCycle (ADI_STATE_s *adiState) |
Implements the actual measurement sequence for the ADI driver. More... | |
Driver for the ADI analog front-end.
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 adi_ades183x.c.
|
static |
Read local variables from database and write local variables to database.
adiState | state of the ADI driver |
Definition at line 185 of file adi_ades183x.c.
void ADI_ActivateInterfaceBoard | ( | void | ) |
Sets the pins to activate the interface board.
Definition at line 322 of file adi_ades183x.c.
|
static |
Sets the balancing according to the control values read in the database.
To set balancing for the cells, the corresponding bits have to be written in the configuration register. The ades183x driver only executes the balancing orders written by the BMS in the database.
adiState | state of the ADI driver |
Definition at line 200 of file adi_ades183x.c.
|
static |
Checks the requests made to the ades183x driver.
request | request to be made with string addressed |
Definition at line 219 of file adi_ades183x.c.
bool ADI_IsFirstMeasurementCycleFinished | ( | ADI_STATE_s * | adiState | ) |
Gets the measurement initialization status.
adiState | state of the adi driver |
Definition at line 354 of file adi_ades183x.c.
STD_RETURN_TYPE_e ADI_MakeRequest | ( | AFE_REQUEST_e | request | ) |
Makes a request to the ADI driver.
request | request to be made with string addressed |
Definition at line 342 of file adi_ades183x.c.
void ADI_MeasurementCycle | ( | ADI_STATE_s * | adiState | ) |
Implements the actual measurement sequence for the ADI driver.
This function contains the sequence of events
adiState | state of the adi driver |
Definition at line 364 of file adi_ades183x.c.
|
static |
Runs the initialization sequence of the driver.
adiState | state of the ADI driver |
request | request to be made with string addressed |
Definition at line 231 of file adi_ades183x.c.
|
static |
|
static |
sets the measurement initialization status.
Definition at line 311 of file adi_ades183x.c.
|
static |
local copies of database tables
Definition at line 100 of file adi_ades183x.c.
|
static |
local copies of database tables
Definition at line 108 of file adi_ades183x.c.
|
static |
local copies of database tables
Definition at line 101 of file adi_ades183x.c.
|
static |
local copies of database tables
Definition at line 99 of file adi_ades183x.c.
|
static |
PEC buffer for RX and TX
Definition at line 87 of file adi_ades183x.c.
|
static |
PEC buffer for RX and TX
Definition at line 88 of file adi_ades183x.c.
|
static |
local copies of database tables
Definition at line 98 of file adi_ades183x.c.
|
static |
local copies of database tables
Definition at line 94 of file adi_ades183x.c.
|
static |
local copies of database tables
Definition at line 95 of file adi_ades183x.c.
|
static |
local copies of database tables
Definition at line 105 of file adi_ades183x.c.
|
static |
local copies of database tables
Definition at line 96 of file adi_ades183x.c.
|
static |
local copies of database tables
Definition at line 103 of file adi_ades183x.c.
|
static |
local copies of database tables
Definition at line 104 of file adi_ades183x.c.
|
static |
local copies of database tables
Definition at line 97 of file adi_ades183x.c.
|
static |
local copies of database tables
Definition at line 106 of file adi_ades183x.c.
|
static |
init in ADI_ResetErrorTable-function
Definition at line 111 of file adi_ades183x.c.
|
static |
local copies of database tables
Definition at line 110 of file adi_ades183x.c.
ADI_STATE_s adi_stateBase |
Contains the internal state of the adi driver.
Definition at line 116 of file adi_ades183x.c.