55 #ifndef FOXBMS__SPI_CFG_H_
56 #define FOXBMS__SPI_CFG_H_
70 #define LTC_SPI_NODE (spiREG1)
73 #define SPS_SPI_CS_GIOPORT (hetREG2->DOUT)
74 #define SPS_SPI_CS_GIOPORT_DIR (hetREG2->DIR)
75 #define SPS_SPI_CS_PIN (1u)
82 #define N775_SPI_TX_NODE (spiREG1)
83 #define N775_SPI_TX_GIOPORT (N775_SPI_TX_NODE->PC3)
84 #define N775_SPI_TX_CS_PIN (2U)
86 #define N775_SPI_RX_NODE (spiREG5)
87 #define N775_SPI_RX_GIOPORT (N775_SPI_TX_NODE->PC3)
88 #define N775_SPI_RX_CS_PIN (2U)
Configuration of the battery system (e.g., number of battery modules, battery cells,...
General macros and definitions for the whole platform.
void SPI_SpsInterfaceSwitchToLowSpeed(SPI_INTERFACE_CONFIG_s *pSpiSpsInterface)
Switch the SPS spi handle to low speed.
SPI_INTERFACE_CONFIG_s spi_MxmInterface
SPI_INTERFACE_CONFIG_s spi_dmaTransmission[]
Variable used for SPI over DMA transmission. Retains the CS pin to deactivate in DMA callback.
SPI_INTERFACE_CONFIG_s spi_adc0Interface
SPI_INTERFACE_CONFIG_s spi_kSbcMcuInterface
const spiDAT1_t spi_kNxp775DataConfig
SPI_BUSY_STATE_e spi_busyFlags[]
SPI_INTERFACE_CONFIG_s spi_nxp775Interface
enum SPI_BUSY_STATE SPI_BUSY_STATE_e
SPI_INTERFACE_CONFIG_s spi_framInterface
SPI_INTERFACE_CONFIG_s spi_adc1Interface
void SPI_SpsInterfaceSwitchToHighSpeed(SPI_INTERFACE_CONFIG_s *pSpiSpsInterface)
Switch the SPS spi handle to high speed.
struct SPI_INTERFACE_CONFIG SPI_INTERFACE_CONFIG_s
SPI_INTERFACE_CONFIG_s spi_ltcInterface[BS_NR_OF_STRINGS]
const uint8_t spi_nrBusyFlags
SPI_INTERFACE_CONFIG_s spi_spsInterface
enum SPI_INTERFACE SPI_INTERFACE_e
const spiDAT1_t * pConfig
volatile uint32_t * pGioPort