29 #ifndef CLPROTOCOL_CLPORT_H 30 #define CLPROTOCOL_CLPORT_H 53 # define CLPORT_PERSISTENCE_MAGIC "{3DFD485D-0ADB-4d84-9956-C3766504A2DD}" 57 # pragma warning (push ) 58 # pragma warning( disable:4275) // warning C4275: non dll-interface class 'GenApi::CPortImpl' used as base for dll-interface class 'CLProtocol::CCLPort' 99 static void GetDeviceIDTemplates( GENICAM_NAMESPACE::gcstring_vector &DeviceIDTemplates );
115 static void StopProbing(
CLUINT32 toStop);
125 static void UnRegisterSerials( );
128 static void Terminate( );
161 void GetXMLIDs( GENICAM_NAMESPACE::gcstring_vector &XMLIDs );
208 void SetSerialTimeOut(
const CLUINT32 Timeout);
220 void SetDeviceBauderate(
const CLUINT32 baudrate);
232 static void StorePortIDDeviceIDPairs( GENICAM_NAMESPACE::gcstring_vector &PortIDs, GENICAM_NAMESPACE::gcstring_vector &DeviceIDs );
235 static void RetrievePortIDDeviceIDPairs( GENICAM_NAMESPACE::gcstring_vector &PortIDs, GENICAM_NAMESPACE::gcstring_vector &DeviceIDs );
298 static void InitPortIDs(
void);
308 void CheckError(
CLINT32 ErrorCode )
const;
311 static void CheckLastError();
317 void UnLoadProtocolDriver( );
431 # pragma warning(pop) 435 #endif // CLPROTOCOL_CLPORT_H C++ class wrapping CLSerialAll and CLProtocolDriver.
std::map< GENICAM_NAMESPACE::gcstring, ISerialAdapter * > SerialPortMap
A map holding the pointers to the serial adapters.
bool m_protocolHasLogLevelPrm
true if you can set the log level
bool m_protocolHasLoggerPrm
true if you can set the logger
void(CLPROTOCOL * clp_logger_t)(CLINT32 level, const char *stringFormat, va_list argptr)
const CLUINT32 CLINT8 CLUINT32 const CLUINT32 TimeOut
CLP_PARAMS
Types of parameters to be accessed by clpGetParam/clpSetParam.
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT int64_t Address
CLALLSERIALEXPORT CLINT32 CLALLSERIALCC clGetSupportedBaudRates(hSerRef serialRef, CLUINT32 *baudRates)
Abstract interface used by the CLProtocol driver to use a serial port.
const CLINT8 CLINT8 CLUINT32 CLUINT32 const CLUINT32 TimeOut
const CLUINT32 const BOOL8 const CLUINT32 TimeOut
Common GenICam base include file.
static CLUINT32 m_stopProbing
probe of device is stopped
virtual bool Connect(IPort *pPort, const GENICAM_NAMESPACE::gcstring &PortName) const =0
Connects a port to a port node with given name.
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT int64_t int64_t Length
const CLUINT32 const CLINT64 CLINT8 const CLINT64 const CLUINT32 TimeOut
const CLUINT32 const CLINT8 CLINT8 CLUINT32 const CLUINT32 TimeOut
bool m_protocolHasBaudratePrms
true if you can set baud rate via the CLProtocol's function interface
static SerialPortMap * s_pSerialList
A list of all available proxies in the system.
static bool s_IsSerialListInitialized
indicates if s_pSerialList is initialized
lib_handle_t m_hPortDriverDLL
handle to the port driver DLL loaded
Wraps a CameraLink protocol DLL and implements the IPort and the ISerial interfaceThe class dynamical...
CLALLSERIALEXPORT CLINT32 CLALLSERIALCC clSerialWrite(hSerRef serialRef, CLINT8 *buffer, CLUINT32 *bufferSize, CLUINT32 serialTimeout)
virtual IBoolean & operator=(bool Value)
Set node value.
static SerialPortMap * s_pPrivateSerialList
A list of all available proxies registers manually.
CLProtocol exception type.
ISerialAdapter * m_pSerialAdapter
A proxy to the serial port used by the CCLPort object.
Exported C functions for camera link protocol drivers.
CLALLSERIALEXPORT CLINT32 CLALLSERIALCC clSetBaudRate(hSerRef serialRef, CLUINT32 baudRate)
A string class which is a clone of std::string.
const CLUINT32 const CLINT64 const CLINT8 const CLINT64 const CLUINT32 TimeOut
CLUINT32 m_SerialTimeOut
Timeout in [ms].
enum GENAPI_NAMESPACE::_EAccessMode EAccessMode
access mode of a node
static CLP_LOG_LEVEL_VALUE m_defaultloglevel
Default log level.
Standard implementation for a port !
virtual void Write(const void *pBuffer, int64_t Address, int64_t Length)=0
Writes a chunk of bytes to the port.
GENICAM_NAMESPACE::gcstring m_PortID
the PortID of the connected device
GENICAM_NAMESPACE::gcstring m_DeviceID
the DeviceID of the connected device
C++ class wrapping CLSerialAll.
GENICAM_NAMESPACE::gcstring_vector StringList_t
A list of strings.
bool m_protocolHasStopProbeDevice
true if you can set stop probing
CLINT8 CLUINT32 * errorTextSize
C++ class wrapping CLSerialAll and CLProtocolDriver.
CLP_LOG_LEVEL_VALUE logLevel
Exported C functions for camera link protocol drivers.
CLALLSERIALEXPORT CLINT32 CLALLSERIALCC clSerialRead(hSerRef serialRef, CLINT8 *buffer, CLUINT32 *bufferSize, CLUINT32 serialTimeout)
CLINT8 CLUINT32 * pBufferSize
enum GENAPI_NAMESPACE::_EInterfaceType EInterfaceType
typedef for interface type