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;
 
  136         write = (address & 0x3F0000u) >> 16u;
 
  140         write = (address & 0xFF00u) >> 8u;
 
  144         write = address & 0xFFu;
 
  148             write = (uint16_t)(*wrt_ptr);
 
  165     uint32_t address         = 0;
 
  191         write = (address & 0x3F0000u) >> 16u;
 
  195         write = (address & 0xFF00u) >> 8u;
 
  199         write = address & 0xFFu;
 
#define FAS_ASSERT(x)
Assertion macro that asserts that x is true.
 
void FRAM_Initialize(void)
Initializes the addresses to be written in the FRAM.
 
#define FRAM_DELAY_AFTER_WRITE_ENABLE_US
 
STD_RETURN_TYPE_e FRAM_Read(FRAM_BLOCK_ID_e blockId)
Reads a variable from the FRAM.
 
#define FRAM_WRITECOMMAND
 
STD_RETURN_TYPE_e FRAM_Write(FRAM_BLOCK_ID_e blockId)
Writes a variable to the FRAM.
 
#define FRAM_WRITEENABLECOMMAND
 
Header for the driver for the FRAM module.
 
FRAM_BASE_HEADER_s fram_base_header[]
 
enum FRAM_BLOCK_ID FRAM_BLOCK_ID_e
 
#define NULL_PTR
Null pointer.
 
enum STD_RETURN_TYPE STD_RETURN_TYPE_e
 
void IO_PinSet(volatile uint32_t *pRegisterAddress, uint32_t pin)
Set pin by writing in pin output register.
 
void IO_PinReset(volatile uint32_t *pRegisterAddress, uint32_t pin)
Reset pin by writing in pin output register.
 
Header for the driver for the IO module.
 
void MCU_delay_us(uint32_t delay_us)
Wait blocking a certain time in microseconds.
 
Headers for the driver for the MCU module.
 
Declaration of the OS wrapper interface.
 
void SPI_FramTransmitReceiveData(SPI_INTERFACE_CONFIG_s *pSpiInterface, uint16 *pTxBuff, uint16 *pRxBuff, uint32 frameLength)
Transmits and receives data on SPI without DMA, wrappe for FRAM.
 
STD_RETURN_TYPE_e SPI_Lock(uint8_t spi)
Locks SPI interfaces.
 
void SPI_Unlock(uint8_t spi)
Unlocks SPI interfaces.
 
uint8_t SPI_GetSpiIndex(spiBASE_t *pNode)
Returns index of SPI node.
 
Headers for the driver for the SPI module.
 
SPI_INTERFACE_CONFIG_s spi_framInterface
 
@ SPI_CHIP_SELECT_SOFTWARE
 
SPI_CHIP_SELECT_TYPE_e csType
 
volatile uint32_t * pGioPort