55 #ifndef FOXBMS__N775_CFG_H_
56 #define FOXBMS__N775_CFG_H_
70 #define N775_N_N775 (BS_NR_OF_MODULES_PER_STRING)
75 #define N775_NUMBER_OF_N775_PER_MODULE (1u)
80 #define N775_TX_MESSAGE_LENGTH (7u)
85 #define N775_RX_MESSAGE_LENGTH (4u)
90 #define N775_MAX_NUMBER_OF_VOLTAGES (14u)
96 #define N775_TRANSMISSION_TIMEOUT (10u)
102 #define N775_SPI_HANDLE &spi_devices[0]
104 #define N775_SPI_INSTANCE *N775_SPI_HANDLE.Instance
106 #define N775_SPI_PRESCALER *N775_SPI_HANDLE.Init.BaudRatePrescaler
112 #define N775_STATEMACH_SHORTTIME (1u)
118 #define N775_TWAKECOM_MS (3u)
124 #define N775_TDWAKE_MS (4u)
129 #define N775_TIME_DAISYCHAIN_WAKEUP_MS (N775_N_N775 * (N775_TWAKECOM_MS + N775_TDWAKE_MS))
134 #define N775_TIME_BETWEEN_WAKEUP_MS (4u)
139 #define N775_TIME_AFTER_ENUMERATION_MS (1u)
145 #define N775_TRANSMIT_SPIERRLIMIT (3u)
152 #define N775_MAX_N_BYTES_FOR_DATA_RECEPTION (N775_TX_MESSAGE_LENGTH * N775_MAX_NUMBER_OF_VOLTAGES)
157 #define N775_SendData(txbuf, rxbuf, length) SPI_TransmitReceiveDataDma(&spi_nxp775InterfaceTx[0], txbuf, rxbuf, length)
Configuration of the battery system (e.g., number of battery modules, battery cells,...
#define BS_MAX_SUPPORTED_CELLS
Defines the maximal number of supported cells per module.
float N775_Convert_MuxVoltages_to_Temperatures(float v_adc_V)
converts a raw voltage from multiplexer to a temperature value in Celsius.
const uint8_t n775_voltage_input_used[BS_MAX_SUPPORTED_CELLS]
Definitions for the driver for the MC33775A monitoring chip.
Headers for the driver for the DMA module.
Headers for the driver for the SPI module.