MCPcopy Create free account
hub / github.com/RangeNetworks/openbts / getNormalSNR

Method getNormalSNR

GSM/GSMTransfer.cpp:420–428  ·  view source on GitHub ↗

(pat 1-2014) Compute the SNR of an RxBurst that is a GSM "normal burst", ie, one used for TCH/FACCH rather than for RACCH or other. For this case we ignore the tail bits and training bits and consider only the data bits.

Source from the content-addressed store, hash-verified

418// one used for TCH/FACCH rather than for RACCH or other.
419// For this case we ignore the tail bits and training bits and consider only the data bits.
420float RxBurst::getNormalSNR() const
421{
422 SoftVector chunk1(this->segment(3,58)); // 57 data bits + stealing bit.
423 float snr1 = chunk1.getSNR();
424 SoftVector chunk2(this->segment(87,58)); // stealing bit + 57 data bits.
425 float snr2 = chunk2.getSNR();
426 assert(! chunk1.isOwner()); // Make sure the stupid SoftVector class really returned an alias.
427 return (snr1 + snr2) / 2.0;
428}
429
430
431

Callers 1

countSNRMethod · 0.80

Calls 2

segmentMethod · 0.80
isOwnerMethod · 0.80

Tested by

no test coverage detected