CANopenNode
CANopen protocol stack
|
Data storage object for one entry. More...
#include <CO_driver.h>
Data Fields | |
void * | addr |
Address of data to store, always required. | |
size_t | len |
Length of data to store, always required. | |
uint8_t | subIndexOD |
Sub index in OD objects 1010 and 1011, from 2 to 127. | |
uint8_t | attr |
Attribute from CO_storage_attributes_t, always required. | |
void * | storageModule |
Pointer to storage module, target system specific usage, required with Data storage in eeprom. | |
uint16_t | crc |
CRC checksum of the data stored in eeprom, set on store, required with Data storage in eeprom. | |
size_t | eepromAddrSignature |
Address of entry signature inside eeprom, set by init, required with Data storage in eeprom. | |
size_t | eepromAddr |
Address of data inside eeprom, set by init, required with Data storage in eeprom. | |
size_t | offset |
Offset of next byte being updated by automatic storage, required with Data storage in eeprom. | |
void * | additionalParameters |
Additional target specific parameters, optional. | |
Data storage object for one entry.
Must be defined in the CO_driver_target.h file.
For more information on Data storage see Data storage base or CO_storage.h file. Structure members documented here are always required or required with Data storage in eeprom. Target system may add own additional, hardware specific variables.
uint8_t CO_storage_entry_t::subIndexOD |
Sub index in OD objects 1010 and 1011, from 2 to 127.
Writing 0x65766173 to 1010,subIndexOD will store data to non-volatile memory Writing 0x64616F6C to 1011,subIndexOD will restore default data, always required.