Go to the documentation of this file.
30 #ifndef CANSERIAL_ESD_H_
31 #define CANSERIAL_ESD_H_
54 #define CAN_ESD_TXQUEUESIZE 32
57 #define CAN_ESD_RXQUEUESIZE 512
117 unsigned int BaudrateToBaudrateCode(
unsigned long baudrate );
142 cCANSerial_ESD(
int _net,
unsigned long _baudrate,
double _timeout,
int _id_read,
int _id_write );
179 int write(
char const *ptr,
int len=0 );
189 ssize_t
Read(
void *data, ssize_t
size,
long timeout_us,
bool return_on_less_data );
Interface of class #SDH::cSerialBase, a virtal base class to access serial communication channels lik...
Derived exception class for low-level CAN ESD related exceptions.
virtual void Close(void)=0
Close the previously opened communication channel.
#define NAMESPACE_SDH_END
Low-level communication class to access a serial port.
virtual bool IsOpen(void)=0
Return true if communication channel is open.
Derived exception class for low-level serial communication related exceptions.
internal hardware specific implementation details of the lowlevel ESD CAN interface
int tErrorCode
type of the error code, DWORD on windows and int on Linux/cygwin
unsigned long baudrate
the baudrate to use in bit/s
int id_write
the CAN ID used for writing
NAMESPACE_SDH_START typedef void * tDeviceHandle
generic device handle for CAN devices
virtual void SetTimeout(double _timeout)
set the timeout for next readline() calls (negative value means: no timeout, wait for ever)
Class for short, fixed maximum length text messages.
int id_read
the CAN ID used for reading
#define NAMESPACE_SDH_START
virtual void Open(void)=0
Open rs232 port port.
virtual char const * GetErrorMessage(tErrorCode dw)
Interface of the exception base class #SDH::cSDHLibraryException and #SDH::cMsg.
This file contains some basic definitions (defines, macros, datatypes)
cCANSerial_ESDException(cMsg const &_msg)
virtual ssize_t Read(void *data, ssize_t size, long timeout_us, bool return_on_less_data)=0
virtual int write(char const *ptr, int len=0)=0
Write data to a previously opened port.
This file contains settings to make the SDHLibrary compile on differen systems:
Low-level communication class to access a CAN port from company ESD (http://www.esd....
virtual tErrorCode GetErrorNumber()
int net
the ESD CAN net to use
cCANSerial_ESD_Internal * pimpl
ptr to private, implementation specific members (using the 'Pimpl' (pointer to implementatino) design...
sdhlibrary_cpp
Author(s): Dirk Osswald
autogenerated on Wed Mar 2 2022 01:00:58