##// END OF EJS Templates
changes on the gresb class, object ready for usage in the rmapplugin
changes on the gresb class, object ready for usage in the rmapplugin

File last commit:

r7:7c1589fec151 default
r7:7c1589fec151 default
Show More
gresb.h
99 lines | 3.0 KiB | text/x-c | CLexer
paul@pc-solar1.lab-lpp.local
Initial commit
r2 #ifndef GRESB_H
#define GRESB_H
#include <QWidget>
#include <QLabel>
#include <QPushButton>
#include <QSpinBox>
#include <QGridLayout>
changes on the gresb class, several methods and parameters added
r6 #include <QTcpSocket>
#include <QDialog>
changes on the gresb class, object ready for usage in the rmapplugin
r7 #include <QSemaphore>
changes on the gresb class, several methods and parameters added
r6
#include "gresbstatusenquiry.h"
#include "spwpacketreceiver.h"
#include "rmapoperations.h"
paul@pc-solar1.lab-lpp.local
Initial commit
r2 #include "qipdialogbox.h"
class gresb : public QWidget
{
Q_OBJECT
public:
explicit gresb(QWidget *parent = 0);
changes on the gresb class, several methods and parameters added
r6 ~gresb();
unsigned int Write(unsigned int *Value,unsigned int count,unsigned int address=0);
unsigned int Read(unsigned int *Value,unsigned int count,unsigned int address=0);
unsigned int WriteSPW(char *Value, unsigned int count, char targetLogicalAddress, char userApplication);
changes on the gresb class, object ready for usage in the rmapplugin
r7 //unsigned int getLinkStatus(unsigned char link);
paul@pc-solar1.lab-lpp.local
Initial commit
r2
signals:
changes on the gresb class, several methods and parameters added
r6 void sendMessage(QString message);
void isOpen(bool);
void RMAP_write_reply_setText(QString);
void appendToLog(QString);
void ccsdsPacketAvailable(unsigned char*, unsigned int);
paul@pc-solar1.lab-lpp.local
Initial commit
r2 public slots:
changes on the gresb class, several methods and parameters added
r6 void Open();
void Close();
changes on the gresb class, object ready for usage in the rmapplugin
r7 int receiveSPWPacket(unsigned char requestID=0);
void processCCSDSPacket(unsigned char *ccsdsPacket, unsigned int size);
changes on the gresb class, several methods and parameters added
r6 void commandCodeHasChanged(RMAP_command_codes code) {this->commandCode = code;}
void targetHasChanged(int target) {rmapTargetLogicalAddress = (unsigned char) target;}
void sourceHasChanged(int target) {rmapSourceLogicalAddress = (unsigned char) target;}
private slots:
int GRESBStatusQuery();
paul@pc-solar1.lab-lpp.local
Initial commit
r2
private:
changes on the gresb class, object ready for usage in the rmapplugin
r7 unsigned int WriteBLOCK(char *data,unsigned int nbBytes,unsigned int address=0);
unsigned int ReadBLOCK(unsigned int nbBytes,unsigned int address=0);
void acquireRMAPSemaphore() {rmapPacketSEMAPHORE->acquire();}
void acquireCCSDSSemaphore() {ccsdsPacketSEMAPHORE->acquire();}
changes on the gresb class, several methods and parameters added
r6 int GRESBStatusQueryRequest(GresbStatusQueryOption option, char link);
unsigned char rmapTargetLogicalAddress ;
unsigned char rmapSourceLogicalAddress ;
RMAP_command_codes commandCode;
QPushButton *gresbStatusQueryRetryButton;
QPushButton *gresbStatusQueryAbortButton;
paul@pc-solar1.lab-lpp.local
Initial commit
r2 QLabel *gresbBridgeIPLabel;
QLabel *gresbVirtualLinkLabel;
QLabel *spwLinkLabel;
QLabel *rmapSourceLogicalAddressLabel;
QLabel *rmapSendStateLabel;
QLabel *rmapReceiveStateLabel;
QLabel *gresbStatusQueryLabel;
changes on the gresb class, several methods and parameters added
r6 QLabel *gresbStatusQueryDialogLabel;
QDialog *gresbStatusQueryDialog;
paul@pc-solar1.lab-lpp.local
Initial commit
r2
QIPDialogBox* gresbBridgeIPDialogBox;
QSpinBox *gresbVirtualLinkSpinBox;
QSpinBox *spwLinkSpinBox;
QSpinBox *rmapSourceLogicalAddressSpinBox;
QGridLayout *connectionLayout;
changes on the gresb class, several methods and parameters added
r6 QGridLayout *gresbStatusQueryDialogLayout;
QTcpSocket *RMAPSend_SOCKET;
QTcpSocket *RMAPReceive_SOCKET;
QTcpSocket *GRESBStatusQuery_SOCKET;
changes on the gresb class, object ready for usage in the rmapplugin
r7 gresbStatusEnquiry* spwLinkStatusEnquiry;
changes on the gresb class, several methods and parameters added
r6
changes on the gresb class, object ready for usage in the rmapplugin
r7 // Packet receiver
QSemaphore *rmapPacketSEMAPHORE;
QSemaphore *ccsdsPacketSEMAPHORE;
char* rmapPacket; // The buffer to receive RMAP READ packets
unsigned char *ccsdsPacket;
char *spwPacket;
unsigned int rmapPacketSize;
unsigned int ccsdsPacketSize;
paul@pc-solar1.lab-lpp.local
Initial commit
r2 };
#endif // GRESB_H