automotive-message-broker  0.14.803
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | List of all members
obdLib Class Reference

Public Types

enum  ObdError {
  NODATA =0, NOTCONNECTED, OTHER, SERIALWRITEERROR,
  SERIALREADERROR, TIMEOUT, NONE
}
 
enum  DebugLevel {
  DEBUG_VERY_VERBOSE =0, DEBUG_VERBOSE =1, DEBUG_INFO =2, DEBUG_WARN =3,
  DEBUG_ERROR =4, DEBUG_FATAL =5
}
 

Public Member Functions

int openPort (const char *portName, int baudrate)
 
int openPort (const int fd, int baudrate)
 
int openPort (const char *portName)
 
void setPortHandle (HANDLE hdnl)
 
int initPort ()
 
int closePort ()
 
bool connected ()
 
void flush ()
 
void setDebugCallback (void(*callbackptr)(const char *, void *, obdLib::DebugLevel), void *)
 
void setCommsCallback (void(*callbackptr)(const char *, void *), void *)
 
std::string monitorModeReadLine ()
 
std::string getVersion ()
 
bool sendObdRequest (const char *req, int len, std::vector< byte > *reply)
 
bool sendObdRequest (const char *req, int length, std::vector< byte > *reply, int sleep, int timeout)
 
bool sendObdRequestString (const char *req, int len, std::vector< byte > *reply, int sleeptime)
 
bool sendObdRequestString (const char *req, int length, std::vector< byte > *reply, int sleeptime, int timeout)
 
bool sendObdRequestString (const char *req, int len, std::vector< byte > *reply)
 
bool sendObdRequest (const char *req, int len)
 
bool sendObdRequest (const char *req, int len, int timeout)
 
ObdError lastError ()
 

Static Public Member Functions

static byte byteArrayToByte (byte b1, byte b2)
 

The documentation for this class was generated from the following file: