Changeset 5168
- Timestamp:
- 10/02/07 10:55:00 (6 years ago)
- Location:
- experimental/components/Packetizer/trunk/Packetizer-metadata/src
- Files:
-
- 5 modified
-
Depacketizer.cpp (modified) (13 diffs)
-
Depacketizer.h (modified) (3 diffs)
-
Packetizer.cpp (modified) (9 diffs)
-
Packetizer.h (modified) (4 diffs)
-
PacketizerDSP.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
experimental/components/Packetizer/trunk/Packetizer-metadata/src/Depacketizer.cpp
r4832 r5168 3 3 Copyright 2006 Virginia Polytechnic Institute and State University 4 4 5 This file is part of the OSSIE Depacketizer SimpleBPSK.6 7 OSSIE Depacketizer SimpleBPSKis free software; you can redistribute it and/or modify5 This file is part of the OSSIE Depacketizer. 6 7 OSSIE Depacketizer is free software; you can redistribute it and/or modify 8 8 it under the terms of the GNU General Public License as published by 9 9 the Free Software Foundation; either version 2 of the License, or 10 10 (at your option) any later version. 11 11 12 OSSIE Depacketizer SimpleBPSKis distributed in the hope that it will be useful,12 OSSIE Depacketizer is distributed in the hope that it will be useful, 13 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 16 16 17 17 You should have received a copy of the GNU General Public License 18 along with OSSIE Depacketizer SimpleBPSK; if not, write to the Free Software18 along with OSSIE Depacketizer; if not, write to the Free Software 19 19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 20 … … 25 25 #include <iostream> 26 26 #include <fstream> 27 #include "Depacketizer SimpleBPSK.h"27 #include "Depacketizer.h" 28 28 29 29 #undef LOGGING … … 36 36 #define BIT1 1 37 37 38 Depacketizer SimpleBPSK_i::DepacketizerSimpleBPSK_i(const char *uuid, omni_condition *condition) : Resource_impl(uuid), component_running(condition)38 Depacketizer_i::Depacketizer_i(const char *uuid, omni_condition *condition) : Resource_impl(uuid), component_running(condition) 39 39 { 40 40 dataIn = new standardInterfaces_i::realChar_p("bitsIn"); … … 52 52 } 53 53 54 Depacketizer SimpleBPSK_i::~DepacketizerSimpleBPSK_i(void)54 Depacketizer_i::~Depacketizer_i(void) 55 55 { 56 56 delete dataIn; … … 58 58 } 59 59 60 void Depacketizer SimpleBPSK_i::run( void * data )61 { 62 ((Depacketizer SimpleBPSK_i*) data)->run_loop();63 } 64 65 CORBA::Object_ptr Depacketizer SimpleBPSK_i::getPort( const char* portName ) throw (CORBA::SystemException, CF::PortSupplier::UnknownPort)66 { 67 DEBUG(3, Depacketizer SimpleBPSK, "getPort() invoked with : " << portName)60 void Depacketizer_i::run( void * data ) 61 { 62 ((Depacketizer_i*) data)->run_loop(); 63 } 64 65 CORBA::Object_ptr Depacketizer_i::getPort( const char* portName ) throw (CORBA::SystemException, CF::PortSupplier::UnknownPort) 66 { 67 DEBUG(3, Depacketizer, "getPort() invoked with : " << portName) 68 68 69 69 CORBA::Object_var p; … … 83 83 } 84 84 85 void Depacketizer SimpleBPSK_i::start() throw (CORBA::SystemException, CF::Resource::StartError)86 { 87 DEBUG(3, Depacketizer SimpleBPSK, "start() invoked")88 } 89 90 void Depacketizer SimpleBPSK_i::stop() throw (CORBA::SystemException, CF::Resource::StopError)85 void Depacketizer_i::start() throw (CORBA::SystemException, CF::Resource::StartError) 86 { 87 DEBUG(3, Depacketizer, "start() invoked") 88 } 89 90 void Depacketizer_i::stop() throw (CORBA::SystemException, CF::Resource::StopError) 91 91 { 92 DEBUG(3, Depacketizer SimpleBPSK, "stop() invoked")93 } 94 95 void Depacketizer SimpleBPSK_i::releaseObject() throw (CORBA::SystemException, CF::LifeCycle::ReleaseError)96 { 97 DEBUG(3, Depacketizer SimpleBPSK, "releaseObject() invoked")92 DEBUG(3, Depacketizer, "stop() invoked") 93 } 94 95 void Depacketizer_i::releaseObject() throw (CORBA::SystemException, CF::LifeCycle::ReleaseError) 96 { 97 DEBUG(3, Depacketizer, "releaseObject() invoked") 98 98 99 99 component_running->signal(); 100 100 } 101 101 102 void Depacketizer SimpleBPSK_i::initialize() throw (CF::LifeCycle::InitializeError, CORBA::SystemException)103 { 104 DEBUG(3, Depacketizer SimpleBPSK, "initialize() invoked")105 } 106 107 void Depacketizer SimpleBPSK_i::configure(const CF::Properties& props) throw (CORBA::SystemException, CF::PropertySet::InvalidConfiguration, CF::PropertySet::PartialConfiguration)108 { 109 DEBUG(3, Depacketizer SimpleBPSK, "configure() invoked")110 111 DEBUG(3, Depacketizer SimpleBPSK, "props length : " << props.length())112 } 113 114 115 void Depacketizer SimpleBPSK_i::run_loop()116 { 117 DEBUG(3, Depacketizer SimpleBPSK, "run_loop() thread started")102 void Depacketizer_i::initialize() throw (CF::LifeCycle::InitializeError, CORBA::SystemException) 103 { 104 DEBUG(3, Depacketizer, "initialize() invoked") 105 } 106 107 void Depacketizer_i::configure(const CF::Properties& props) throw (CORBA::SystemException, CF::PropertySet::InvalidConfiguration, CF::PropertySet::PartialConfiguration) 108 { 109 DEBUG(3, Depacketizer, "configure() invoked") 110 111 DEBUG(3, Depacketizer, "props length : " << props.length()) 112 } 113 114 115 void Depacketizer_i::run_loop() 116 { 117 DEBUG(3, Depacketizer, "run_loop() thread started") 118 118 119 119 #ifdef LOGGING … … 136 136 dataIn->getData(bits_in, metadata); 137 137 N = bits_in->length(); 138 DEBUG(7, Depacketizer SimpleBPSK, "got " << N << " samples")138 DEBUG(7, Depacketizer, "got " << N << " samples") 139 139 140 140 #ifdef LOGGING … … 155 155 if ( abs(rxy) > pnSyncCodeThreshold ) { 156 156 invertBits = ( rxy < 0 ) ? true : false; 157 DEBUG(5, Depacketizer SimpleBPSK, "SYNC CODE FOUND, inversion: " << invertBits)158 DEBUG(5, Depacketizer SimpleBPSK, " sync rxy = " << rxy)157 DEBUG(5, Depacketizer, "SYNC CODE FOUND, inversion: " << invertBits) 158 DEBUG(5, Depacketizer, " sync rxy = " << rxy) 159 159 operationalMode = EXTRACT_CONTROL_CODES; 160 160 inputBuffer.Release(); … … 167 167 168 168 if ( numBitsExtracted == PN_CONTROL_CODE_LENGTH ) { 169 DEBUG(5, Depacketizer SimpleBPSK, "Extracting control code " << numControlCodesExtracted)169 DEBUG(5, Depacketizer, "Extracting control code " << numControlCodesExtracted) 170 170 rxy = CorrelateSequence( pnCtrlCode, PN_CONTROL_CODE_LENGTH ); 171 171 controlSequence[numControlCodesExtracted] = invertBits ? -rxy : rxy; 172 DEBUG(5, Depacketizer SimpleBPSK, " rxy = " << controlSequence[numControlCodesExtracted])172 DEBUG(5, Depacketizer, " rxy = " << controlSequence[numControlCodesExtracted]) 173 173 numControlCodesExtracted++; 174 174 numBitsExtracted = 0; … … 176 176 177 177 if ( numControlCodesExtracted == NUM_CONTROL_CODES ) { 178 DEBUG(5, Depacketizer SimpleBPSK, "CONTROL CODES EXTRACTED");178 DEBUG(5, Depacketizer, "CONTROL CODES EXTRACTED"); 179 179 DecodeControlSequence(); 180 DEBUG(5, Depacketizer SimpleBPSK, "Packet ID: " << controlOutput)180 DEBUG(5, Depacketizer, "Packet ID: " << controlOutput) 181 181 182 182 // Set mode to extract data block … … 192 192 193 193 if ( numBitsExtracted == DATA_BLOCK_LENGTH ) { 194 DEBUG(1, Depacketizer SimpleBPSK, "DATA BLOCK EXTRACTED!");194 DEBUG(1, Depacketizer, "DATA BLOCK EXTRACTED!"); 195 195 196 DEBUG(1, Depacketizer SimpleBPSK, "pushing " << data_block_out.length() << " data samples")196 DEBUG(1, Depacketizer, "pushing " << data_block_out.length() << " data samples") 197 197 metadata->packet_id = (unsigned int) controlOutput; 198 198 dataOut->pushPacket( data_block_out, *metadata ); … … 214 214 215 215 } 216 DEBUG(3, Depacketizer SimpleBPSK, "run_loop() has ended")216 DEBUG(3, Depacketizer, "run_loop() has ended") 217 217 #ifdef LOGGING 218 218 output_bits_log.close(); -
experimental/components/Packetizer/trunk/Packetizer-metadata/src/Depacketizer.h
r4831 r5168 3 3 Copyright 2006 Virginia Polytechnic Institute and State University 4 4 5 This file is part of the OSSIE Depacketizer SimpleBPSK.5 This file is part of the OSSIE Depacketizer. 6 6 7 OSSIE Depacketizer SimpleBPSKis free software; you can redistribute it and/or modify7 OSSIE Depacketizer is free software; you can redistribute it and/or modify 8 8 it under the terms of the GNU General Public License as published by 9 9 the Free Software Foundation; either version 2 of the License, or 10 10 (at your option) any later version. 11 11 12 OSSIE Depacketizer SimpleBPSKis distributed in the hope that it will be useful,12 OSSIE Depacketizer is distributed in the hope that it will be useful, 13 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 16 16 17 17 You should have received a copy of the GNU General Public License 18 along with OSSIE Depacketizer SimpleBPSK; if not, write to the Free Software18 along with OSSIE Depacketizer; if not, write to the Free Software 19 19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 20 … … 35 35 #include "standardinterfaces/realChar_p.h" 36 36 37 #include " DepacketizerDSP.h"37 #include "PacketizerDSP.h" 38 38 39 class Depacketizer SimpleBPSK_i : public virtual Resource_impl, public DepacketizerDSP39 class Depacketizer_i : public virtual Resource_impl, public PacketizerDSP 40 40 { 41 public:42 DepacketizerSimpleBPSK_i(const char *uuid, omni_condition *sem);43 ~DepacketizerSimpleBPSK_i(void);41 public: 42 Depacketizer_i(const char *uuid, omni_condition *sem); 43 ~Depacketizer_i(void); 44 44 45 void start() throw (CF::Resource::StartError, CORBA::SystemException);46 void stop() throw (CF::Resource::StopError, CORBA::SystemException);47 void static run( void * data );45 void start() throw (CF::Resource::StartError, CORBA::SystemException); 46 void stop() throw (CF::Resource::StopError, CORBA::SystemException); 47 void static run( void * data ); 48 48 49 CORBA::Object_ptr getPort( const char* portName ) throw (CF::PortSupplier::UnknownPort, CORBA::SystemException);49 CORBA::Object_ptr getPort( const char* portName ) throw (CF::PortSupplier::UnknownPort, CORBA::SystemException); 50 50 51 void releaseObject() throw (CF::LifeCycle::ReleaseError, CORBA::SystemException);51 void releaseObject() throw (CF::LifeCycle::ReleaseError, CORBA::SystemException); 52 52 53 void initialize() throw (CF::LifeCycle::InitializeError, CORBA::SystemException);54 void configure(const CF::Properties&) throw (CORBA::SystemException, CF::PropertySet::InvalidConfiguration, CF::PropertySet::PartialConfiguration);53 void initialize() throw (CF::LifeCycle::InitializeError, CORBA::SystemException); 54 void configure(const CF::Properties&) throw (CORBA::SystemException, CF::PropertySet::InvalidConfiguration, CF::PropertySet::PartialConfiguration); 55 55 56 56 57 private:58 DepacketizerSimpleBPSK_i();59 DepacketizerSimpleBPSK_i(DepacketizerSimpleBPSK_i&);57 private: 58 Depacketizer_i(); 59 Depacketizer_i(Depacketizer_i&); 60 60 61 void run_loop(); 62 63 omni_condition *component_running; // for component shutdown 64 omni_thread *processing_thread; // for component writer function 65 omni_mutex accessPrivateData; // for asynchronous configure() invocation 66 67 CORBA::Long simple_0_value; 68 CORBA::Long simple_1_value; 69 CORBA::Long simple_2_value; 61 void run_loop(); 70 62 71 72 //list components provides and uses ports 73 standardInterfaces_i::realChar_p *dataIn; 74 standardInterfaces_i::realChar_u *dataOut; 75 standardInterfaces::MetaData *metadata; 63 omni_condition *component_running; // for component shutdown 64 omni_thread *processing_thread; // for component writer function 65 omni_mutex accessPrivateData; // for asynchronous configure() invocation 66 67 CORBA::Long simple_0_value; 68 CORBA::Long simple_1_value; 69 CORBA::Long simple_2_value; 76 70 77 // ----- algorithm methods ----- 71 72 //list components provides and uses ports 73 standardInterfaces_i::realChar_p *dataIn; 74 standardInterfaces_i::realChar_u *dataOut; 75 standardInterfaces::MetaData *metadata; 78 76 79 unsigned int numControlCodesExtracted; 80 unsigned int numBitsExtracted; 81 int pnSyncCodeThreshold; ///< 82 bool invertBits; ///< negative correlation indicator 77 // ----- algorithm methods ----- 83 78 84 /// Operational mode 85 enum { 86 EXTRACT_PN_SYNC_CODE, 87 EXTRACT_CONTROL_CODES, 88 EXTRACT_DATA_BLOCK 89 } operationalMode; 79 unsigned int numControlCodesExtracted; 80 unsigned int numBitsExtracted; 81 int pnSyncCodeThreshold; ///< 82 bool invertBits; ///< negative correlation indicator 83 84 /// Operational mode 85 enum { 86 EXTRACT_PN_SYNC_CODE, 87 EXTRACT_CONTROL_CODES, 88 EXTRACT_DATA_BLOCK 89 } operationalMode; 90 90 91 91 -
experimental/components/Packetizer/trunk/Packetizer-metadata/src/Packetizer.cpp
r4836 r5168 3 3 Copyright 2006 Virginia Polytechnic Institute and State University 4 4 5 This file is part of the OSSIE Packetizer SimpleBPSK.5 This file is part of the OSSIE Packetizer. 6 6 7 OSSIE Packetizer SimpleBPSKis free software; you can redistribute it and/or modify7 OSSIE Packetizer is free software; you can redistribute it and/or modify 8 8 it under the terms of the GNU General Public License as published by 9 9 the Free Software Foundation; either version 2 of the License, or 10 10 (at your option) any later version. 11 11 12 OSSIE Packetizer SimpleBPSKis distributed in the hope that it will be useful,12 OSSIE Packetizer is distributed in the hope that it will be useful, 13 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 16 16 17 17 You should have received a copy of the GNU General Public License 18 along with OSSIE Packetizer SimpleBPSK; if not, write to the Free Software18 along with OSSIE Packetizer; if not, write to the Free Software 19 19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 20 … … 24 24 #include <string> 25 25 #include <iostream> 26 #include "Packetizer SimpleBPSK.h"26 #include "Packetizer.h" 27 27 28 Packetizer SimpleBPSK_i::PacketizerSimpleBPSK_i(const char *uuid, omni_condition *condition) : Resource_impl(uuid), component_running(condition)28 Packetizer_i::Packetizer_i(const char *uuid, omni_condition *condition) : Resource_impl(uuid), component_running(condition) 29 29 { 30 30 dataIn = new standardInterfaces_i::realChar_p("bitsIn"); … … 40 40 41 41 42 Packetizer SimpleBPSK_i::~PacketizerSimpleBPSK_i(void)42 Packetizer_i::~Packetizer_i(void) 43 43 { 44 44 delete dataIn; … … 46 46 } 47 47 48 void Packetizer SimpleBPSK_i::Run( void * data )48 void Packetizer_i::Run( void * data ) 49 49 { 50 ((Packetizer SimpleBPSK_i*) data)->RunLoop();50 ((Packetizer_i*) data)->RunLoop(); 51 51 } 52 52 53 CORBA::Object_ptr Packetizer SimpleBPSK_i::getPort( const char* portName ) throw (CORBA::SystemException, CF::PortSupplier::UnknownPort)53 CORBA::Object_ptr Packetizer_i::getPort( const char* portName ) throw (CORBA::SystemException, CF::PortSupplier::UnknownPort) 54 54 { 55 DEBUG(3, Packetizer SimpleBPSK, "PacketizerSimpleBPSK_i getPort called with : " << portName)55 DEBUG(3, Packetizer, "Packetizer_i getPort called with : " << portName) 56 56 57 57 CORBA::Object_var p; … … 73 73 } 74 74 75 void Packetizer SimpleBPSK_i::start() throw (CORBA::SystemException, CF::Resource::StartError)75 void Packetizer_i::start() throw (CORBA::SystemException, CF::Resource::StartError) 76 76 { 77 DEBUG(3, Packetizer SimpleBPSK, "start invoked")77 DEBUG(3, Packetizer, "start invoked") 78 78 } 79 79 80 void Packetizer SimpleBPSK_i::stop() throw (CORBA::SystemException, CF::Resource::StopError)80 void Packetizer_i::stop() throw (CORBA::SystemException, CF::Resource::StopError) 81 81 { 82 DEBUG(3, Packetizer SimpleBPSK, "stop invoked")82 DEBUG(3, Packetizer, "stop invoked") 83 83 } 84 84 85 void Packetizer SimpleBPSK_i::releaseObject() throw (CORBA::SystemException, CF::LifeCycle::ReleaseError)85 void Packetizer_i::releaseObject() throw (CORBA::SystemException, CF::LifeCycle::ReleaseError) 86 86 { 87 DEBUG(3, Packetizer SimpleBPSK, "releaseObject invoked")87 DEBUG(3, Packetizer, "releaseObject invoked") 88 88 89 89 component_running->signal(); 90 90 } 91 91 92 void Packetizer SimpleBPSK_i::initialize() throw (CF::LifeCycle::InitializeError, CORBA::SystemException)92 void Packetizer_i::initialize() throw (CF::LifeCycle::InitializeError, CORBA::SystemException) 93 93 { 94 DEBUG(3, Packetizer SimpleBPSK, "initialize invoked")94 DEBUG(3, Packetizer, "initialize invoked") 95 95 } 96 96 97 void Packetizer SimpleBPSK_i::configure(const CF::Properties& props) throw (CORBA::SystemException, CF::PropertySet::InvalidConfiguration, CF::PropertySet::PartialConfiguration)97 void Packetizer_i::configure(const CF::Properties& props) throw (CORBA::SystemException, CF::PropertySet::InvalidConfiguration, CF::PropertySet::PartialConfiguration) 98 98 { 99 DEBUG(3, Packetizer SimpleBPSK, "configure invoked")99 DEBUG(3, Packetizer, "configure invoked") 100 100 101 DEBUG(3, Packetizer SimpleBPSK, "props length : " << props.length())101 DEBUG(3, Packetizer, "props length : " << props.length()) 102 102 } 103 103 104 104 // Writes control block data to output sequence 105 void Packetizer SimpleBPSK_i::WriteControlBlock( PortTypes::CharSequence &bitsOut )105 void Packetizer_i::WriteControlBlock( PortTypes::CharSequence &bitsOut ) 106 106 { 107 107 char * c; … … 115 115 } 116 116 117 void Packetizer SimpleBPSK_i::RunLoop()117 void Packetizer_i::RunLoop() 118 118 { 119 DEBUG(3, Packetizer SimpleBPSK, "RunLoop thread started")119 DEBUG(3, Packetizer, "RunLoop thread started") 120 120 121 121 PortTypes::CharSequence bits_out; … … 134 134 dataIn->getData(data_bits_in, metadata); 135 135 N = data_bits_in->length(); 136 DEBUG(5, Packetizer SimpleBPSK, "got " << N << " data samples")136 DEBUG(5, Packetizer, "got " << N << " data samples") 137 137 if ( N != 400 ) 138 std::cout << "WARNING: Packetizer SimpleBPSKdid not get exactly 400 data bits" << std::endl;138 std::cout << "WARNING: Packetizer did not get exactly 400 data bits" << std::endl; 139 139 ///\todo: do not assume input data block size is always 400 140 140 141 DEBUG(7, Packetizer SimpleBPSK, "copying control data")141 DEBUG(7, Packetizer, "copying control data") 142 142 ConfigureControl( metadata->packet_id ); 143 143 WriteControlBlock( bits_out ); 144 144 145 DEBUG(7, Packetizer SimpleBPSK, "copying data block")145 DEBUG(7, Packetizer, "copying data block") 146 146 for (unsigned int i=0; i<400; i++) 147 147 bits_out[i_data+i] = (*data_bits_in)[i]; 148 148 149 DEBUG(5, Packetizer SimpleBPSK, "pushing data " << N << " samples...")149 DEBUG(5, Packetizer, "pushing data " << N << " samples...") 150 150 dataOut->pushPacket( bits_out, *metadata ); 151 151 … … 154 154 } 155 155 156 DEBUG(5, Packetizer SimpleBPSK, "process exiting")156 DEBUG(5, Packetizer, "process exiting") 157 157 processing_thread->exit(); 158 158 } -
experimental/components/Packetizer/trunk/Packetizer-metadata/src/Packetizer.h
r4996 r5168 3 3 Copyright 2006 Virginia Polytechnic Institute and State University 4 4 5 This file is part of the OSSIE Packetizer SimpleBPSK.5 This file is part of the OSSIE Packetizer. 6 6 7 OSSIE Packetizer SimpleBPSKis free software; you can redistribute it and/or modify7 OSSIE Packetizer is free software; you can redistribute it and/or modify 8 8 it under the terms of the GNU General Public License as published by 9 9 the Free Software Foundation; either version 2 of the License, or 10 10 (at your option) any later version. 11 11 12 OSSIE Packetizer SimpleBPSKis distributed in the hope that it will be useful,12 OSSIE Packetizer is distributed in the hope that it will be useful, 13 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 16 16 17 17 You should have received a copy of the GNU General Public License 18 along with OSSIE Packetizer SimpleBPSK; if not, write to the Free Software18 along with OSSIE Packetizer; if not, write to the Free Software 19 19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 20 … … 36 36 #include "PacketizerDSP.h" 37 37 38 class Packetizer SimpleBPSK_i : public virtual Resource_impl, public PacketizerDSP38 class Packetizer_i : public virtual Resource_impl, public PacketizerDSP 39 39 { 40 40 public: 41 41 /// Initializing constructor 42 Packetizer SimpleBPSK_i(const char *uuid, omni_condition *sem);42 Packetizer_i(const char *uuid, omni_condition *sem); 43 43 44 44 /// Destructor 45 ~Packetizer SimpleBPSK_i(void);45 ~Packetizer_i(void); 46 46 47 47 /// … … 74 74 private: 75 75 /// Disallow default constructor 76 Packetizer SimpleBPSK_i();76 Packetizer_i(); 77 77 78 78 /// Disallow copy constructor 79 Packetizer SimpleBPSK_i(PacketizerSimpleBPSK_i&);79 Packetizer_i(Packetizer_i&); 80 80 81 81 /// Main signal processing loop -
experimental/components/Packetizer/trunk/Packetizer-metadata/src/PacketizerDSP.h
r4830 r5168 52 52 }; 53 53 54 /// Packet type 55 enum PacketType { 56 LOW_LATENCY, ///< 57 RELIABLE_DATA ///< 58 }; 59 54 60 /** \brief 55 61 * … … 66 72 protected: 67 73 // Physical layer definitions 68 char * pn _sync_code;///< packet synchronization code74 char * pnSyncCode; ///< packet synchronization code 69 75 char * pn_eom_code; ///< packet eom sync code 70 76 … … 80 86 81 87 // Transport layer definitions 82 enum packet_type;///< packet type identifier88 PacketType packet_type; ///< packet type identifier 83 89 unsigned long packet_id; ///< packet identifier 84 90 unsigned long port_id; ///< port identifier … … 87 93 // ... 88 94 95 /// Array of control code pointers 96 char ** controlBlock; 97 89 98 /// Sets pointers in controlBlock to appropriate control codes 90 99 void ConfigureControl( unsigned char id );