MSP430UltrasonicLibrary  02_30_00_03
Functions
ussSwLibAlgorithm.c File Reference
#include "ussSwLib.h"
#include "USS_Config/USS_userConfig.h"
Include dependency graph for ussSwLibAlgorithm.c:

Functions

USS_message_code USS_runAlgorithms (USS_SW_Library_configuration *config, USS_Algorithms_Results *results)
 The following API calculates Absolute ToF Upstream, Absolute ToF Downstream, Delta ToF, Volume Flow Rate.

Note1: USS_initAlgorithms must be called prior to calling this function. The API expects to have a Up stream (UPS) and Down stream (DNS) of size "sampleSize" in contiguous LEA memory where the first capture is assumed to be UPS capture and the second capture is assumed to be DNS capture. Therefore, UPS and DNS capture depends on the type of capture the user select via sequenceSelection member in USS_Measurement_Configuration structure For example: if sequenceSelection == USS_CAPTURE_SEQUENCE_SELECTION_CH0_CH1 then USS CH0 is assumed to be UPS capture and CH1 is assumed to be DNS capture and vice versa for USS_measurement_capture_sequence_ch1_ch0 If API return message code USS_message_code_valid_results, then algorithms result are valid. More...
 
© Copyright 1995-2020, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale