F439_CPP_TX-RX_LoRa_Project

Loading...
Searching...
No Matches
ada1897_mb85rs64b.h
Go to the documentation of this file.
1
7#ifndef ADA1897_MB85RS64B_H_
8#define ADA1897_MB85RS64B_H_
9
10#include "main.h"
11#include "stdbool.h"
12
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);
17
22 void FRAM_init(SPI_HandleTypeDef *hspix);
29 bool FRAM_write(uint16_t address, uint8_t byte);
36 bool FRAM_read(uint16_t address, uint8_t *byte);
44 bool FRAM_WriteBytes(uint16_t address, uint8_t *pData, uint16_t size);
52 bool FRAM_ReadBytes(uint16_t address, uint8_t *pData, uint16_t size);
53
54#endif /* ADA1897_MB85RS64B_H_ */
FRAM_write
bool FRAM_write(uint16_t address, uint8_t byte)
Write a single byte to FRAM.
Definition ada1897_mb85rs64b.c:67
FRAM_WriteBytes
bool FRAM_WriteBytes(uint16_t address, uint8_t *pData, uint16_t size)
Write a contiguous byte range to FRAM.
Definition ada1897_mb85rs64b.c:92
FRAM_read
bool FRAM_read(uint16_t address, uint8_t *byte)
Read a single byte from FRAM.
Definition ada1897_mb85rs64b.c:77
FRAM_init
void FRAM_init(SPI_HandleTypeDef *hspix)
Initialize the MB85RS64B driver instance.
Definition ada1897_mb85rs64b.c:20
FRAM_ReadBytes
bool FRAM_ReadBytes(uint16_t address, uint8_t *pData, uint16_t size)
Read a contiguous byte range from FRAM.
Definition ada1897_mb85rs64b.c:153
main.h
: Header for main.c file.This file contains the common defines of the application.