James Reynolds / AD594x Driver
Embed: (wiki syntax)

« Back to documentation index

DSP_Block_Functions

DSP_Block_Functions
[DSP_Block]

Modules

 ADC_Block_Functions

Functions

void AD5940_DSPCfgS (DSPCfg_Type *pDSPCfg)
 Configure low power loop include LPDAC LPAmp(PA and TIA)
uint32_t AD5940_ReadAfeResult (uint32_t AfeResultSel)
 Read AD5940 generated data like ADC and DFT etc.
void AD5940_StatisticCfgS (StatCfg_Type *pStatCfg)
 Configure statistic functions.
void AD5940_ADCRepeatCfgS (uint32_t Number)
 Set ADC Repeat convert function number.
void AD5940_DFTCfgS (DFTCfg_Type *pDftCfg)
 Configure DFT number and source and hanning window.

Function Documentation

void AD5940_ADCRepeatCfgS ( uint32_t  Number )

Set ADC Repeat convert function number.

Turn off ADC automatically after Number samples of ADC raw data are ready

Parameters:
Number,:Specify after how much ADC raw data need to sample before shutdown ADC
Returns:
return none.

Definition at line 1945 of file ad5940.c.

void AD5940_DFTCfgS ( DFTCfg_Type pDftCfg )

Configure DFT number and source and hanning window.

Parameters:
pDftCfg,:Pointer to configuration structure
Returns:
return none.

Definition at line 1956 of file ad5940.c.

void AD5940_DSPCfgS ( DSPCfg_Type pDSPCfg )

Configure low power loop include LPDAC LPAmp(PA and TIA)

Parameters:
pDSPCfg,:Pointer to configure structure;
Returns:
return none.

Definition at line 1722 of file ad5940.c.

uint32_t AD5940_ReadAfeResult ( uint32_t  AfeResultSel )

Read AD5940 generated data like ADC and DFT etc.

Parameters:
AfeResultSel,:available parameters are AFERESULT_Const

  • AFERESULT_SINC3: Read SINC3 filter data result
  • AFERESULT_SINC2: Read SINC2+NOTCH filter result, when Notch filter is bypassed, the result is SINC2
  • AFERESULT_STATSVAR: Statistic variance result
Returns:
return data read back.

Definition at line 1739 of file ad5940.c.

void AD5940_StatisticCfgS ( StatCfg_Type pStatCfg )

Configure statistic functions.

Parameters:
pStatCfg,:Pointer to configuration structure
Returns:
return none.

Definition at line 1928 of file ad5940.c.