Changeset 4105
- Timestamp:
- 06/03/07 16:32:48 (6 years ago)
- Location:
- experimental/components/PacketizerSimpleBPSK
- Files:
-
- 2 added
- 3 modified
-
Makefile.am (modified) (1 diff)
-
atsrc (added)
-
atsrc/Packetizer_testsuite.h (added)
-
src/PacketizerDSP.cpp (modified) (1 diff)
-
src/PacketizerDSP.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
experimental/components/PacketizerSimpleBPSK/Makefile.am
r4104 r4105 18 18 xml/PacketizerSimpleBPSK.scd.xml \ 19 19 xml/PacketizerSimpleBPSK.spd.xml 20 # --- autotest --- 20 21 22 check_PROGRAMS = cxxtest autotest 23 autotest_SOURCES = autotest.cpp 24 autotest_LDADD = \ 25 PacketizerDSP.o \ 26 PNCodes.o 27 28 TESTS = autotest 29 30 cxxtest: 31 cxxtestgen.py --error-printer -o autotest.cpp \ 32 atsrc/Packetizer_testsuite.h 33 -
experimental/components/PacketizerSimpleBPSK/src/PacketizerDSP.cpp
r4104 r4105 43 43 } 44 44 45 // Sets pointers in controlBlock to appropriate control codes 46 void PacketizerDSP::ConfigureControl( unsigned char id ) 47 { 48 for (unsigned int i=7; i>0; i--) { 49 controlBlock[i-1] = ( id & 0x01 ) ? pnControlCode : pnControlCodeInv; 50 id >>= 1; 51 } 52 } 45 53 54 -
experimental/components/PacketizerSimpleBPSK/src/PacketizerDSP.h
r4104 r4105 45 45 char * pnSyncCode; 46 46 47 /// Pointer to packet control code48 char * pnControlCode;49 50 47 /// Array of control code pointers 51 48 char ** controlBlock; 52 49 53 50 /// Sets pointers in controlBlock to appropriate control codes 54 void ConfigureControl( char * control_data);51 void ConfigureControl( unsigned char id ); 55 52 56 53 private: