Skip to content

Commit 1ec6a76

Browse files
committed
si5351: add many missing functions needed for convenient use.
This adds many missing functions needed for convenient use that are reinterpreted from the C code in https://github.com/dmalnati/picoinf Thank you! Signed-off-by: deadprogram <[email protected]>
1 parent 9ed648f commit 1ec6a76

File tree

2 files changed

+290
-127
lines changed

2 files changed

+290
-127
lines changed

si5351/registers.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,18 @@ const (
6262
MULTISYNTH_DIV_6 = 6
6363
MULTISYNTH_DIV_8 = 8
6464
)
65+
66+
// Frequency constants (in Hz)
67+
const (
68+
CLKOUT_MIN_FREQ = 8000 // 8 kHz
69+
CLKOUT_MAX_FREQ = 150000000 // 150 MHz
70+
MULTISYNTH_MAX_FREQ = 150000000 // 150 MHz
71+
MULTISYNTH_SHARE_MAX = 100000000 // 100 MHz
72+
MULTISYNTH_DIVBY4_FREQ = 150000000 // 150 MHz
73+
PLL_VCO_MIN = 600000000 // 600 MHz
74+
PLL_VCO_MAX = 900000000 // 900 MHz
75+
)
76+
77+
const (
78+
SI5351_PLL_C_MAX = 1048575
79+
)

0 commit comments

Comments
 (0)