Initial commit of files
This commit is contained in:
60
daemons/cand/CanTxGenerator.h
Normal file
60
daemons/cand/CanTxGenerator.h
Normal file
@ -0,0 +1,60 @@
|
||||
//
|
||||
// Linux Daemon
|
||||
//
|
||||
|
||||
/* prevent multiple inclusions */
|
||||
#ifndef __CanTxGenerator__
|
||||
#define __CanTxGenerator__
|
||||
|
||||
/* includes *****************************************************************/
|
||||
|
||||
#include <pthread.h>
|
||||
|
||||
#include "Thread.h"
|
||||
#include "Mutex.h"
|
||||
#include "UdpCaster.h"
|
||||
#include "UdpThread.h"
|
||||
#include "LogData.h"
|
||||
|
||||
#include "CAN_Packet.h"
|
||||
|
||||
/* defines ******************************************************************/
|
||||
|
||||
/* macros *******************************************************************/
|
||||
|
||||
/* structs & typedefs *******************************************************/
|
||||
|
||||
/* c class definitions ******************************************************/
|
||||
|
||||
class CanTxGenerator : public UdpThread {
|
||||
// public data
|
||||
public:
|
||||
LogData Logging;
|
||||
unsigned long m_period;
|
||||
|
||||
// protected data
|
||||
protected:
|
||||
UdpClient *pCan;
|
||||
|
||||
// private data
|
||||
private:
|
||||
|
||||
// public methods
|
||||
public:
|
||||
// constructors
|
||||
CanTxGenerator();
|
||||
|
||||
// destructor
|
||||
virtual ~CanTxGenerator();
|
||||
|
||||
// public methods
|
||||
void SetPeriod(unsigned long period) {m_period=period;};
|
||||
|
||||
// virtual overrides
|
||||
void *Run(void*);
|
||||
|
||||
// private methods
|
||||
private:
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user