MSP430UltrasonicLibrary  02_20_00_15
Functions
ussSwLibConfiguration.c File Reference
#include <msp430.h>
#include <stdint.h>
#include <stdbool.h>
#include "ussSwLib.h"
#include "USS_Lib_HAL.h"
#include "common/ussSwLibCommonSAPH.h"
#include "common/ussSwLibCommonSDHS.h"
#include "common/ussSwLibCommonHSPLL.h"
#include "common/ussSwLibCommonUSS.h"
#include "common/USSGenericRegDef.h"
Include dependency graph for ussSwLibConfiguration.c:

Functions

USS_message_code USS_updateSDHSConfiguration (USS_SW_Library_configuration *config)
 The following function updates the SDHS module configuration based on user defined USS_Capture_Configuration struct in "ussSwLib_userConfig.c". Note: This API must be called everytime a USS_Capture_Configuration parameter is updated. This API performs the following SDHS module configuration. More...
 
USS_message_code USS_updateHSPLLConfiguration (USS_SW_Library_configuration *config)
 The following function updates the HSPLL module configuration based on user defined USS_HSPLL_Configuration struct in "ussSwLib_userConfig.c".

Note1: This API must be called everytime a USS_HSPLL_Configuration parameter is updated.

Note2: If "pllOutputFreq_inHz" is modified in USS_HSPLL_Configuration struct, user must call USS_updateSDHSCapture API since SDHS modulator optimization bits might need to be updated.

This API performs the following HSPLL module configuration checks: More...
 
USS_message_code USS_updateSAPHConfiguration (USS_SW_Library_configuration *config)
 The following function updates the SAPH module configuration based on user defined USS_Measurement_Configuration struct in "ussSwLib_userConfig.c".

Note: This API must be called everytime a USS_Measurement_Configuration parameter is updated.

This API performs the following SAPH module configuration checks: More...
 
USS_message_code USS_updateUUPSConfiguration (USS_SW_Library_configuration *config)
 The following function updates the UUPS module configuration based on user defined USS_Trigger_Configuration struct in "ussSwLib_userConfig.c".

Note1: This API must be called every time a USS_Trigger_Configuration parameter is updated.

Note2: This API will assert HSPLL.PLLXTEN bit when USS_Triger_Configuration_RTC_Timer_Trigger, USS_Triger_Configuration_External_Trigger1 or USS_Triger_Configuration_External_Trigger2. Selecting USS_Triger_Configuration_Software_Trigger will deassert HSPLL.PLLXTEN bit.

This API performs the following checks: More...
 
USS_message_code USS_updateUSSInterruptsConfiguration (USS_SW_Library_configuration *config)
 The following function updates the UUPS module interrupt configuration based on user defined USS_Interrupt_Configuration struct in "ussSwLib_userConfig.c". Note: This API must be called every time an USS_Interrupt_Configuration parameter is updated.

This API performs the following checks: More...
 
USS_message_code USS_resetUSSModule (USS_SW_Library_configuration *config, bool reconfigUSSModule)
 This function allows application to reset the USS module. It is recommended that this API is used when an USS SW Library API return a HSPLL unlock error.
The API allows user to control the reconfiguration of the measurement. If reconfigUSSModule == true then the measurement is reconfigured. If reconfigUSSModule == false then the USS module will have the default module configuration after a power-up clear (PUC) reset.

Note: This functionality is only available in MSP430FR604x Rev B or later silicon. If the code is running on Rev A silicon and this API is called the API will return the following error message USS_meesage_code_silicon_version_does_not_support_this_functionality, it is recommended that the application checks the API return message code to confirm the USS module have been reset successfully. More...
 
© Copyright 1995-2018, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale