28#ifndef CO_CONFIG_STORAGE
29#define CO_CONFIG_STORAGE (CO_CONFIG_STORAGE_ENABLE)
32#if (((CO_CONFIG_STORAGE)&CO_CONFIG_STORAGE_ENABLE) != 0) || defined CO_DOXYGEN
CANopen Object Dictionary interface.
Interface between CAN hardware and CANopenNode.
ODR_t
Return codes from OD access functions.
Definition CO_ODinterface.h:129
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
CO_storage_attributes_t
Attributes (bit masks) for Data storage object.
Definition CO_storage.h:82
CO_ReturnError_t CO_storage_init(CO_storage_t *storage, CO_CANmodule_t *CANmodule, OD_entry_t *OD_1010_StoreParameters, OD_entry_t *OD_1011_RestoreDefaultParameters, ODR_t(*store)(CO_storage_entry_t *entry, CO_CANmodule_t *CANmodule), ODR_t(*restore)(CO_storage_entry_t *entry, CO_CANmodule_t *CANmodule), CO_storage_entry_t *entries, uint8_t entriesCount)
Initialize data storage object.
@ CO_storage_auto
CANopen device saves parameters autonomously.
Definition CO_storage.h:84
@ CO_storage_cmd
CANopen device saves parameters on OD 1010 command.
Definition CO_storage.h:83
@ CO_storage_restore
CANopen device restores parameters on OD 1011 command
Definition CO_storage.h:85
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
CO_storage_entry_t * entries
From CO_storage_init()
Definition CO_storage.h:99
uint8_t entriesCount
From CO_storage_init()
Definition CO_storage.h:100
bool_t enabled
true, if storage is enabled.
Definition CO_storage.h:101
OD_extension_t OD_1011_extension
Extension for OD object.
Definition CO_storage.h:95
CO_CANmodule_t * CANmodule
From CO_storage_init()
Definition CO_storage.h:96
OD_extension_t OD_1010_extension
Extension for OD object.
Definition CO_storage.h:94
Object Dictionary entry for one OD object.
Definition CO_ODinterface.h:272
Extension of OD object, which can optionally be specified by application in initialization phase with...
Definition CO_ODinterface.h:245