beautypg.com

Sundance SMT391-VP User Manual

Page 17

background image

Version 1.3

Page 17 of 41

SMT391-VP User Manual

SMT391_Adc_Init()

SMT391_Adc_Init configure the ADC’s internal registers.

Prototype

void SMT391_Adc_Init(AT84AD001B_reg r, SMT338VP_WRITE_REGISTER
SMT338VP_WriteRegister, SMT338VP_READ_REGISTER
SMT338VP_ReadRegister,UINT32 cp);

Return value

None.

Parameters

R: this structure reproduces the internal registers of the ADC. Refer to the data
sheet of the ADC for the description of the internal registers.

Cp: the number of the comport to use to communicate with the SMT391-VP.

Config_LMX2330U()

This function configures the LMX2330U.

Prototype

void Config_LMX2330U(UINT32 if_r, UINT32 if_n, UINT32 rf_r, UINT32 rf_n, UINT32
cp);

Return value

None.

Parameters

If_r, if_n, rf_r, rf_n: the values being written in the registers of the LMX2330U.
These values can be obtained using the function LMX2330U_Parameters().

Cp: the number of the comport to use to communicate with the SMT391-VP.

Library LMX2330U

LMX2330U_Parameters()

This function generates the value to program in the registers of the LMX2330U PLL-
VCO to generate the specified frequency.

Prototype

unsigned int LMX2330U_Parameters (unsigned int rf_frequency, unsigned int
if_frequency, unsigned int *if_r, unsigned int *if_n, unsigned int *rf_r, unsigned int
*rf_n);

Return value

0 always.

Parameters