int eth32_get_serialnum(eth32 handle, int *batch, int *unit);
This function retrieves the serial number of the ETH32 device in numeric format. It retrieves the batch number and the unit number, which are the two components of each device's serial number. To retrieve the serial number in string format, as it is printed on the device, please see the eth32_get_serialnum_string function.
handle - The value returned by the eth32_open function.
batch - Pointer to a variable which will receive the batch number portion of the serial number.
unit - Pointer to a variable which will receive the unit number portion of the serial number.
This function returns zero on success and a negative error code on failure. Please see the Error Codes section for possible error codes.