bitrev4
radio78 = (bitrev4(i) << 1) | 0x0020;
flipped = bitrev4(tmp);
flipped = (bitrev4(flipped) << 1) | 0x0020;