◆ calc_fxtal()
bool si57x_parameters::calc_fxtal |
( |
| ) |
|
Get fxtal for the device. This function assumes the device was reset; fstartup has the correct value for that device; and rfreq, n1 and hs_div have been read from the device after the reset.
◆ get_freq()
double si57x_parameters::get_freq |
( |
| ) |
|
◆ set_freq()
bool si57x_parameters::set_freq |
( |
double |
freq | ) |
|
Set rfreq, n1 and hs_div so the device outputs the desired frequency. Assumes fxtal for the device has already been determined. Returns false on failure.
◆ fstartup
double si57x_parameters::fstartup |
◆ fxtal
double si57x_parameters::fxtal = 114285000 |
Nominal fxtal value, can be used when the device can't be reset to determine the calibrated value.
◆ hs_div
uint32_t si57x_parameters::hs_div |
HS_DIV in hardware (value - 4)
◆ n1
uint32_t si57x_parameters::n1 |
N1 in hardware (value - 1)
◆ rfreq
uint64_t si57x_parameters::rfreq |
RFREQ integer value (38 bits max)
The documentation for this struct was generated from the following files: