Go to the documentation of this file.
14 #ifndef CANSERIAL_PEAK_H_
15 #define CANSERIAL_PEAK_H_
95 int BaudrateToBaudrateCode(
unsigned long baudrate );
120 cCANSerial_PEAK(
unsigned long _baudrate,
double _timeout,
int _id_read,
int _id_write,
const char *device=
"/dev/pcanusb0" );
166 int write(
char const *ptr,
int len=0 );
176 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...
virtual void Close(void)=0
Close the previously opened communication channel.
#define NAMESPACE_SDH_END
Low-level communication class to access a serial port.
int id_write
the CAN ID used for writing
virtual bool IsOpen(void)=0
Return true if communication channel is open.
Derived exception class for low-level serial communication related exceptions.
Low-level communication class to access a CAN port from company PEAK (http://www.peak-system....
int tErrorCode
type of the error code, DWORD on windows and int on Linux/cygwin
internal hardware specific implementation details of the lowlevel PEAK CAN interface
int id_read
the CAN ID used for reading
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.
cCANSerial_PEAK_Internal * pimpl
ptr to private, implementation specific members (using the 'Pimpl' (pointer to implementatino) design...
cCANSerial_PEAKException(cMsg const &_msg)
unsigned long baudrate
the baudrate to use in bit/s
#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)
Derived exception class for low-level CAN PEAK related exceptions.
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:
virtual tErrorCode GetErrorNumber()
sdhlibrary_cpp
Author(s): Dirk Osswald
autogenerated on Wed Mar 2 2022 01:00:58