imgSessionSerialWrite
Usage
rval imgSessionSerialWrite(SESSION_ID sid, const void* buffer, uInt32* bufSize, uInt32 timeout);
Purpose
Writes data to the serial port. Serial communication parameters, such as baud rate, are set in the camera file associated with the session. You can adjust these communication parameters directly in the camera file.
Parameters
Name | Type | Direction |
sid | SESSION_ID | input |
buffer | const void* | input |
bufSize | uInt32* | input/output |
timeout | uInt32 | input |
rval | Int32 | output |
Parameter Discussion
sid: valid SESSION_ID.
buffer: data to send.
bufSize: on input, the number of bytes to send. On return, the number of bytes written.
timeout: time, in milliseconds, to wait for the data to be written.
Return Value
This function returns 0 on success. On failure, this function returns an error code. For information about the error code, call imgShowError.