OpenEtherCATsociety / SOES

Simple Open Source EtherCAT Slave
Other
559 stars 244 forks source link

Improve emulated EEPROM reload handling #179

Closed nakarlsson closed 2 months ago

nakarlsson commented 3 months ago

Add variable to control if ESC support read size 4 or 8 Byte. Depends on ESC.

Add variable and function to set user function to perform emulated EEPROM reload.

Add EEPROM error codes that can be used to indicatë crc error on reload.

Fixes #178

nakarlsson commented 3 months ago

When writing samples I got a idea of an alternative implementation.

Second option is to pass eep_stat_t stat; as pointer to the custom reload. The custom reload will via that know the address. It can update the crc error directly... Eg. it can be a function, void (reload_ptr) (eep_stat_t stat).

What do you think?

nakarlsson commented 2 months ago

Go for alternative 2 #180