Abstract interface used by the CLProtocol driver to use a serial port. More...
#include <ISerial.h>
Public Member Functions | |
virtual CLINT32 CLPROTOCOL | clGetSupportedBaudRates (CLUINT32 *baudRates)=0 |
returns the valid baud rates of the current interface. More... | |
virtual CLINT32 CLPROTOCOL | clSerialRead (CLINT8 *buffer, CLUINT32 *bufferSize, CLUINT32 serialTimeOut)=0 |
calls clSerialRead as defined by the camera link standard More... | |
virtual CLINT32 CLPROTOCOL | clSerialWrite (CLINT8 *buffer, CLUINT32 *bufferSize, CLUINT32 serialTimeOut)=0 |
calls clSerialWrite as defined by the camera link standard More... | |
virtual CLINT32 CLPROTOCOL | clSetBaudRate (CLUINT32 baudRate)=0 |
This function sets the baud rate for the serial port of the selected device. More... | |
Abstract interface used by the CLProtocol driver to use a serial port.
|
pure virtual |
returns the valid baud rates of the current interface.
as described by serialRefPtr. See Table B-2 of the Camera Link docu for more information on constants.
baudRates | Bitfield that describes all supported baud rates of the serial port |
Implemented in CLProtocol::CCLPort, and CLProtocol::CCLAllAdapter.
|
pure virtual |
calls clSerialRead as defined by the camera link standard
buffer | Points to a user-allocated buffer. Upon a successful call, buffer contains the data read from the serial device. Upon failure, this buffer is not affected. Caller should ensure that buffer is at least numBytes in size. |
bufferSize | This is the number of bytes requested by the caller. |
serialTimeOut | Indicates the timeout in milliseconds. |
Implemented in CLProtocol::CCLPort, and CLProtocol::CCLAllAdapter.
|
pure virtual |
calls clSerialWrite as defined by the camera link standard
buffer | Contains data to write to the serial device. |
bufferSize | Contains the buffer size indicating the number of bytes to be written. Upon a successful call, bufferSize contains the number of bytes written to the serial device. |
serialTimeOut | Indicates the timeout in milliseconds. |
Implemented in CLProtocol::CCLPort, and CLProtocol::CCLAllAdapter.
|
pure virtual |
This function sets the baud rate for the serial port of the selected device.
values represented by the CL_BAUDRATE constants in table B-2. By default, the baud rate for serial communication is 9600.
baudRate | The baud rate you want to use. This parameter expects the |
Implemented in CLProtocol::CCLAllAdapter, and CLProtocol::CCLPort.