17 #ifndef LEANSDR_IESS_H 18 #define LEANSDR_IESS_H 43 for (
u8 *pin =
in.
rd(), *pend = pin + count, *pout =
out.
wr();
44 pin < pend; ++pin, ++pout)
46 u8 byte_in = *pin, byte_out = 0;
47 for (
int b = 8; b--; byte_in <<= 1)
50 int bit_in = (byte_in & 128) ? 1 : 0;
52 int counter_overflow = (
counter == 31) ? 1 : 0;
54 int bit_out = (taps ^ counter_overflow ^ bit_in ^ 1) & 1;
62 byte_out = (byte_out << 1) | bit_out;
79 #endif // LEANSDR_IESS_H
etr192_descrambler(scheduler *sch, pipebuf< u8 > &_in, pipebuf< u8 > &_out)
void written(unsigned long n)
void read(unsigned long n)
T min(const T &x, const T &y)