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
22void FRAM_init(SPI_HandleTypeDef *hspix);
29bool FRAM_write(uint16_t address, uint8_t byte);
36bool FRAM_read(uint16_t address, uint8_t *byte);
44bool FRAM_WriteBytes(uint16_t address, uint8_t *pData, uint16_t size);
52bool FRAM_ReadBytes(uint16_t address, uint8_t *pData, uint16_t size);
53
54#endif /* ADA1897_MB85RS64B_H_ */
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.