@@ -330,15 +330,17 @@ def configure_integer(self, pll, divider, inverted=False):
330330 control |= pll .clock_control_enabled
331331 control |= 1 << 6 # Enable integer mode.
332332 if inverted :
333- control |= 0b00010000 # Bit 4 of the control register = CLKx_INV
333+ control |= 0b00010000 # Bit 4 of the control register = CLKx_INV
334334 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
336336 self ._si5351 ._write_u8 (self ._control , control )
337337 # Store the PLL and divisor value so frequency can be calculated.
338338 self ._pll = pll
339339 self ._divider = divider
340340
341- def configure_fractional (self , pll , divider , numerator , denominator , inverted = False ):
341+ def configure_fractional (
342+ self , pll , divider , numerator , denominator , inverted = False
343+ ):
342344 """Configure the clock output with the specified PLL source
343345 (should be a PLL instance on the SI5351 class) and specifiec
344346 fractional divider with numerator/denominator. Again this is less
@@ -372,9 +374,9 @@ def configure_fractional(self, pll, divider, numerator, denominator, inverted=Fa
372374 # Clock not inverted, powered up
373375 control |= pll .clock_control_enabled
374376 if inverted :
375- control |= 0b00010000 # Bit 4 of the control register = CLKx_INV
377+ control |= 0b00010000 # Bit 4 of the control register = CLKx_INV
376378 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
378380 self ._si5351 ._write_u8 (self ._control , control )
379381 # Store the PLL and divisor value so frequency can be calculated.
380382 self ._pll = pll
@@ -454,7 +456,7 @@ def outputs_enabled(self, val):
454456
455457 def reset_plls (self ):
456458 """Reset both PLLs. This is required when the phase between clocks
457- needs to be non-random.
459+ needs to be non-random.
458460
459461 See e.g.
460462
0 commit comments