OpcUaCanOpen
CANopen OPC-UA server
KVCanScan Class Reference

#include <kvcan.h>

Inherits CCanAccess.

Public Member Functions

 KVCanScan ()
 
virtual ~KVCanScan ()
 
virtual bool createBUS (const char *, const char *)
 
virtual bool sendMessage (short cobID, unsigned char len, unsigned char *message)
 
virtual bool sendRemoteRequest (short cobID)
 
virtual bool getErrorMessage (long error, char **message)
 
- Public Member Functions inherited from CCanAccess
 CCanAccess ()
 
std::string & getBusName ()
 
void setBusName (std::string &name)
 
virtual ~CCanAccess ()
 
 CCanAccess ()
 
virtual bool createBUS (const char *, const char *, CCanCallback *ccc=0)=0
 
virtual void setCallBack (CCanCallback *callback)
 
int getCanBusHandler ()
 
void setCanBusHandler (int h)
 
char * getBusName ()
 
virtual ~CCanAccess ()
 

Private Member Functions

string getNamePort ()
 
bool sendErrorCode (long)
 
bool configureCanboard (const char *, const char *)
 

Static Private Member Functions

static void CANLIBAPI CanScanControlThread (canNotifyData *)
 

Private Attributes

canStatus bus_status
 
bool run_can
 
unsigned int numChannel
 
string canName
 
canHandle canObjHandler
 

Additional Inherited Members

- Public Attributes inherited from CCanAccess
boost::signals2::signal< void(const canMessage &) > canMessageCame
 
boost::signals2::signal< void(const int, const char *, timeval &) > canMessageError
 
- Protected Attributes inherited from CCanAccess
char * busName
 
int handler
 
CCanCallbackcb
 

Detailed Description

Definition at line 20 of file kvcan.h.

Constructor & Destructor Documentation

◆ KVCanScan()

KVCanScan::KVCanScan ( )

Definition at line 27 of file kvcan.cpp.

◆ ~KVCanScan()

KVCanScan::~KVCanScan ( )
virtual

Definition at line 121 of file kvcan.cpp.

Member Function Documentation

◆ CanScanControlThread()

void CANLIBAPI KVCanScan::CanScanControlThread ( canNotifyData *  cnd)
staticprivate

Definition at line 80 of file kvcan.cpp.

◆ configureCanboard()

bool KVCanScan::configureCanboard ( const char *  name,
const char *  parameters 
)
private

Definition at line 127 of file kvcan.cpp.

◆ createBUS()

bool KVCanScan::createBUS ( const char *  name,
const char *  parameters 
)
virtual

Implements CCanAccess.

Definition at line 248 of file kvcan.cpp.

◆ getErrorMessage()

bool KVCanScan::getErrorMessage ( long  error,
char **  message 
)
virtual

Reimplemented from CCanAccess.

Definition at line 256 of file kvcan.cpp.

◆ getNamePort()

string KVCanScan::getNamePort ( )
inlineprivate

Definition at line 32 of file kvcan.h.

◆ sendErrorCode()

bool KVCanScan::sendErrorCode ( long  status)
private

Definition at line 192 of file kvcan.cpp.

◆ sendMessage()

bool KVCanScan::sendMessage ( short  cobID,
unsigned char  len,
unsigned char *  message 
)
virtual

Implements CCanAccess.

Definition at line 210 of file kvcan.cpp.

◆ sendRemoteRequest()

bool KVCanScan::sendRemoteRequest ( short  cobID)
virtual

Implements CCanAccess.

Definition at line 231 of file kvcan.cpp.

Member Data Documentation

◆ bus_status

canStatus KVCanScan::bus_status
private

Definition at line 36 of file kvcan.h.

◆ canName

string KVCanScan::canName
private

Definition at line 40 of file kvcan.h.

◆ canObjHandler

canHandle KVCanScan::canObjHandler
private

Definition at line 44 of file kvcan.h.

◆ numChannel

unsigned int KVCanScan::numChannel
private

Definition at line 38 of file kvcan.h.

◆ run_can

bool KVCanScan::run_can
private

Definition at line 37 of file kvcan.h.


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