- // get high/low thresholds
- int high, low;
- getHiLo(BitStream,10, &high, &low, 100, 100);
- // get zero crossing
- uint8_t zeroC = (high-low)/2+low;
- uint8_t clk[]={8,16,32,40,50,64,100,128};
- uint8_t fcLens[] = {0,0,0,0,0,0,0,0,0,0};
- uint16_t fcCnts[] = {0,0,0,0,0,0,0,0,0,0};
- uint8_t rfLens[] = {0,0,0,0,0,0,0,0,0,0,0};
- // uint8_t rfCnts[] = {0,0,0,0,0,0,0,0,0,0};
- uint8_t fcLensFnd = 0;
+ uint8_t clk[] = {8,16,32,40,50,64,100,128,0};
+ uint16_t rfLens[] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
+ uint8_t rfCnts[] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};