fram 2.0.0.0
|
This file contains API for Fram Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | fram_t |
Click ctx object definition. More... | |
struct | fram_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | FRAM_MAP_MIKROBUS(cfg, mikrobus) |
#define | FRAM_RETVAL uint8_t |
#define | FRAM_OK 0x00 |
#define | FRAM_INIT_ERROR 0xFF |
#define | FRAM_WREN 0x06 |
#define | FRAM_WRDI 0x04 |
#define | FRAM_RDSR 0x05 |
#define | FRAM_WRSR 0x01 |
#define | FRAM_READ 0x03 |
#define | FRAM_WRITE 0x02 |
#define | FRAM_WPEN 0x80 |
#define | FRAM_BP1 0x08 |
#define | FRAM_BP0 0x04 |
#define | FRAM_WEL 0x02 |
#define | FRAM_MEM_SIZE 0x8000 |
Functions | |
void | fram_cfg_setup (fram_cfg_t *cfg) |
Config Object Initialization function. | |
FRAM_RETVAL | fram_init (fram_t *ctx, fram_cfg_t *cfg) |
Initialization function. | |
void | fram_generic_transfer (fram_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
void | fram_init_f (fram_t *ctx) |
Fram click init function. | |
void | fram_write_enable (fram_t *ctx) |
Fram click Write Enable function. | |
void | fram_write_disable (fram_t *ctx) |
Fram click Write Disable function. | |
uint8_t | fram_read_status (fram_t *ctx) |
Fram click Read Status function. | |
void | fram_write_status (fram_t *ctx, uint8_t value) |
Fram click Write Status function. | |
void | fram_read (fram_t *ctx, uint16_t address, uint8_t *buffer, uint16_t count) |
Fram read function. | |
void | fram_write (fram_t *ctx, uint16_t address, uint8_t *buffer, uint16_t count) |
Fram write function. | |
void | fram_erase_all (fram_t *ctx) |
Fram erase all function. | |
This file contains API for Fram Click driver.