54 #ifndef FOXBMS__MXM_CFG_H_
55 #define FOXBMS__MXM_CFG_H_
63 #include "HL_reg_het.h"
72 #define MXM_17841B_GIOPORT (hetREG1)
73 #define MXM_17841B_SHTNDL_PIN (21U)
80 #define MXM_41B_RX_INT_ENABLE_DEFAULT_VALUE (0x00u)
81 #define MXM_41B_TX_INT_ENABLE_DEFAULT_VALUE (0x00u)
82 #define MXM_41B_RX_INT_FLAG_DEFAULT_VALUE (0x00u)
83 #define MXM_41B_TX_INT_FLAG_DEFAULT_VALUE (0x80u)
91 #define MXM_41B_CONFIG_1_DEFAULT_VALUE (0x60u)
97 #define MXM_41B_CONFIG_2_DEFAULT_VALUE (0x10u)
103 #define MXM_41B_CONFIG_3_DEFAULT_VALUE (0x0Fu)
Configuration of the battery system (e.g., number of battery modules, battery cells,...
enum STD_RETURN_TYPE STD_RETURN_TYPE_e
General macros and definitions for the whole platform.
STD_RETURN_TYPE_e MXM_ReceiveData(uint16_t *txBuffer, uint16_t *rxBuffer, uint16_t length)
Send and Receive data over SPI.
const bool mxm_allowSkippingPostInitSelfCheck
void MXM_InitializeMonitoringPins(void)
Initialize the pins connected to the MAX17841B.
STD_RETURN_TYPE_e MXM_GetSPIStateReady(void)
Return whether SPI interface is ready.
void MXM_ShutDownBridgeIc(void)
Pulls the shutdown of the bridge IC low.
void MXM_EnableBridgeIc(void)
Pulls the shutdown of the bridge IC high.
STD_RETURN_TYPE_e MXM_SendData(uint16_t *txBuffer, uint16_t length)
Transmit data over SPI.
Headers for the driver for the SPI module.
Headers for the configuration for the SPI module.