7#ifndef ADA1897_MB85RS64B_H_
8#define ADA1897_MB85RS64B_H_
14#define FRAM_CS_ENABLE HAL_GPIO_WritePin(SPI1_FRAM_CS_GPIO_Port, SPI1_FRAM_CS_Pin, 0);
16#define FRAM_CS_DISABLE HAL_GPIO_WritePin(SPI1_FRAM_CS_GPIO_Port, SPI1_FRAM_CS_Pin, 1);
29bool FRAM_write(uint16_t address, uint8_t
byte);
36bool FRAM_read(uint16_t address, uint8_t *
byte);
52bool FRAM_ReadBytes(uint16_t address, uint8_t *pData, uint16_t size);
bool FRAM_write(uint16_t address, uint8_t byte)
Write a single byte to FRAM.
Definition ada1897_mb85rs64b.c:67
bool FRAM_WriteBytes(uint16_t address, uint8_t *pData, uint16_t size)
Write a contiguous byte range to FRAM.
Definition ada1897_mb85rs64b.c:92
bool FRAM_read(uint16_t address, uint8_t *byte)
Read a single byte from FRAM.
Definition ada1897_mb85rs64b.c:77
void FRAM_init(SPI_HandleTypeDef *hspix)
Initialize the MB85RS64B driver instance.
Definition ada1897_mb85rs64b.c:20
bool FRAM_ReadBytes(uint16_t address, uint8_t *pData, uint16_t size)
Read a contiguous byte range from FRAM.
Definition ada1897_mb85rs64b.c:153
: Header for main.c file.This file contains the common defines of the application.