eth32_set_eeprom

int eth32_set_eeprom(eth32 handle, int address, int length, void *buffer);

Summary

This function stores data into the non-volatile EEPROM memory of the device. Writing to EEPROM memory is a relatively slow process, which will temporarily disrupt event monitoring on the device. See the user manual for specific timing information.

Parameters

  • handle - The value returned by the eth32_open function.

  • address - The starting location into which data should be stored (0-255).

  • length - The number of bytes to store. Valid values for this parameter depend on what is provided for the address parameter. For example, with an address of 0, you may specify a length of all 256 bytes, but with an address of 255, length may only be 1.

  • buffer - The buffer containing the data to be stored. This must be at least as long as the number of bytes you have requested to store.

Return Value

This function returns zero on success and a negative error code on failure. Please see the Error Codes section for possible error codes.

See Also

eth32_get_eeprom