|
foxBMS-UnitTests
1.0.0
The foxBMS Unit Tests API Documentation
|
Go to the documentation of this file.
54 #ifndef FOXBMS__N775_CFG_H_
55 #define FOXBMS__N775_CFG_H_
69 #define N775_N_N775 (BS_NR_OF_MODULES)
74 #define N775_NUMBER_OF_N775_PER_MODULE (1u)
79 #define N775_TX_MESSAGE_LENGTH (7u)
84 #define N775_RX_MESSAGE_LENGTH (4u)
89 #define N775_MAX_NUMBER_OF_VOLTAGES (14u)
95 #define N775_TRANSMISSION_TIMEOUT (10u)
101 #define N775_SPI_HANDLE &spi_devices[0]
103 #define N775_SPI_INSTANCE *N775_SPI_HANDLE.Instance
105 #define N775_SPI_PRESCALER *N775_SPI_HANDLE.Init.BaudRatePrescaler
111 #define N775_STATEMACH_SHORTTIME (1u)
117 #define N775_TWAKECOM_MS (3u)
123 #define N775_TDWAKE_MS (4u)
128 #define N775_TIME_DAISYCHAIN_WAKEUP_MS (N775_N_N775 * (N775_TWAKECOM_MS + N775_TDWAKE_MS))
133 #define N775_TIME_BETWEEN_WAKEUP_MS (4u)
138 #define N775_TIME_AFTER_ENUMERATION_MS (1u)
144 #define N775_TRANSMIT_SPIERRLIMIT (3u)
151 #define N775_MAX_N_BYTES_FOR_DATA_RECEPTION (N775_TX_MESSAGE_LENGTH * N775_MAX_NUMBER_OF_VOLTAGES)
156 #define N775_SendData(txbuf, rxbuf, length) SPI_TransmitReceiveDataDma(&spi_nxp775Interface, txbuf, rxbuf, length)
Headers for the driver for the SPI module.
Configuration of the battery system (e.g., number of battery modules, battery cells,...
Headers for the driver for the DMA 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]
#define BS_MAX_SUPPORTED_CELLS
Defines the maximal number of supported cells per module.
Definitions for the driver for the MC33775A monitoring chip.