|
foxBMS-UnitTests
1.0.0
The foxBMS Unit Tests API Documentation
|
Go to the documentation of this file.
66 #define FRAM_DELAY_AFTER_WRITE_ENABLE_US (5U)
70 #define FRAM_WRITECOMMAND (0x02u)
71 #define FRAM_READCOMMAND (0x03u)
72 #define FRAM_WRITEENABLECOMMAND (0x06u)
76 #define FRAM_MAX_ADDRESS (0x3FFFFu)
103 uint32_t address = 0;
133 write = (address & 0x3F0000u) >> 16u;
137 write = (address & 0xFF00u) >> 8u;
141 write = address & 0xFFu;
145 write = (uint16_t)(*wrt_ptr);
162 uint32_t address = 0;
185 write = (address & 0x3F0000u) >> 16u;
189 write = (address & 0xFF00u) >> 8u;
193 write = address & 0xFFu;
Implementation of the tasks used by the system, headers.
volatile uint32_t * pGioPort
enum STD_RETURN_TYPE STD_RETURN_TYPE_e
Headers for the driver for the SPI module.
#define FRAM_WRITECOMMAND
FRAM_BASE_HEADER_s fram_base_header[]
#define FAS_ASSERT(x)
Assertion macro that asserts that x is true.
STD_RETURN_TYPE_e SPI_Lock(uint8_t spi)
Locks SPI interfaces.
void MCU_delay_us(uint32_t delay_us)
Wait blocking a certain time in microseconds.
void FRAM_Initialize(void)
Initializes the addresses to be written in the FRAM.
Headers for the driver for the MCU module.
STD_RETURN_TYPE_e SPI_DirectlyTransmitReceiveData(SPI_INTERFACE_CONFIG_s *pSpiInterface, uint16 *pTxBuff, uint16 *pRxBuff, uint32 frameLength)
Transmits and receives data on SPI without DMA.
SPI_INTERFACE_CONFIG_s spi_framInterface
STD_RETURN_TYPE_e FRAM_Write(FRAM_BLOCK_ID_e blockId)
Writes a variable to the FRAM.
void IO_PinReset(uint32_t *pRegisterAddress, uint32_t pin)
Set pin by writing in pin output register.
#define NULL_PTR
Null pointer.
STD_RETURN_TYPE_e FRAM_Read(FRAM_BLOCK_ID_e blockId)
Reads a variable from the FRAM.
Header for the driver for the IO module.
#define FRAM_DELAY_AFTER_WRITE_ENABLE_US
enum FRAM_BLOCK_ID FRAM_BLOCK_ID_e
#define FRAM_WRITEENABLECOMMAND
void IO_PinSet(uint32_t *pRegisterAddress, uint32_t pin)
Set pin by writing in pin output register.
void SPI_Unlock(uint8_t spi)
Unlocks SPI interfaces.
Header for the driver for the FRAM module.