|
F439_CPP_TX-RX_LoRa_Project
|
MB85RS64B SPI FRAM public interface. More...


Go to the source code of this file.
Macros | |
| #define | FRAM_CS_ENABLE HAL_GPIO_WritePin(SPI1_FRAM_CS_GPIO_Port, SPI1_FRAM_CS_Pin, 0); |
| Assert the FRAM chip-select line. | |
| #define | FRAM_CS_DISABLE HAL_GPIO_WritePin(SPI1_FRAM_CS_GPIO_Port, SPI1_FRAM_CS_Pin, 1); |
| Deassert the FRAM chip-select line. | |
Functions | |
| void | FRAM_init (SPI_HandleTypeDef *hspix) |
| Initialize the MB85RS64B driver instance. | |
| bool | FRAM_write (uint16_t address, uint8_t byte) |
| Write a single byte to FRAM. | |
| bool | FRAM_read (uint16_t address, uint8_t *byte) |
| Read a single byte from FRAM. | |
| bool | FRAM_WriteBytes (uint16_t address, uint8_t *pData, uint16_t size) |
| Write a contiguous byte range to FRAM. | |
| bool | FRAM_ReadBytes (uint16_t address, uint8_t *pData, uint16_t size) |
| Read a contiguous byte range from FRAM. | |
MB85RS64B SPI FRAM public interface.
| #define FRAM_CS_DISABLE HAL_GPIO_WritePin(SPI1_FRAM_CS_GPIO_Port, SPI1_FRAM_CS_Pin, 1); |
Deassert the FRAM chip-select line.
| #define FRAM_CS_ENABLE HAL_GPIO_WritePin(SPI1_FRAM_CS_GPIO_Port, SPI1_FRAM_CS_Pin, 0); |
Assert the FRAM chip-select line.
| void FRAM_init | ( | SPI_HandleTypeDef * | hspix | ) |
Initialize the MB85RS64B driver instance.
| hspix | SPI handle used for FRAM transactions. |
Initialize the MB85RS64B driver instance.
| bool FRAM_read | ( | uint16_t | address, |
| uint8_t * | byte ) |
Read a single byte from FRAM.
| address | FRAM byte address. |
| byte | Output pointer for the returned byte. |
| bool FRAM_ReadBytes | ( | uint16_t | address, |
| uint8_t * | pData, | ||
| uint16_t | size ) |
Read a contiguous byte range from FRAM.
| address | Starting FRAM address. |
| pData | Pointer to the destination buffer. |
| size | Number of bytes to read. |
Read a contiguous byte range from FRAM.
| bool FRAM_write | ( | uint16_t | address, |
| uint8_t | byte ) |
Write a single byte to FRAM.
| address | FRAM byte address. |
| byte | Data byte to write. |
| bool FRAM_WriteBytes | ( | uint16_t | address, |
| uint8_t * | pData, | ||
| uint16_t | size ) |
Write a contiguous byte range to FRAM.
| address | Starting FRAM address. |
| pData | Pointer to the source buffer. |
| size | Number of bytes to write. |
Write a contiguous byte range to FRAM.