flash6 2.0.0.0
|
This file contains API for Flash 6 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 | flash6_t |
Click ctx object definition. More... | |
struct | flash6_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | flash6_cfg_setup (flash6_cfg_t *cfg) |
Config Object Initialization function. | |
FLASH6_RETVAL | flash6_init (flash6_t *ctx, flash6_cfg_t *cfg) |
Initialization function. | |
void | flash6_generic_transfer (flash6_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
void | flash6_read_data (flash6_t *ctx, uint8_t reg_addr, uint8_t *data_buf, uint16_t len) |
Generic funcion for reading. | |
void | flash6_write_data (flash6_t *ctx, uint8_t reg_addr, uint8_t *data_buf, uint8_t len) |
Generic funcion for writing. | |
void | flash6_send_cmd (flash6_t *ctx, uint8_t cmd_data) |
Function for sending one Byte od data. | |
uint8_t | flash6_get_manufacture_device_id (flash6_t *ctx, uint8_t *manufacture_id, uint8_t *device_id) |
Funcion for checking manufacture and device id. | |
void | flash6_erase_memory_segment (flash6_t *ctx, uint8_t segment, uint32_t start_addr) |
Function for eraseing segment. | |
uint8_t | flash6_read_status_reg (flash6_t *ctx, uint8_t status_cmd) |
Function for reading status register. | |
void | flash6_write_status_reg (flash6_t *ctx, uint8_t status_cmd, uint8_t status_data) |
Function for writing status register. | |
void | flash6_write_memory_data (flash6_t *ctx, uint32_t addr, uint8_t *data_buf, uint16_t buf_size) |
Function used for writing in memory. | |
void | flash6_read_memory_data (flash6_t *ctx, uint32_t addr, uint8_t *data_buf, uint16_t buf_size) |
Function used for reading from memory. | |
void | flash6_software_reset (flash6_t *ctx) |
Function for reseting device. | |
This file contains API for Flash 6 Click driver.