μHAL
si57x_parameters Struct Reference

Public Member Functions

bool calc_fxtal ()
 
bool set_freq (double)
 
double get_freq ()
 

Public Attributes

double fxtal = 114285000
 
double fstartup
 
uint64_t rfreq
 
uint32_t n1
 
uint32_t hs_div
 

Member Function Documentation

◆ 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 ( )

Get the output frequency, based on fxtal, rfreq, n1 and hs_div.

◆ 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.

Member Data Documentation

◆ fstartup

double si57x_parameters::fstartup

Output frequency after the device has been reset. Can be determined in https://tools.skyworksinc.com/TimingUtility/timing-part-number-search-results.aspx using the part number.

◆ 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: