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... | |
__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.
base | Pointer to structure describing PASS registers. |
sarMask | specifies which SAR instances will be started. Mask should contain at least two SAR instances for operation. |
mode | specifies mode of SARs operation. |
__STATIC_INLINE void Cy_SAR_SimultStop | ( | PASS_Type * | base, |
uint32_t | sarMask | ||
) |
Stops the selected SARs.
base | Pointer to structure describing PASS registers. |
sarMask | specifies which SAR instances should be stopped. |