Go to the documentation of this file.
30 #ifndef CLPROTOCOL_CLALLADAPTER_H
31 #define CLPROTOCOL_CLALLADAPTER_H
54 #if defined (_MSC_VER)
57 # if !defined(__x86_64) && !defined(__arm__) && !defined(__aarch64__) && !defined(VXWORKS)
58 # define __cdecl __attribute__((cdecl))
67 typedef std::map<GENICAM_NAMESPACE::gcstring, ISerialAdapter *>
SerialPortMap;
83 virtual CLINT32 SerialInit(
void);
84 virtual void SerialClose(
void);
85 virtual void CheckError(
CLINT32 ErrorCode );
89 static void GetPortIDs(GENICAM_NAMESPACE::gcstring_vector &TheVector);
130 #ifdef _DEBUG // Allow changing serial index to test error situations.
156 GENICAM_NAMESPACE::gcstring_vector PortIDs;
158 for (GENICAM_NAMESPACE::gcstring_vector::iterator it = PortIDs.begin(); it != PortIDs.end(); it++)
166 for (SerialPortMap::iterator it = portList.begin(); it != portList.end(); it++)
171 #endif //CLPROTOCOL_CLALLADAPTER_H
Exported C functions for camera link protocol drivers.
void GetPortMap(SerialPortMap &StdMap)
retrieves the list of port mapped by PortID
Wraps the CLAllSerial.dll.
std::map< GENICAM_NAMESPACE::gcstring, ISerialAdapter * > SerialPortMap
A map holding the pointers to the serial adapters.
A string class which is a clone of std::string.
CLALLSERIALEXPORT CLINT32 CLALLSERIALCC clSerialWrite(hSerRef serialRef, CLINT8 *buffer, CLUINT32 *bufferSize, CLUINT32 serialTimeout)
static void Destroy(ISerialAdapter *pAdapter)
Destroy the factory and all its objects.
static void GetPortIDs(GENICAM_NAMESPACE::gcstring_vector &TheVector)
used to copy the content of the SerialPort ma to a std::map
CLINT8 CLUINT32 CLINT8 CLUINT32 CLUINT32 * version
CLAllProxy m_clallproxy
CLALL functions pointers.
CLALLSERIALEXPORT CLINT32 CLALLSERIALCC clSetBaudRate(hSerRef serialRef, CLUINT32 baudRate)
hSerRef m_SerialRef
handle of the serial port
lib_handle_t m_ClAlldllHandle
handle to the loaded ClAllSerial DLL
CLUINT32 m_PreviousBaudRate
the previous baud rate as set via SetBaudRate; zero otherwise
static ISerialAdapter * GetSerialAdapter(GENICAM_NAMESPACE::gcstring PortID)
used to copy the content of the SerialPort ma to a std::map
CLALLSERIALEXPORT CLINT32 CLALLSERIALCC clGetSupportedBaudRates(hSerRef serialRef, CLUINT32 *baudRates)
void Destroy(SerialPortMap &portList)
Common GenICam base include file.
static SerialPortMap * g_pSerialPortMap
CLALLSERIALEXPORT CLINT32 CLALLSERIALCC clSerialRead(hSerRef serialRef, CLINT8 *buffer, CLUINT32 *bufferSize, CLUINT32 serialTimeout)
CLProtocol exception type.
CLINT8 CLUINT32 CLUINT32 serialTimeout
rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Wed Dec 4 2024 03:10:11