#ifndef RMAPPLUGINPYTHONWRAPPER_H #define RMAPPLUGINPYTHONWRAPPER_H #include #include #include #include #include #include "rmapoperations.h" #include "ccsds.h" #include "tcpackettosend.h" #include "tmpackettoread.h" class rmappluginPythonWrapper : public genericPySysdriver { Q_OBJECT public: explicit rmappluginPythonWrapper(QObject *parent = 0); QList *ccsdsPacketStore; void processPacketStore(); unsigned int storeCCSDSPacket(unsigned char *ccsdsPacket, unsigned int size); QList TCPacketStore; QTimer *timer; signals: void ccsdsPacketIsAvailable(unsigned int size); void wakeUpCallingThread(); unsigned int WriteSPWSig(char *Value, unsigned int count, char targetLogicalAddress, char userApplication); void updateTargetAddress(unsigned char newAddress); void updateSourceAddress(unsigned char newAddress); void activateTCLoopSig(); void processPacketStoreNowSig(); void sendMessage(QString message); int fetchPacketSig(); void nbPacketHasChanged(int nb); public slots: QList ReadSPW(unsigned int size=0); int fetchPacket() {return emit fetchPacketSig();} void WriteSPW(QList dataList); void WriteSPWDelay(QList 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);} void setTargetAddressValue(unsigned int address); void setSourceAddressValue(unsigned int address); void ProcessPendingEvents(); void BlockAllSignals(); }; #endif // RMAPPLUGINPYTHONWRAPPER_H