MTB CAT1 Peripheral driver library

General Description

This set of functions is for Timer control.

Functions

__STATIC_INLINE void Cy_ADCMic_EnableTimer (MXS40ADCMIC_Type *base)
 Enables the timer. More...
 
__STATIC_INLINE void Cy_ADCMic_DisableTimer (MXS40ADCMIC_Type *base)
 Disables the timer. More...
 
__STATIC_INLINE void Cy_ADCMic_SetTimerPeriod (MXS40ADCMIC_Type *base, uint16_t period)
 Sets the timer period. More...
 

Function Documentation

◆ Cy_ADCMic_EnableTimer()

__STATIC_INLINE void Cy_ADCMic_EnableTimer ( MXS40ADCMIC_Type base)

Enables the timer.

Parameters
baseThe pointer to the hardware ADCMic block.
Function Usage
/* Scenario: configure and enable the timer */
Cy_ADCMic_SetTimerPeriod(MXS40ADCMIC0, 0xFFFFU);
Cy_ADCMic_EnableTimer(MXS40ADCMIC0);
/* Scenario: the timer is not needed more */
Cy_ADCMic_DisableTimer(MXS40ADCMIC0);

◆ Cy_ADCMic_DisableTimer()

__STATIC_INLINE void Cy_ADCMic_DisableTimer ( MXS40ADCMIC_Type base)

Disables the timer.

Parameters
baseThe pointer to the hardware ADCMic block.
Function Usage
/* Scenario: configure and enable the timer */
Cy_ADCMic_SetTimerPeriod(MXS40ADCMIC0, 0xFFFFU);
Cy_ADCMic_EnableTimer(MXS40ADCMIC0);
/* Scenario: the timer is not needed more */
Cy_ADCMic_DisableTimer(MXS40ADCMIC0);

◆ Cy_ADCMic_SetTimerPeriod()

__STATIC_INLINE void Cy_ADCMic_SetTimerPeriod ( MXS40ADCMIC_Type base,
uint16_t  period 
)

Sets the timer period.

Parameters
baseThe pointer to the hardware ADCMic block.
periodThe 16-bit timer period.
Function Usage
/* Scenario: configure and enable the timer */
Cy_ADCMic_SetTimerPeriod(MXS40ADCMIC0, 0xFFFFU);
Cy_ADCMic_EnableTimer(MXS40ADCMIC0);
/* Scenario: the timer is not needed more */
Cy_ADCMic_DisableTimer(MXS40ADCMIC0);