CANopenNode
CANopen protocol stack
Loading...
Searching...
No Matches
CO_eeprom.h File Reference

Eeprom interface for use with CO_storageEeprom. More...

#include "301/CO_driver.h"
+ Include dependency graph for CO_eeprom.h:

Go to the source code of this file.

Functions

bool_t CO_eeprom_init (void *storageModule)
 Initialize eeprom device, 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.
 
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.
 
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.
 
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.
 

Detailed Description

Eeprom interface for use with CO_storageEeprom.

Author
Janez Paternoster

This file is part of https://github.com/CANopenNode/CANopenNode, a CANopen Stack.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.