MTB CAT1 Peripheral driver library

General Description

API Reference

 Initialization and Basic Functions
 This set of functions is for initialization and basic usage.
 
 Low Power Callback
 This set of functions is for Deep Sleep entry and exit.
 
 Run-time Configuration Functions
 This set of functions allows changes to the SAR configuration after initialization.
 
 Counts Conversion Functions
 This set of functions performs counts to *volts conversions.
 
 Interrupt Functions
 This set of functions are related to SAR interrupts.
 
 SARMUX Switch Control Functions
 This set of functions is for controlling/querying the SARMUX switches.
 
 Useful Configuration Query Functions
 This set of functions is for useful configuration query.
 
 Low Power features control Functions
 
 FIFO buffer control Functions
 
 Common triggering Functions for multiple SAR instances
 This set of functions is for initialization and usage of SAR common settings and simultaneous triggering.
 

Macros

#define Cy_SAR_Sleep   Cy_SAR_DeepSleep
 This macro is for backward compatibility macro for driver v1.10 and before, the preferred API is Cy_SAR_DeepSleep.
 

Functions

__STATIC_INLINE void Cy_SAR_SimultStart (PASS_Type *base, uint32_t sarMask, cy_en_sar_start_convert_sel_t mode)
 Simultaneously starts two or more SARs. More...
 
__STATIC_INLINE void Cy_SAR_SimultStop (PASS_Type *base, uint32_t sarMask)
 Stops the selected SARs. More...
 

Function Documentation

◆ Cy_SAR_SimultStart()

__STATIC_INLINE void Cy_SAR_SimultStart ( PASS_Type *  base,
uint32_t  sarMask,
cy_en_sar_start_convert_sel_t  mode 
)

Simultaneously starts two or more SARs.

Parameters
basePointer to structure describing PASS registers.
sarMaskspecifies which SAR instances will be started. Mask should contain at least two SAR instances for operation.
modespecifies mode of SARs operation.
Returns
None
Function Usage
/* Scenario: Simultaneously start continuous SAR0 and SAR1 scan */
/* Scenario: Stop SAR0 and SAR1 continuous scan */

◆ Cy_SAR_SimultStop()

__STATIC_INLINE void Cy_SAR_SimultStop ( PASS_Type *  base,
uint32_t  sarMask 
)

Stops the selected SARs.

Parameters
basePointer to structure describing PASS registers.
sarMaskspecifies which SAR instances should be stopped.
Returns
None
Function Usage
/* Scenario: Simultaneously start continuous SAR0 and SAR1 scan */
/* Scenario: Stop SAR0 and SAR1 continuous scan */