int eth32_get_eeprom(eth32 handle, int address, int length, void *buffer);
handle - The value returned by the eth32_open function.
address - The starting location from which data should be retrieved (0-255).
length - The number of bytes to retrieve. 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 into which the data should be stored. This must be at least as long as the number of bytes you are requesting.
This function returns zero on success and a negative error code on failure. Please see the Error Codes section for possible error codes.