Firmware SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
bc_eeprom.h
1 #ifndef _BC_EEPROM_H
2 #define _BC_EEPROM_H
3 
4 #include <bc_common.h>
5 
9 
10 typedef enum
11 {
14 
17 
19 
26 
27 bool bc_eeprom_write(uint32_t address, const void *buffer, size_t length);
28 
37 
38 bool bc_eeprom_async_write(uint32_t address, const void *buffer, size_t length, void (*event_handler)(bc_eepromc_event_t, void *), void *event_param);
39 
41 
42 void bc_eeprom_async_cancel(void);
43 
50 
51 bool bc_eeprom_read(uint32_t address, void *buffer, size_t length);
52 
55 
56 size_t bc_eeprom_get_size(void);
57 
59 
60 #endif // _BC_EEPROM_H
EEPROM event sync write error.
Definition: bc_eeprom.h:13
bool bc_eeprom_async_write(uint32_t address, const void *buffer, size_t length, void(*event_handler)(bc_eepromc_event_t, void *), void *event_param)
Async write buffer to EEPROM area and verify it.
Definition: bc_eeprom.c:70
bool bc_eeprom_write(uint32_t address, const void *buffer, size_t length)
Write buffer to EEPROM area and verify it.
Definition: bc_eeprom.c:31
EEPROM event sync write done.
Definition: bc_eeprom.h:16
bc_eepromc_event_t
Definition: bc_eeprom.h:10
bool bc_eeprom_read(uint32_t address, void *buffer, size_t length)
Read buffer from EEPROM area.
Definition: bc_eeprom.c:113
size_t bc_eeprom_get_size(void)
Return size of EEPROM area.
Definition: bc_eeprom.c:132
void bc_eeprom_async_cancel(void)
Cancel async write.
Definition: bc_eeprom.c:103