416// { //m goes from 0 to 31, since each byte has 8 bits, there are 32 bits
417// val = mask[(8 * 4 * d) + m]; //assigns to val the value of the corresponding bit. 0-31, 32-63, 64-95, 96-127. it goes through each of the 128 bits
814//void PSI46DigFirmware::setFrequencyRatio(std::string& buffer, int numerator, int denominator)
815//{
816// //The device need to load numerator minus one and denominator minus one, with an internal address of 0x50 and 052 respectively
817// protocolInstance_->write(buffer, STRIP_BCO_DCM, 0x80500000 + (numerator - 1)); // Set BCOCLK numerator // was 0x80500003
818// protocolInstance_->waitClear(buffer, STRIP_BCO_DCM, 0xf0000000); // Wait DCM write to finish // was 0x80000000
819//
820// protocolInstance_->write(buffer, STRIP_BCO_DCM, 0x80520000 + (denominator - 1)); // Set BCOCLK denominator // was 0x80520001
821// protocolInstance_->waitClear(buffer, STRIP_BCO_DCM, 0xf0000000); // Wait DCM write to finish - BCO frequency should be 13.513 MHz // was 0x80000000