rmappluginpythonwrapper.h
74 lines
| 2.3 KiB
| text/x-c
|
CLexer
/ rmapplugin / rmappluginpythonwrapper.h
r0 | #ifndef RMAPPLUGINPYTHONWRAPPER_H | |||
#define RMAPPLUGINPYTHONWRAPPER_H | ||||
#include <QObject> | ||||
#include <genericPySysdriver.h> | ||||
#include <QList> | ||||
#include <QVariant> | ||||
r46 | #include <QTimer> | |||
r11 | #include "rmapoperations.h" | |||
#include "ccsds.h" | ||||
r46 | #include "tcpackettosend.h" | |||
#include "tmpackettoread.h" | ||||
r0 | ||||
class rmappluginPythonWrapper : public genericPySysdriver | ||||
{ | ||||
Q_OBJECT | ||||
public: | ||||
r58 | explicit rmappluginPythonWrapper(lppmonplugin *parent = 0); | |||
r11 | ||||
r13 | QList<TMPacketToRead*> *ccsdsPacketStore; | |||
r11 | void processPacketStore(); | |||
unsigned int storeCCSDSPacket(unsigned char *ccsdsPacket, unsigned int size); | ||||
QList<TCPacketToSend*> TCPacketStore; | ||||
QTimer *timer; | ||||
r0 | ||||
signals: | ||||
r11 | void ccsdsPacketIsAvailable(unsigned int size); | |||
void wakeUpCallingThread(); | ||||
unsigned int WriteSPWSig(char *Value, unsigned int count, char targetLogicalAddress, char userApplication); | ||||
r62 | // | |||
void updateTargetLogicalAddress(unsigned char newAddress); | ||||
void updateSourceLogicalAddress(unsigned char newAddress); | ||||
void updateSpaceWireLinkNumber(unsigned char newAddress); | ||||
// | ||||
r11 | void activateTCLoopSig(); | |||
void processPacketStoreNowSig(); | ||||
void sendMessage(QString message); | ||||
r12 | int fetchPacketSig(); | |||
r19 | void nbPacketHasChanged(int nb); | |||
r62 | ||||
//******************* | ||||
// TIMECODE SIGNALS | ||||
void sig_sendOneTimecode(); | ||||
r63 | void sig_sendTimecodePeriodically(unsigned char); | |||
r0 | ||||
public slots: | ||||
r12 | QList<QVariant> ReadSPW(unsigned int size=0); | |||
int fetchPacket() {return emit fetchPacketSig();} | ||||
r11 | void WriteSPW(QList<int> dataList); | |||
void WriteSPWDelay(QList<int> dataList, unsigned int delay=0); | ||||
void processPacketStoreLater(unsigned int delay); | ||||
void sendProcessPacketStoreNowSig(){emit processPacketStoreNowSig();} | ||||
void sendTCLoop(); | ||||
void sendTC(); | ||||
void reEmitWriteSPWSig(char *Value, unsigned int count, char targetLogicalAddress, char userApplication) | ||||
{emit WriteSPWSig(Value, count, targetLogicalAddress, userApplication);} | ||||
r62 | // | |||
void setValueTargetLogicalAddress(unsigned int address); | ||||
void setValueSourceLogicalAddress(unsigned int address); | ||||
void setValueSpaceWireLinkNumber(unsigned int linkNumber); | ||||
// | ||||
r11 | void ProcessPendingEvents(); | |||
r12 | void BlockAllSignals(); | |||
r62 | ||||
//******************* | ||||
// TIMECODE FUNCTIONS | ||||
void sendOneTimecode(); | ||||
r63 | void sendTimecodePeriodically(unsigned int onOff); | |||
r0 | ||||
}; | ||||
#endif // RMAPPLUGINPYTHONWRAPPER_H | ||||