fram2
2.0.0.0
|
This file contains API for FRAM 2 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 | fram2_t |
Click ctx object definition. More... | |
struct | fram2_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | FRAM2_MAP_MIKROBUS(cfg, mikrobus) |
#define | FRAM2_RETVAL uint8_t |
#define | FRAM2_OK 0x00 |
#define | FRAM2_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_MEM_SIZE 0x80000 |
Functions | |
void | fram2_cfg_setup (fram2_cfg_t *cfg) |
Config Object Initialization function. More... | |
FRAM2_RETVAL | fram2_init (fram2_t *ctx, fram2_cfg_t *cfg) |
Initialization function. More... | |
void | fram2_default_cfg (fram2_t *ctx) |
Click Default Configuration function. More... | |
void | fram2_generic_transfer (fram2_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. More... | |
void | fram2_write_enable (fram2_t *ctx) |
Enable write operation. More... | |
void | fram2_write_disable (fram2_t *ctx) |
Disable write operation. More... | |
uint8_t | fram2_read_status (fram2_t *ctx) |
Read Fram Click status. More... | |
void | fram2_write_status (fram2_t *ctx, uint8_t value) |
Write Fram Click status. More... | |
void | fram2_read (fram2_t *ctx, uint32_t address, uint8_t *buffer, uint8_t count) |
Read from FRAM Click memory. More... | |
void | fram2_write (fram2_t *ctx, uint32_t address, uint8_t *buffer, uint8_t counter) |
Write to FRAM Click memory. More... | |
This file contains API for FRAM 2 Click driver.