##// END OF EJS Templates
Development of the waveform storage ability of the lfrgse
Development of the waveform storage ability of the lfrgse

File last commit:

r19:7f565009af54 default
r42:e422d9305701 default
Show More
rmapplugin.h
103 lines | 4.3 KiB | text/x-c | CLexer
Initial commit: rmapplugin fully operational with the GRESB Ethernet/SpaceWire bridge.
r0 /*------------------------------------------------------------------------------
-- This file is a part of the LPPMON Software
-- Copyright (C) 2011, Laboratory of Plasmas Physic - CNRS
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-------------------------------------------------------------------------------*/
/*-- Author : Alexis Jeandet
-- Mail : alexis.jeandet@lpp.polytechnique.fr
----------------------------------------------------------------------------*/
#ifndef DRIVER1_H
#define DRIVER1_H
#include <rmappluginui.h>
#include <rmapoperations.h>
#include <QMenuBar>
#include <QMenu>
#include <QAction>
#include <QMainWindow>
#include <QTcpSocket>
#include <QTime>
#include <ccsds.h>
#include <QSemaphore>
waveform display added for the normal mode...
r19 #include <wfpacket.h>
Initial commit: rmapplugin fully operational with the GRESB Ethernet/SpaceWire bridge.
r0
#include <lppmonplugin.h>
first version of the waveform display...
r17 #include "tmpackettoread.h"
Initial commit: rmapplugin fully operational with the GRESB Ethernet/SpaceWire bridge.
r0 #define APPENDTOLOG(message) this->UI->appendToLogFile(QTime::currentTime().toString() +":" + QString::number(QTime::currentTime().msec()) + ": " + message)
#define READ_WRITE_MAX_COUNTS 4096 // in words
#define RMAP_MAX_DATA_LENGTH 4*READ_WRITE_MAX_COUNTS // in bytes, shall be lower than the limit size of SPW packet of the GRESB bridge
#define RMAP_READ_REPLY_HEADER_LENGTH 12 // in bytes => ECSS
#define RMAP_READ_COMMAND_HEADER_LENGTH 16 // in bytes => ECSS
#define RMAP_DATA_CRC_LENGTH 1 // in bytes => ECSS
#define CCSDS_MAX_PACKET_LENGTH 4412 // in bytes, specified in the LFR Software Requirements Specification
class rmapplugin : public lppmonplugin
{
Q_OBJECT
public:
explicit rmapplugin(QWidget *parent = 0);
~rmapplugin();
first version of the waveform display...
r17 QList<TMPacketToRead*> generalCCSDSPacketStore;
void preProcessPacket(TMPacketToRead *packet);
waveform display added for the normal mode...
r19 WFPacket wfPacketNormal[4];
void buildWFAndDisplay(TMPacketToRead *packet, WFPacket *wfPacket, unsigned char num_page);
Initial commit: rmapplugin fully operational with the GRESB Ethernet/SpaceWire bridge.
r0
public slots:
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);
class gresb fully functional, writeSPW function not tested yet
r9 unsigned int WriteSPW(char *Value, unsigned int count, char targetLogicalAddress, char userApplication);
Plugin modified to allow the launch of interactiv tests from the python interpreter...
r11 void setValueTargetAddress(unsigned char newAddress);
void setValueSourceAddress(unsigned char newAddress);
class gresb fully functional, writeSPW function not tested yet
r9 void openBridge();
void closeBridge();
the two bridges, Star Dundee and GRESB are fully functional
r10 void processCCSDSPacket(unsigned char *ccsdsPacket, unsigned int size);
Plugin modified to allow the launch of interactiv tests from the python interpreter...
r11 void processPacketStore();
plugin updated, TM packet store reworked to store any TM continuously...
r13 void updatePacketStore(selectedBridge bridge);
waveform display added for the normal mode...
r19 void nbPacketHasChanged(int nb);
Last commit before installation on pc-alison
r12 int fetchPacket();
first version of the waveform display...
r17 void receivePacketFromBridge(TMPacketToRead* packet);
Initial commit: rmapplugin fully operational with the GRESB Ethernet/SpaceWire bridge.
r0 //
Minor updates
r3 void displayOnConsole(QString message) {this->UI->console->append(message);}
Initial commit: rmapplugin fully operational with the GRESB Ethernet/SpaceWire bridge.
r0 //
paul@pc-solar1.lab-lpp.local
First version with the Star Dundee bridge operational
r1 void RMAP_write_reply_setText(QString text);
void appendToLog(QString text);
class gresb fully functional, writeSPW function not tested yet
r9 //
void activatePlugin(bool flag) {emit activateSig(flag);}
Minor updates
r3 void bridgeHasChanged(selectedBridge bridge) {currentBridge = bridge;}
Initial commit: rmapplugin fully operational with the GRESB Ethernet/SpaceWire bridge.
r0
signals:
the two bridges, Star Dundee and GRESB are fully functional
r10 void ccsdsPacketIsProcessed();
waveform display added for the normal mode...
r19 void updateStatistics(unsigned char pid, unsigned char cat,
unsigned char typ, unsigned char sub,
unsigned int sid, unsigned int length,
unsigned int coarse_t, unsigned int fine_t);
Initial commit: rmapplugin fully operational with the GRESB Ethernet/SpaceWire bridge.
r0
private:
paul@pc-solar1.lab-lpp.local
First version with the Star Dundee bridge operational
r1 selectedBridge currentBridge;
Initial commit: rmapplugin fully operational with the GRESB Ethernet/SpaceWire bridge.
r0 rmapPluginUI* UI;
QTcpSocket* GRESBStatusQuery_SOCKET;
QTcpSocket* RMAPSend_SOCKET;
QTcpSocket* RMAPReceive_SOCKET;
ccsds* ccsds_command;
unsigned int rmapPacketSize;
unsigned int time_COARSE;
unsigned int time_FINE;
char timeCode;
};
#endif // DRIVER1_H