VSF Documented
esp_flash_port.c File Reference
#include "../vsf_espidf_cfg.h"
#include <string.h>
#include <stddef.h>
#include <stdint.h>
#include "component/mal/vsf_mal.h"
#include "../vsf_espidf.h"
#include "esp_flash.h"

Macros

#define __VSF_MAL_CLASS_INHERIT__
 

Functions

void vsf_espidf_esp_flash_init (vk_mal_t *root_mal)
 
esp_err_t esp_flash_init (esp_flash_t *chip)
 
esp_err_t esp_flash_init_os_functions (esp_flash_t *chip, int host_id, int *out_attached_id)
 
esp_err_t esp_flash_deinit_os_functions (esp_flash_t *chip)
 
esp_err_t esp_flash_read_id (esp_flash_t *chip, uint32_t *out_id)
 
esp_err_t esp_flash_get_size (esp_flash_t *chip, uint32_t *out_size)
 
esp_err_t esp_flash_get_physical_size (esp_flash_t *chip, uint32_t *out_size)
 
esp_err_t esp_flash_read (esp_flash_t *chip, void *buffer, uint32_t address, uint32_t length)
 
esp_err_t esp_flash_write (esp_flash_t *chip, const void *buffer, uint32_t address, uint32_t length)
 
esp_err_t esp_flash_erase_region (esp_flash_t *chip, uint32_t start, uint32_t len)
 
esp_err_t esp_flash_erase_chip (esp_flash_t *chip)
 
esp_err_t esp_flash_read_encrypted (esp_flash_t *chip, uint32_t address, void *out_buffer, uint32_t length)
 
esp_err_t esp_flash_write_encrypted (esp_flash_t *chip, uint32_t address, const void *buffer, uint32_t length)
 

Variables

esp_flash_tesp_flash_default_chip = NULL
 

Macro Definition Documentation

◆ __VSF_MAL_CLASS_INHERIT__

#define __VSF_MAL_CLASS_INHERIT__

Function Documentation

◆ vsf_espidf_esp_flash_init()

void vsf_espidf_esp_flash_init ( vk_mal_t * root_mal)
extern

◆ esp_flash_init()

esp_err_t esp_flash_init ( esp_flash_t * chip)

◆ esp_flash_init_os_functions()

esp_err_t esp_flash_init_os_functions ( esp_flash_t * chip,
int host_id,
int * out_attached_id )

◆ esp_flash_deinit_os_functions()

esp_err_t esp_flash_deinit_os_functions ( esp_flash_t * chip)

◆ esp_flash_read_id()

esp_err_t esp_flash_read_id ( esp_flash_t * chip,
uint32_t * out_id )

◆ esp_flash_get_size()

esp_err_t esp_flash_get_size ( esp_flash_t * chip,
uint32_t * out_size )

◆ esp_flash_get_physical_size()

esp_err_t esp_flash_get_physical_size ( esp_flash_t * chip,
uint32_t * out_size )

◆ esp_flash_read()

esp_err_t esp_flash_read ( esp_flash_t * chip,
void * buffer,
uint32_t address,
uint32_t length )

◆ esp_flash_write()

esp_err_t esp_flash_write ( esp_flash_t * chip,
const void * buffer,
uint32_t address,
uint32_t length )

◆ esp_flash_erase_region()

esp_err_t esp_flash_erase_region ( esp_flash_t * chip,
uint32_t start,
uint32_t len )

◆ esp_flash_erase_chip()

esp_err_t esp_flash_erase_chip ( esp_flash_t * chip)

◆ esp_flash_read_encrypted()

esp_err_t esp_flash_read_encrypted ( esp_flash_t * chip,
uint32_t address,
void * out_buffer,
uint32_t length )

◆ esp_flash_write_encrypted()

esp_err_t esp_flash_write_encrypted ( esp_flash_t * chip,
uint32_t address,
const void * buffer,
uint32_t length )

Variable Documentation

◆ esp_flash_default_chip

esp_flash_t* esp_flash_default_chip = NULL
Generated from commit: vsfteam/vsf@c8a7591