CANopenNode
CANopen protocol stack
Loading...
Searching...
No Matches
CO_storageEeprom.h
Go to the documentation of this file.
1
21#ifndef CO_STORAGE_EEPROM_H
22#define CO_STORAGE_EEPROM_H
23
24#include "storage/CO_storage.h"
25
26#ifndef CO_CONFIG_STORAGE_MAX_ENTRIES_COUNT
27#define CO_CONFIG_STORAGE_MAX_ENTRIES_COUNT 5U
28#endif
29
30#if (((CO_CONFIG_STORAGE)&CO_CONFIG_STORAGE_ENABLE) != 0) || defined CO_DOXYGEN
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
87CO_ReturnError_t CO_storageEeprom_init(CO_storage_t* storage, CO_CANmodule_t* CANmodule, void* storageModule,
88 OD_entry_t* OD_1010_StoreParameters, OD_entry_t* OD_1011_RestoreDefaultParam,
89 CO_storage_entry_t* entries, uint8_t entriesCount, uint32_t* storageInitError);
90
100
101 /* CO_storage_eeprom */
102
103#ifdef __cplusplus
104}
105#endif /* __cplusplus */
106
107#endif /* (CO_CONFIG_STORAGE) & CO_CONFIG_STORAGE_ENABLE */
108
109#endif /* CO_STORAGE_EEPROM_H */
CANopen data storage base object.
unsigned long int uint32_t
UNSIGNED32 in CANopen (0007h), 32-bit unsigned integer.
Definition CO_driver.h:133
uint_fast8_t bool_t
Boolean data type for general use.
Definition CO_driver.h:126
unsigned char uint8_t
UNSIGNED8 in CANopen (0005h), 8-bit unsigned integer.
Definition CO_driver.h:131
CO_ReturnError_t
Return values of some CANopen functions.
Definition CO_driver.h:449
void CO_storageEeprom_auto_process(CO_storage_t *storage, bool_t saveAll)
Automatically update data if differs inside eeprom.
CO_ReturnError_t CO_storageEeprom_init(CO_storage_t *storage, CO_CANmodule_t *CANmodule, void *storageModule, OD_entry_t *OD_1010_StoreParameters, OD_entry_t *OD_1011_RestoreDefaultParam, CO_storage_entry_t *entries, uint8_t entriesCount, uint32_t *storageInitError)
Initialize data storage object (block device (eeprom) specific)
Complete CAN module object.
Definition CO_driver.h:268
Data storage object for one entry.
Definition CO_driver.h:298
Data storage object.
Definition CO_storage.h:93
Object Dictionary entry for one OD object.
Definition CO_ODinterface.h:272