Changeset 5581
- Timestamp:
- 10/30/07 08:06:19 (6 years ago)
- Location:
- experimental/components/CIREN_SM/trunk/CIREN_SM
- Files:
-
- 2 modified
-
CIREN_SM.cpp (modified) (2 diffs)
-
CIREN_SM.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
experimental/components/CIREN_SM/trunk/CIREN_SM/CIREN_SM.cpp
r5580 r5581 310 310 { 311 311 // initialize with blank values 312 for (unsigned int i=0; i<64; i++) 313 c[i] = 210; // 1101 0010 312 memset(c, 0, 64); 314 313 315 314 c[0] = 211; // inband/outband signal … … 323 322 c[5+i] = SSR_NONE; 324 323 324 } 325 326 void CIREN_SM_i::ScrambleControlPacket(unsigned char *c) 327 { 328 for (unsigned int i=0; i<64; i++) 329 c[i] ^= 0xD2; // 1101 0010 325 330 } 326 331 -
experimental/components/CIREN_SM/trunk/CIREN_SM/CIREN_SM.h
r5580 r5581 100 100 void ProcessControl(); 101 101 102 /// Ensures that the packet doesn't contain all zeros 103 void ScrambleControlPacket(unsigned char *c); 104 102 105 /// Initialize control packet 103 106 void InitializeControlPacket(unsigned char *c);