2021-12-31 04:22:22 +01:00
|
|
|
#define SI5351_ADDRESS (0x60)
|
|
|
|
|
|
|
|
|
|
#define SI5351_CRYSTAL_FREQ 24000000
|
|
|
|
|
|
|
|
|
|
#define SI5351_MIN_FREQ 3000
|
|
|
|
|
#define SI5351_MAX_FREQ 200000000
|
|
|
|
|
|
2022-01-12 01:09:32 +01:00
|
|
|
// #### registri ####
|
|
|
|
|
|
2021-12-31 04:22:22 +01:00
|
|
|
#define SI5351_OUT_ENABLE 3
|
|
|
|
|
#define SI5351_OUT_DIS_STATE 24
|
|
|
|
|
|
|
|
|
|
#define SI5351_INPUT_SOURCE 15
|
|
|
|
|
|
|
|
|
|
#define SI5351_CLK0_CONTROL 16
|
|
|
|
|
#define SI5351_CLK1_CONTROL 17
|
|
|
|
|
#define SI5351_CLK2_CONTROL 18
|
|
|
|
|
|
|
|
|
|
#define SI5351_PLLA 26
|
|
|
|
|
#define SI5351_PLLB 34
|
|
|
|
|
|
|
|
|
|
#define SI5351_MULTISYNTH0 42
|
|
|
|
|
#define SI5351_MULTISYNTH1 50
|
|
|
|
|
#define SI5351_MULTISYNTH2 58
|
|
|
|
|
|
|
|
|
|
#define SI5351_RESET 177
|
|
|
|
|
#define SI5351_CRYSTAL_LOAD 183
|
|
|
|
|
|
|
|
|
|
extern I2C_HandleTypeDef hi2c1;
|
2022-01-12 01:09:32 +01:00
|
|
|
|
|
|
|
|
void si53531_initialize(void);
|
|
|
|
|
void si53531_set_frequency(uint32_t freq, uint8_t synth);
|
|
|
|
|
void si5351_off(void);
|
|
|
|
|
void si5351_on(void);
|