VSF Documented
|
#include "../driver.h"
#include "service/vsf_service.h"
#include "bf0_hal.h"
#include "sifli_bbm.h"
#include "hal/driver/common/flash/flash_template.inc"
Data Structures | |
struct | vsf_hw_flash_t |
Macros | |
#define | VSF_HW_FLASH_CFG_MULTI_CLASS VSF_FLASH_CFG_MULTI_CLASS |
#define | __VSF_HW_FLASH_CFG_PROTECT interrupt |
#define | __VSF_HW_FLASH_USE_DMA DISABLED |
#define | BOOT_FROM_SIP_PUYA 1 |
#define | BOOT_FROM_SIP_GD 2 |
#define | BOOT_FROM_NOR 3 |
#define | BOOT_FROM_NAND 4 |
#define | BOOT_FROM_SD 5 |
#define | BOOT_FROM_EMMC 6 |
#define | __vsf_hw_flash_protect vsf_protect(__VSF_HW_FLASH_CFG_PROTECT) |
#define | __vsf_hw_flash_unprotect vsf_unprotect(__VSF_HW_FLASH_CFG_PROTECT) |
#define | VSF_FLASH_CFG_REIMPLEMENT_API_CAPABILITY ENABLED |
#define | VSF_FLASH_CFG_ERASE_ALL_TEMPLATE ENABLED |
#define | VSF_FLASH_CFG_ERASE_ONE_SECTOR_TEMPLATE ENABLED |
#define | VSF_FLASH_CFG_WRITE_ONE_SECTOR_TEMPLATE ENABLED |
#define | VSF_FLASH_CFG_READ_ONE_SECTOR_TEMPLATE ENABLED |
#define | VSF_FLASH_CFG_IMP_PREFIX vsf_hw |
#define | VSF_FLASH_CFG_IMP_UPCASE_PREFIX VSF_HW |
#define | VSF_FLASH_CFG_IMP_LV0(__IDX, __HAL_OP) |
Typedefs | |
typedef struct vsf_hw_flash_t | vsf_hw_flash_t |
#define VSF_HW_FLASH_CFG_MULTI_CLASS VSF_FLASH_CFG_MULTI_CLASS |
#define __VSF_HW_FLASH_CFG_PROTECT interrupt |
#define __VSF_HW_FLASH_USE_DMA DISABLED |
#define BOOT_FROM_SIP_PUYA 1 |
#define BOOT_FROM_SIP_GD 2 |
#define BOOT_FROM_NOR 3 |
#define BOOT_FROM_NAND 4 |
#define BOOT_FROM_SD 5 |
#define BOOT_FROM_EMMC 6 |
#define __vsf_hw_flash_protect vsf_protect(__VSF_HW_FLASH_CFG_PROTECT) |
#define __vsf_hw_flash_unprotect vsf_unprotect(__VSF_HW_FLASH_CFG_PROTECT) |
#define VSF_FLASH_CFG_REIMPLEMENT_API_CAPABILITY ENABLED |
#define VSF_FLASH_CFG_ERASE_ALL_TEMPLATE ENABLED |
#define VSF_FLASH_CFG_ERASE_ONE_SECTOR_TEMPLATE ENABLED |
#define VSF_FLASH_CFG_WRITE_ONE_SECTOR_TEMPLATE ENABLED |
#define VSF_FLASH_CFG_READ_ONE_SECTOR_TEMPLATE ENABLED |
#define VSF_FLASH_CFG_IMP_PREFIX vsf_hw |
#define VSF_FLASH_CFG_IMP_UPCASE_PREFIX VSF_HW |
#define VSF_FLASH_CFG_IMP_LV0 | ( | __IDX, | |
__HAL_OP | |||
) |
typedef struct vsf_hw_flash_t vsf_hw_flash_t |
vsf_err_t vsf_hw_flash_init | ( | vsf_hw_flash_t * | hw_flash_ptr, |
vsf_flash_cfg_t * | cfg_ptr | ||
) |
void vsf_hw_flash_fini | ( | vsf_hw_flash_t * | hw_flash_ptr | ) |
fsm_rt_t vsf_hw_flash_enable | ( | vsf_hw_flash_t * | hw_flash_ptr | ) |
fsm_rt_t vsf_hw_flash_disable | ( | vsf_hw_flash_t * | hw_flash_ptr | ) |
void vsf_hw_flash_irq_enable | ( | vsf_hw_flash_t * | hw_flash_ptr, |
vsf_flash_irq_mask_t | irq_mask | ||
) |
void vsf_hw_flash_irq_disable | ( | vsf_hw_flash_t * | hw_flash_ptr, |
vsf_flash_irq_mask_t | irq_mask | ||
) |
vsf_err_t vsf_hw_flash_erase_multi_sector | ( | vsf_hw_flash_t * | hw_flash_ptr, |
vsf_flash_size_t | offset, | ||
vsf_flash_size_t | size | ||
) |
vsf_err_t vsf_hw_flash_write_multi_sector | ( | vsf_hw_flash_t * | hw_flash_ptr, |
vsf_flash_size_t | offset, | ||
uint8_t * | buffer, | ||
vsf_flash_size_t | size | ||
) |
vsf_err_t vsf_hw_flash_read_multi_sector | ( | vsf_hw_flash_t * | hw_flash_ptr, |
vsf_flash_size_t | offset, | ||
uint8_t * | buffer, | ||
vsf_flash_size_t | size | ||
) |
vsf_flash_status_t vsf_hw_flash_status | ( | vsf_hw_flash_t * | hw_flash_ptr | ) |
vsf_flash_capability_t vsf_hw_flash_capability | ( | vsf_hw_flash_t * | hw_flash_ptr | ) |