This commit is contained in:
Christian Lind Madsen
2024-08-17 23:25:35 +02:00
parent 3fadc283db
commit ba98f5b35e
2 changed files with 69 additions and 0 deletions

View File

@@ -56,9 +56,20 @@ typedef enum {
}si5351_ClkSource;
typedef enum {
SI5351_PLL_A = 0,
SI5351_PLL_B = 1,
}si5351_PLLs;
typedef enum {
SI5351_REG_PLL_INPUT_SOURCE = 0xf0, // Reg 15
SI5351_REG_MULTISYNTH_NA_0 = 29,
SI5351_REG_MULTISYNTH_NB_0 = 34,
@@ -262,6 +273,8 @@ typedef struct{
int cm_si5351_init(si5351_driver *inst, void *i2c_transfer_inst, setGet_I2C_Event_fpt i2c_transfer_evt);
uint8_t cm_si5351_getRevisionNumber(si5351_driver *inst);
int cm_setInputSource(si5351_driver *inst, si5351_ClkSource clk_source);
int cm_setPLLParameters(si5351_driver *inst,si5351_PLLs sel_pll, uint32_t a, uint32_t b, uint32_t c);
#endif /* SI5351_DRIVER_INCLUDE_SI5351_DRIVER_H_ */