|
foxBMS
1.0.0
The foxBMS Battery Management System API Documentation
|
Go to the documentation of this file.
54 #ifndef FOXBMS__MXM_CFG_H_
55 #define FOXBMS__MXM_CFG_H_
63 #include "HL_reg_het.h"
72 #define MXM_17841B_GIODIR (hetREG1->DIR)
73 #define MXM_17841B_GIOPORT (hetREG1->DOUT)
75 #define MXM_17841B_SHTNDL_PIN (21U)
void MXM_MonitoringPinInit(void)
Initialize the pins connected to the MAX17841B.
STD_RETURN_TYPE_e MXM_ReceiveData(uint16_t *txBuffer, uint16_t *rxBuffer, uint16_t length)
Send and Receive data over SPI.
enum STD_RETURN_TYPE STD_RETURN_TYPE_e
Headers for the driver for the SPI module.
Configuration of the battery system (e.g., number of battery modules, battery cells,...
STD_RETURN_TYPE_e MXM_SendData(uint16_t *txBuffer, uint16_t length)
Transmit data over SPI.
STD_RETURN_TYPE_e MXM_GetSPIStateReady(void)
Return whether SPI interface is ready.
Headers for the configuration for the SPI module.