Go to the documentation of this file.
27 #ifndef CO_OD_STORAGE_H
28 #define CO_OD_STORAGE_H
unsigned long int uint32_t
UNSIGNED32 in CANopen (0007h), 32-bit unsigned integer.
Definition: CO_driver.h:155
Interface between CAN hardware and CANopenNode.
int CO_OD_storage_restoreSecure(char *filename)
Remove OD storage file.
Definition: CO_OD_storage.c:181
CO_ReturnError_t CO_OD_storage_autoSave(CO_OD_storage_t *odStor, uint32_t timer1usDiff, uint32_t delay_us)
Automatically save memory block if differs from file.
Definition: CO_OD_storage.c:292
Object Dictionary storage object.
Definition: CO_OD_storage.h:105
CO_SDO_abortCode_t CO_ODF_1010(CO_ODF_arg_t *ODF_arg)
Callback for use inside CO_OD_configure() function for OD object 1010.
Definition: CO_OD_storage.c:42
CO_ReturnError_t
Return values of some CANopen functions.
Definition: CO_driver.h:488
uint8_t * odAddress
From CO_OD_storage_init()
Definition: CO_OD_storage.h:106
int CO_OD_storage_saveSecure(uint8_t *odAddress, uint32_t odSize, char *filename)
Save memory block to a file.
Definition: CO_OD_storage.c:102
void CO_OD_storage_autoSaveClose(CO_OD_storage_t *odStor)
Closes file opened by CO_OD_storage_autoSave.
Definition: CO_OD_storage.c:369
CANopen Service Data Object - server protocol.
CO_ReturnError_t CO_OD_storage_init(CO_OD_storage_t *odStor, uint8_t *odAddress, uint32_t odSize, char *filename)
Initialize OD storage object and load data from file.
Definition: CO_OD_storage.c:224
CO_SDO_abortCode_t CO_ODF_1011(CO_ODF_arg_t *ODF_arg)
Callback for use inside CO_OD_configure() function for OD object 1011.
Definition: CO_OD_storage.c:72
CO_SDO_abortCode_t
SDO abort codes.
Definition: CO_SDOserver.h:333
FILE * fp
If CO_OD_storage_autoSave() is used, file stays opened and fp is stored here.
Definition: CO_OD_storage.h:110
uint32_t lastSavedUs
used with CO_OD_storage_autoSave.
Definition: CO_OD_storage.h:111
uint32_t odSize
From CO_OD_storage_init()
Definition: CO_OD_storage.h:107
char * filename
From CO_OD_storage_init()
Definition: CO_OD_storage.h:108
unsigned char uint8_t
UNSIGNED8 in CANopen (0005h), 8-bit unsigned integer.
Definition: CO_driver.h:151