si5340: implement paged register writes #65

Merged
sb10q merged 1 commits from fsagbuya/nix-servo:fix_i2cwrite into master 2024-07-31 17:32:09 +08:00
Collaborator

Description

Implement paged register writes for Si5340 configuration.

Changes:

  • Added write_register function to handle paged writes
  • Updated write_preamble, write_postamble, and main_config loop to use write_register
  • Improved error handling for register writes

Closes #64

Log:

python -m pyfastservo.si5340
Writing main configuration...
Main configuration written
Input clock present and PLL locked
PLL locked
XA/XB LOS deasserted
Si5340 configuration completed successfully

Clock output is also present in hardware.

### Description Implement paged register writes for `Si5340` configuration. Changes: - Added `write_register` function to handle paged writes - Updated `write_preamble`, `write_postamble`, and `main_config` loop to use `write_register` - Improved error handling for register writes Closes #64 Log: ``` python -m pyfastservo.si5340 Writing main configuration... Main configuration written Input clock present and PLL locked PLL locked XA/XB LOS deasserted Si5340 configuration completed successfully ``` Clock output is also present in hardware.
fsagbuya added 1 commit 2024-07-31 17:31:01 +08:00
Signed-off-by: Florian Agbuya <fa@m-labs.ph>
sb10q merged commit ed816517cf into master 2024-07-31 17:32:09 +08:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/nix-servo#65
No description provided.