foxBMS
1.5.0
The foxBMS Battery Management System API Documentation
|
Headers for the driver for the MC33775A analog front-end. More...
Go to the source code of this file.
Functions | |
void | N775_Meas (N775_STATE_s *n775_state) |
trigger function for the N775 driver state machine. More... | |
bool | N775_IsFirstMeasurementCycleFinished (N775_STATE_s *n775_state) |
gets the measurement initialization status. More... | |
STD_RETURN_TYPE_e | N775_I2cWrite (uint8_t module, uint8_t deviceAddress, uint8_t *pData, uint8_t dataLength) |
trigger a write on the I2C bus of the slave. More... | |
STD_RETURN_TYPE_e | N775_I2cWriteRead (uint8_t module, uint8_t deviceAddress, uint8_t *pDataWrite, uint8_t writeDataLength, uint8_t *pDataRead, uint8_t readDataLength) |
trigger a read on the I2C bus of the slave, first write address of register to read. More... | |
STD_RETURN_TYPE_e | N775_I2cRead (uint8_t module, uint8_t deviceAddress, uint8_t *pData, uint8_t dataLength) |
trigger a read on the I2C bus of the slave. More... | |
Variables | |
N775_STATE_s | n775_stateBase |
Headers for the driver for the MC33775A 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 nxp_mc33775a.h.
STD_RETURN_TYPE_e N775_I2cRead | ( | uint8_t | module, |
uint8_t | deviceAddress, | ||
uint8_t * | pData, | ||
uint8_t | dataLength | ||
) |
trigger a read on the I2C bus of the slave.
module | module number to address in the daisy-chain |
deviceAddress | address of the I2C device addressed |
pData | data read on I2C bus |
dataLength | number of bytes to read |
Definition at line 337 of file nxp_mc33775a.c.
STD_RETURN_TYPE_e N775_I2cWrite | ( | uint8_t | module, |
uint8_t | deviceAddress, | ||
uint8_t * | pData, | ||
uint8_t | dataLength | ||
) |
trigger a write on the I2C bus of the slave.
module | module number to address in the daisy-chain |
deviceAddress | address of the I2C device addressed |
pData | data to write on I2C bus |
dataLength | number of bytes to write |
Definition at line 266 of file nxp_mc33775a.c.
STD_RETURN_TYPE_e N775_I2cWriteRead | ( | uint8_t | module, |
uint8_t | deviceAddress, | ||
uint8_t * | pDataWrite, | ||
uint8_t | writeDataLength, | ||
uint8_t * | pDataRead, | ||
uint8_t | readDataLength | ||
) |
trigger a read on the I2C bus of the slave, first write address of register to read.
module | module number to address in the daisy-chain |
deviceAddress | address of the I2C device addressed |
pDataWrite | data written on I2C bus |
writeDataLength | number of bytes to write |
pDataRead | data read on I2C bus |
readDataLength | number of bytes to read |
Definition at line 295 of file nxp_mc33775a.c.
bool N775_IsFirstMeasurementCycleFinished | ( | N775_STATE_s * | n775_state | ) |
gets the measurement initialization status.
n775_state | state of the N775A driver |
Definition at line 1255 of file nxp_mc33775a.c.
void N775_Meas | ( | N775_STATE_s * | n775_state | ) |
trigger function for the N775 driver state machine.
This function contains the sequence of events in the N775 state machine. It must be called time-triggered, every 1ms.
n775_state | state of the N775A driver |
Definition at line 209 of file nxp_mc33775a.c.
|
extern |
Variable containing the state machine state for the MC33775A driver.
Definition at line 104 of file nxp_mc33775a.c.