beautypg.com

Sundance SMT1026 User Manual

Page 33

background image

GetSN

Prototype:

void GetSN(SN *pSN);

Parameters:

pSN

Structure that receives the modules’ temperatures. (See struct

SN

).

Return
value:

None.

Notes:

This function gets the FPGA module serial number. Before using this
function the user has to make sure this functionality is part of the
firmware used to program the FPGA.

The SMT391 structures

struct SETADC391

bool bItoQ

True = The input for the channels I and Q is the same.

False = Channels I and Q have different inputs.

The default value is true.

unsigned int nAnalogGain

Analog gain.

The default value is 128.

unsigned int nOffsetComp

Offset compensation.

The default value is 0.

bool bTest

True = the ADCs outputs test data.

False = the ADCs outputs data from theirs inputs.

The default value is false.

unsigned int nDrda

Set the value of the DRDA between 0 and 7.

The default value is 7.

The SMT391 enumerated types

Enumerated type

Description

enum CLKMODE391 {

clk_mode_I_I_Q_Q,

clk_mode_Q_I_Q_Q,

clk_mode_I_I_I_Q,

clk_mode_Q_I_I_Q

};

Selects the clock mode

.