##// END OF EJS Templates
plugin updated, TM packet store reworked to store any TM continuously...
plugin updated, TM packet store reworked to store any TM continuously test done in NORMAL mode

File last commit:

r9:bf36b48e03cd default
r13:482a184909ef default
Show More
bridge.h
54 lines | 1.7 KiB | text/x-c | CLexer
#ifndef BRIDGE_H
#define BRIDGE_H
#include <QWidget>
#include <QSemaphore>
#include <QGridLayout>
#include "rmapoperations.h"
class bridge : public QWidget
{
Q_OBJECT
public:
explicit bridge(QWidget *parent = 0);
~bridge();
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);
//virtual unsigned int WriteSPW(char *Value, unsigned int count, char targetLogicalAddress, char userApplication);
virtual unsigned int WriteBLOCK(char *data,unsigned int nbBytes,unsigned int address=0) = 0;
virtual unsigned int ReadBLOCK(unsigned int nbBytes,unsigned int address=0) = 0;
//virtual unsigned int getLinkStatus(unsigned char link) = 0;
unsigned char rmapTargetLogicalAddress ;
unsigned char rmapSourceLogicalAddress ;
RMAP_command_codes commandCode;
QGridLayout *bridge_LAYOUT;
QSemaphore *rmapPacketSEMAPHORE;
QSemaphore *ccsdsPacketSEMAPHORE;
char *spwPacket;
char* rmapPacket;
unsigned char *ccsdsPacket;
signals:
void sendMessage(QString message);
void isOpen(bool);
void RMAP_write_reply_setText(QString);
void appendToLog(QString);
void ccsdsPacketAvailable(unsigned char*, unsigned int);
public slots:
//unsigned int Open();
//unsigned int Close();
//virtual int receiveSPWPacket(unsigned char requestID) = 0;
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:
};
#endif // BRIDGE_H