@@ -330,15 +330,17 @@ def configure_integer(self, pll, divider, inverted=False):
330
330
control |= pll .clock_control_enabled
331
331
control |= 1 << 6 # Enable integer mode.
332
332
if inverted :
333
- control |= 0b00010000 # Bit 4 of the control register = CLKx_INV
333
+ control |= 0b00010000 # Bit 4 of the control register = CLKx_INV
334
334
else :
335
- control &= 0b11101111 # Make sure to turn it off if not inverted
335
+ control &= 0b11101111 # Make sure to turn it off if not inverted
336
336
self ._si5351 ._write_u8 (self ._control , control )
337
337
# Store the PLL and divisor value so frequency can be calculated.
338
338
self ._pll = pll
339
339
self ._divider = divider
340
340
341
- def configure_fractional (self , pll , divider , numerator , denominator , inverted = False ):
341
+ def configure_fractional (
342
+ self , pll , divider , numerator , denominator , inverted = False
343
+ ):
342
344
"""Configure the clock output with the specified PLL source
343
345
(should be a PLL instance on the SI5351 class) and specifiec
344
346
fractional divider with numerator/denominator. Again this is less
@@ -372,9 +374,9 @@ def configure_fractional(self, pll, divider, numerator, denominator, inverted=Fa
372
374
# Clock not inverted, powered up
373
375
control |= pll .clock_control_enabled
374
376
if inverted :
375
- control |= 0b00010000 # Bit 4 of the control register = CLKx_INV
377
+ control |= 0b00010000 # Bit 4 of the control register = CLKx_INV
376
378
else :
377
- control &= 0b11101111 # Make sure to turn it off if not inverted
379
+ control &= 0b11101111 # Make sure to turn it off if not inverted
378
380
self ._si5351 ._write_u8 (self ._control , control )
379
381
# Store the PLL and divisor value so frequency can be calculated.
380
382
self ._pll = pll
@@ -454,7 +456,7 @@ def outputs_enabled(self, val):
454
456
455
457
def reset_plls (self ):
456
458
"""Reset both PLLs. This is required when the phase between clocks
457
- needs to be non-random.
459
+ needs to be non-random.
458
460
459
461
See e.g.
460
462
0 commit comments