|
int | readSlot (long deviceID, int *errorCode, int slotNumber, unsigned char *buffer, int bufferLength) |
|
|
static EepromAPI * | getInstance () |
|
static void | shutdown () |
|
◆ readSlot()
int oceandirect::api::EepromAPI::readSlot |
( |
long |
deviceID, |
|
|
int * |
errorCode, |
|
|
int |
slotNumber, |
|
|
unsigned char * |
buffer, |
|
|
int |
bufferLength |
|
) |
| |
Read the value from the specified EEPROM slot.
- Parameters
-
deviceID | the ID of the device returned by getDeviceIDs. |
errorCode | a code indicating the result of the operation: ERROR_SUCCESS on success; ERROR_NO_DEVICE if the device does not exist; ERROR_FEATURE_NOT_FOUND the feature is not enabled on the specified device; ERROR_TRANSFER_ERROR the device protocol for the feature could not be found. |
slotNumber | the specified slot number. |
buffer | the buffer to receive the read value. |
bufferLength | the length of the buffer. |
- Returns
- the number of bytes read.
The documentation for this class was generated from the following file: