VSF Documented
flash_interface.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright(C)2009-2022 by VSF Team *
3 * *
4 * Licensed under the Apache License, Version 2.0 (the "License"); *
5 * you may not use this file except in compliance with the License. *
6 * You may obtain a copy of the License at *
7 * *
8 * http://www.apache.org/licenses/LICENSE-2.0 *
9 * *
10 * Unless required by applicable law or agreed to in writing, software *
11 * distributed under the License is distributed on an "AS IS" BASIS, *
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13 * See the License for the specific language governing permissions and *
14 * limitations under the License. *
15 * *
16 ****************************************************************************/
17
18#ifndef __VSF_TEMPLATE_FLASH_H__
19#define __VSF_TEMPLATE_FLASH_H__
20
21/*============================ INCLUDES ======================================*/
22
23#include "hal/vsf_hal_cfg.h"
24
25#if VSF_HAL_USE_FLASH == ENABLED
26
27#include "utilities/ooc_class.h"
28
29/*============================ MACROS ========================================*/
30/*============================ MACROFIED FUNCTIONS ===========================*/
31/*============================ TYPES =========================================*/
32
35def_interface(i_flash_t)
36 implement(i_peripheral_t);
37
39
40 // Provides byte-level random reads and writes
44
45end_def_interface(i_flash_t)
47
48/*============================ GLOBAL VARIABLES ==============================*/
49/*============================ INCLUDES ======================================*/
50/*============================ PROTOTYPES ====================================*/
51/*============================ IMPLEMENTATION ================================*/
52
53#endif
54
55#endif
56/* EOF */
vsf_err_t
Definition __type.h:42
vsf_err_t(* Init)(vsf_flash_cfg_t *pCfg)
Definition flash_interface.h:38
vsf_err_t(* Write)(vsf_flash_size_t address, uint8_t *buffer, vsf_flash_size_t size)
Definition flash_interface.h:42
vsf_err_t(* Read)(vsf_flash_size_t address, uint8_t *buffer, vsf_flash_size_t size)
Definition flash_interface.h:43
def_interface(i_flash_t) i_peripheral_t
vsf_err_t(* Erase)(vsf_flash_size_t address, vsf_flash_size_t size)
Definition flash_interface.h:41
end_def_interface(i_pm_wakeup_t) struct vsf_pm_pclk_cfg_t
Definition device.h:249
unsigned char uint8_t
Definition stdint.h:5
Definition vsf_template_flash.h:147
uint32_t size
Definition vsf_memfs.h:50
uint_fast32_t vsf_flash_size_t
Definition vsf_template_flash.h:135