Go to the documentation of this file.
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
const CLUINT32 const CLINT8 CLINT8 CLUINT32 const CLUINT32 TimeOut
CLINT8 CLUINT32 * errorTextSize
enum GENAPI_NAMESPACE::_EAccessMode EAccessMode
access mode of a node
static CLP_LOG_LEVEL_VALUE m_defaultloglevel
Default log level.
Exported C functions for camera link protocol drivers.
ISerialAdapter * m_pSerialAdapter
A proxy to the serial port used by the CCLPort object.
CLP_PARAMS
Types of parameters to be accessed by clpGetParam/clpSetParam.
bool m_protocolHasBaudratePrms
true if you can set baud rate via the CLProtocol's function interface
virtual bool Connect(IPort *pPort, const GENICAM_NAMESPACE::gcstring &PortName) const =0
Connects a port to a port node with given name.
C++ class wrapping CLSerialAll and CLProtocolDriver.
std::map< GENICAM_NAMESPACE::gcstring, ISerialAdapter * > SerialPortMap
A map holding the pointers to the serial adapters.
Exported C functions for camera link protocol drivers.
A string class which is a clone of std::string.
const CLUINT32 CLINT8 CLUINT32 const CLUINT32 TimeOut
Wraps a CameraLink protocol DLL and implements the IPort and the ISerial interface.
const CLUINT32 const CLINT64 CLINT8 const CLINT64 const CLUINT32 TimeOut
CLALLSERIALEXPORT CLINT32 CLALLSERIALCC clSerialWrite(hSerRef serialRef, CLINT8 *buffer, CLUINT32 *bufferSize, CLUINT32 serialTimeout)
C++ class wrapping CLSerialAll and CLProtocolDriver.
const CLINT8 CLINT8 CLUINT32 CLUINT32 const CLUINT32 TimeOut
GENICAM_NAMESPACE::gcstring m_PortID
the PortID of the connected device
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_DeviceID
the DeviceID of the connected device
enum GENAPI_NAMESPACE::_EInterfaceType EInterfaceType
typedef for interface type
static SerialPortMap * s_pSerialList
A list of all available proxies in the system.
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT int64_t Address
lib_handle_t m_hPortDriverDLL
handle to the port driver DLL loaded
const CLUINT32 const CLINT64 const CLINT8 const CLINT64 const CLUINT32 TimeOut
static SerialPortMap * s_pPrivateSerialList
A list of all available proxies registers manually.
CLALLSERIALEXPORT CLINT32 CLALLSERIALCC clSetBaudRate(hSerRef serialRef, CLUINT32 baudRate)
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT int64_t int64_t Length
C++ class wrapping CLSerialAll.
bool m_protocolHasStopProbeDevice
true if you can set stop probing
CLINT8 CLUINT32 * pBufferSize
CLALLSERIALEXPORT CLINT32 CLALLSERIALCC clGetSupportedBaudRates(hSerRef serialRef, CLUINT32 *baudRates)
Common GenICam base include file.
CLALLSERIALEXPORT CLINT32 CLALLSERIALCC clSerialRead(hSerRef serialRef, CLINT8 *buffer, CLUINT32 *bufferSize, CLUINT32 serialTimeout)
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 const BOOL8 const CLUINT32 TimeOut
CLProtocol exception type.
CLP_LOG_LEVEL_VALUE logLevel
bool m_protocolHasLogLevelPrm
true if you can set the log level
static CLUINT32 m_stopProbing
probe of device is stopped
static bool s_IsSerialListInitialized
indicates if s_pSerialList is initialized
Abstract interface used by the CLProtocol driver to use a serial port.
virtual IBoolean & operator=(bool Value)
Set node value.
GENICAM_NAMESPACE::gcstring_vector StringList_t
A list of strings.
CLUINT32 m_SerialTimeOut
Timeout in [ms].
rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Wed Dec 4 2024 03:10:11