MSP430UltrasonicLibrary  02_30_00_03
Data Fields
_USS_Capture_Configuration_ Struct Reference

Contains USS SW Lib Capture Configuration. More...

#include <ussSwLib.h>

Data Fields

USS_Capture_Over_Sample_Rate overSampleRate
 
uint16_t sampleSize
 
USS_Capture_Gain_Range gainRange
 Configures the internal gain amplifier. More...
 
bool enableWindowHiComp
 true = enables Window Comparator, false = disables Window Comparator More...
 
bool enableWindowLoComp
 true = enables Window Comparator, false = disables Window Comparator More...
 
int16_t windowHighThreshold
 
int16_t windowLowThreshold
 
uint16_t agcConstant
 
int16_t * pCapturesBuffer
 then numberOfAcquisitions = 4.
More...
 
uint16_t maxCapture
 Specifies the maximum capture size. More...
 
bool isCapAccumulationEnabled
 
int16_t * pAccCaptureBuffer
 (sampleSize*numberOfAcquisitions * 2) bytes and 32 bit aligned. More...
 

Detailed Description

Contains USS SW Lib Capture Configuration.

Field Documentation

§ overSampleRate

USS_Capture_Over_Sample_Rate _USS_Capture_Configuration_::overSampleRate

Specifies the oversampling SDHS sample rate. This configuration in combination with pllOutputFreq determines the signal sampling frequency.

Referenced by USS_updateSDHSConfiguration().

§ sampleSize

uint16_t _USS_Capture_Configuration_::sampleSize

valid range (1-1024) Configure number of SDHS samples to capture per acquisition sequence.

For example, if acquisition sequence selected is " USS_CAPTURE_SEQUENCE_SELECTION_CH0_CH1 " then a total of 2*sampleSize SDHS samples will be captured at the end of the acquisition sequence. If acquisition sequence selected is " USS_CAPTURE_SEQUENCE_SELECTION_CH0_CH1_ch0 " then a total of 3*sampleSize SDHS samples will be captured at the end of the acquisition sequence.

Referenced by commonValidateSDHSconfigruation(), USS_calibrateSignalGain(), USS_estimateDCoffset(), and USS_updateSDHSConfiguration().

§ gainRange

USS_Capture_Gain_Range _USS_Capture_Configuration_::gainRange

Configures the internal gain amplifier.

Referenced by USS_calibrateSignalGain(), and USS_updateSDHSConfiguration().

§ enableWindowHiComp

bool _USS_Capture_Configuration_::enableWindowHiComp

true = enables Window Comparator, false = disables Window Comparator

Referenced by commonDisableCaptureInterrupts(), commonIsconversionSuccessfull(), commonValidateSDHSconfigruation(), and USS_updateSDHSConfiguration().

§ enableWindowLoComp

bool _USS_Capture_Configuration_::enableWindowLoComp

true = enables Window Comparator, false = disables Window Comparator

Referenced by commonDisableCaptureInterrupts(), commonIsconversionSuccessfull(), commonValidateSDHSconfigruation(), and USS_updateSDHSConfiguration().

§ windowHighThreshold

int16_t _USS_Capture_Configuration_::windowHighThreshold

valid range (-2048 to 2047) if enableWindowComp == true, window comparator high threshold is set to user selected value. Otherwise, threshold values keep default reset register value.

Referenced by commonValidateSDHSconfigruation(), and USS_updateSDHSConfiguration().

§ windowLowThreshold

int16_t _USS_Capture_Configuration_::windowLowThreshold

valid range (-2048 to 2047) if enableWindowComp == true, window comparator low threshold is set to user selected value. Otherwise, threshold values keep default reset register value.

Referenced by commonValidateSDHSconfigruation(), and USS_updateSDHSConfiguration().

§ agcConstant

uint16_t _USS_Capture_Configuration_::agcConstant

This value is use to calculate the Optimal Gain Amplifier setting this value can be determined with the following formula agcConstant = floor(20*log10(adcNom))=floor(20*log10(ADCmax * 10^(-B/20))) where ADCmax = +/- 2^(12-1) for a 12 Bit ADC B = number of db that the ADC output should be backoff (typically 3 db) For USS module for B = 3, agcConstant = floor(20*log10((2^11)*(10^(-3/20)))) = 63

Referenced by USS_calibrateSignalGain().

§ pCapturesBuffer

int16_t* _USS_Capture_Configuration_::pCapturesBuffer

then numberOfAcquisitions = 4.

Pointer to reserved LEA memory block. Reserved memory block should have a minimum size (sampleSize*numberOfAcquisitions + filterLength * 2) bytes and 32 bit aligned.
If USS_measurement_capture_sequence == USS_measurement_capture_sequence_ch0 then numberOfAcquisitions = 1.
If USS_measurement_capture_sequence == USS_measurement_capture_sequence_chx_chx then numberOfAcquisitions = 2.
If USS_measurement_capture_sequence == USS_measurement_capture_sequence_chx_chx_chx then numberOfAcquisitions = 3.
If USS_measurement_capture_sequence == USS_measurement_capture_sequence_chx_chx_chx_chx

Referenced by commonSDHSRestoreSDHSDTCA().

§ maxCapture

uint16_t _USS_Capture_Configuration_::maxCapture

Specifies the maximum capture size.

Referenced by commonValidateSDHSconfigruation().

§ isCapAccumulationEnabled

bool _USS_Capture_Configuration_::isCapAccumulationEnabled

Pointer to LEA RAM were the sample will be accumulated. Number of accumulations is by dtofVolInterval in Algorithm configuration structure

§ pAccCaptureBuffer

int16_t* _USS_Capture_Configuration_::pAccCaptureBuffer

(sampleSize*numberOfAcquisitions * 2) bytes and 32 bit aligned.

Pointer to reserved LEA memory block to perform capture accumulation. Reserved memory block should have a minimum size


The documentation for this struct was generated from the following file:
© Copyright 1995-2020, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale