##// END OF EJS Templates
Plugin modified to allow the launch of interactiv tests from the python interpreter...
Plugin modified to allow the launch of interactiv tests from the python interpreter the signal processPacketStoreNowSig is sent by the SLOT processPacketStoreLater(unsigned int delay) the SLOT WriteSPWDelay(QList<int> dataList, unsigned int delay) allows the storage of a TC for a sending after "delay" ms

File last commit:

r11:0c9852fa341b default
r11:0c9852fa341b default
Show More
stardundee.h
105 lines | 3.4 KiB | text/x-c | CLexer
Initial commit: rmapplugin fully operational with the GRESB Ethernet/SpaceWire bridge.
r0 #ifndef STARDUNDEE_H
#define STARDUNDEE_H
#include <QWidget>
#include <QPushButton>
#include <QGridLayout>
#include <QSpinBox>
#include <QLabel>
Minor updates
r3 #include <QSemaphore>
the two bridges, Star Dundee and GRESB are fully functional
r10 #include <QTimer>
#include <QDialog>
paul@pc-solar1.lab-lpp.local
First version with the Star Dundee bridge operational
r1 #include "rmapoperations.h"
the two bridges, Star Dundee and GRESB are fully functional
r10 #include "spw_usb_api.h"
#include "spw_config_library.h"
Plugin modified to allow the launch of interactiv tests from the python interpreter...
r11 #include "ccsds.h"
paul@pc-solar1.lab-lpp.local
First version with the Star Dundee bridge operational
r1
#define BWAIT_0 0
#define BWAIT_1 1
Plugin modified to allow the launch of interactiv tests from the python interpreter...
r11 #define PATH_ADDRESSING_OFFSET 1
Initial commit: rmapplugin fully operational with the GRESB Ethernet/SpaceWire bridge.
r0
class StarDundee : public QWidget
{
Q_OBJECT
public:
explicit StarDundee(QWidget *parent = 0);
~StarDundee();
Minor updates
r3 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);
Initial commit: rmapplugin fully operational with the GRESB Ethernet/SpaceWire bridge.
r0
Plugin modified to allow the launch of interactiv tests from the python interpreter...
r11 unsigned int storeCCSDSPacket(unsigned char *ccsdsPacket, unsigned int size);
QList<ccsdsPacketToProcess_t> ccsdsPacketStore;
Initial commit: rmapplugin fully operational with the GRESB Ethernet/SpaceWire bridge.
r0 signals:
void sendMessage(QString message);
Minor updates
r3 void isOpen(bool);
paul@pc-solar1.lab-lpp.local
First version with the Star Dundee bridge operational
r1 void RMAP_write_reply_setText(QString);
void appendToLog(QString);
Minor updates
r3 void ccsdsPacketAvailable(unsigned char*, unsigned int);
Plugin modified to allow the launch of interactiv tests from the python interpreter...
r11 void packetStoreNotEmpty();
Initial commit: rmapplugin fully operational with the GRESB Ethernet/SpaceWire bridge.
r0
public slots:
changes on the gresb class, several methods and parameters added
r6 void Open();
void Close();
Plugin modified to allow the launch of interactiv tests from the python interpreter...
r11 void reTestSPWLink();
int receiveSPWPacketLoop(unsigned char requestID=0);
int receiveSPWPacket(unsigned char requestID=0);
Minor updates
r3 void commandCodeHasChanged(RMAP_command_codes code) {this->commandCode = code;}
void targetHasChanged(int target) {rmapTargetLogicalAddress = (unsigned char) target;}
Plugin modified to allow the launch of interactiv tests from the python interpreter...
r11 void sourceHasChanged(int source) {rmapSourceLogicalAddress = (unsigned char) source;}
the two bridges, Star Dundee and GRESB are fully functional
r10 void ccsdsPacketIsProcessed() {ccsdsPacketSEMAPHORE->tryAcquire();}
//
void receivePollingLoop();
Initial commit: rmapplugin fully operational with the GRESB Ethernet/SpaceWire bridge.
r0
private:
Minor updates
r3 unsigned int WriteBLOCK(char *data,unsigned int nbBytes,unsigned int address=0);
unsigned int ReadBLOCK(unsigned int nbBytes,unsigned int address=0);
the two bridges, Star Dundee and GRESB are fully functional
r10 void acquireRMAPSemaphore() {rmapPacketSEMAPHORE->tryAcquire();}
void acquireCCSDSSemaphore() {ccsdsPacketSEMAPHORE->tryAcquire();}
unsigned char setRoutingTableEntry(int tableEntry, U32 dwOutputPorts);
Initial commit: rmapplugin fully operational with the GRESB Ethernet/SpaceWire bridge.
r0
changes on the gresb class, object ready for usage in the rmapplugin
r7 unsigned int getLinkStatus(unsigned char link);
Plugin modified to allow the launch of interactiv tests from the python interpreter...
r11 unsigned int GetRoutingTableEntry(int tableEntry);
changes on the gresb class, object ready for usage in the rmapplugin
r7
Minor updates
r3 unsigned char rmapTargetLogicalAddress ;
unsigned char rmapSourceLogicalAddress ;
Minor changes
r5 RMAP_command_codes commandCode;
Minor updates
r3
Initial commit: rmapplugin fully operational with the GRESB Ethernet/SpaceWire bridge.
r0 QLabel *usbDeviceNumber_LABEL;
paul@pc-solar1.lab-lpp.local
First version with the Star Dundee bridge operational
r1 QLabel *linkNumber_LABEL;
the two bridges, Star Dundee and GRESB are fully functional
r10 QLabel *starDundeeStatusQueryDialogLabel;
Initial commit: rmapplugin fully operational with the GRESB Ethernet/SpaceWire bridge.
r0
QSpinBox *usbDeviceNumber_SPINBOX;
paul@pc-solar1.lab-lpp.local
First version with the Star Dundee bridge operational
r1 QSpinBox *linkNumber_SPINBOX;
QGridLayout *connection_LAYOUT;
the two bridges, Star Dundee and GRESB are fully functional
r10 QGridLayout *starDundeeStatusQueryDialogLayout;
QDialog *starDundeeStatusQueryDialog;
QPushButton *starDundeeStatusQueryRetryButton;
QPushButton *starDundeeStatusQueryAbortButton;
QTimer *timer;
paul@pc-solar1.lab-lpp.local
First version with the Star Dundee bridge operational
r1
Plugin modified to allow the launch of interactiv tests from the python interpreter...
r11 unsigned char pBuffer[10]; // Pointer to the start of the user buffer from which to transmit data
USB_SPACEWIRE_ID pIdentifierRead; // A pointer to a variable which will be set to contain a unique identifier for the read
USB_SPACEWIRE_ID pIdentifier;
paul@pc-solar1.lab-lpp.local
First version with the Star Dundee bridge operational
r1
star_device_handle hDevice; // Handle to the SpaceWire device
USB_SPACEWIRE_STATUS result; // The result of the send operation
Initial commit: rmapplugin fully operational with the GRESB Ethernet/SpaceWire bridge.
r0
Minor updates
r3 // 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;
Initial commit: rmapplugin fully operational with the GRESB Ethernet/SpaceWire bridge.
r0 };
#endif // STARDUNDEE_H