CANopenNode
CANopen protocol stack
Loading...
Searching...
No Matches
CO_eeprom.h
Go to the documentation of this file.
1
21#ifndef CO_EEPROM_H
22#define CO_EEPROM_H
23
24#include "301/CO_driver.h"
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
42bool_t CO_eeprom_init(void* storageModule);
43
56size_t CO_eeprom_getAddr(void* storageModule, bool_t isAuto, size_t len, bool_t* overflow);
57
66void CO_eeprom_readBlock(void* storageModule, uint8_t* data, size_t eepromAddr, size_t len);
67
81bool_t CO_eeprom_writeBlock(void* storageModule, uint8_t* data, size_t eepromAddr, size_t len);
82
92uint16_t CO_eeprom_getCrcBlock(void* storageModule, size_t eepromAddr, size_t len);
93
105bool_t CO_eeprom_updateByte(void* storageModule, uint8_t data, size_t eepromAddr);
106
107 /* CO_storage_eeprom */
108
109#ifdef __cplusplus
110}
111#endif /* __cplusplus */
112
113#endif /* CO_EEPROM_H */
Interface between CAN hardware and CANopenNode.
unsigned int uint16_t
UNSIGNED16 in CANopen (0006h), 16-bit unsigned integer.
Definition CO_driver.h:132
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
uint16_t CO_eeprom_getCrcBlock(void *storageModule, size_t eepromAddr, size_t len)
Get CRC checksum of the block of data stored in the eeprom, target system specific function.
void CO_eeprom_readBlock(void *storageModule, uint8_t *data, size_t eepromAddr, size_t len)
Read block of data from the eeprom, target system specific function.
bool_t CO_eeprom_writeBlock(void *storageModule, uint8_t *data, size_t eepromAddr, size_t len)
Write block of data to the eeprom, target system specific function.
bool_t CO_eeprom_init(void *storageModule)
Initialize eeprom device, target system specific function.
bool_t CO_eeprom_updateByte(void *storageModule, uint8_t data, size_t eepromAddr)
Update one byte of data in the eeprom, target system specific function.
size_t CO_eeprom_getAddr(void *storageModule, bool_t isAuto, size_t len, bool_t *overflow)
Get free address inside eeprom, target system specific function.