ubinos
nvmem.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020 Sung Ho Park and CSOS
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef UBIDRV_NVMEM_H_
8 #define UBIDRV_NVMEM_H_
9 
10 #ifdef __cplusplus
11 extern "C"
12 {
13 #endif
14 
23 #include <ubinos_config.h>
24 #include <ubinos/type.h>
25 
26 
36 ubi_st_t nvmem_erase(uint8_t *addr, size_t size);
37 
49 ubi_st_t nvmem_update(uint8_t *addr, const uint8_t *buf, size_t size);
50 
62 ubi_st_t nvmem_read(const uint8_t *addr, uint8_t *buf, size_t size);
63 
64 #ifdef __cplusplus
65 }
66 #endif
67 
68 #endif /* UBIDRV_NVMEM_H_ */
69 
ubi_st_t nvmem_update(uint8_t *addr, const uint8_t *buf, size_t size)
ubi_st_t nvmem_erase(uint8_t *addr, size_t size)
ubi_st_t nvmem_read(const uint8_t *addr, uint8_t *buf, size_t size)
ubinos basic data type
ubi_st_t
Definition: type.h:140