| MINI58_BSP V3.01.003 The Board Support Package for Mini58 Series MCU

Modules | Macros
PWM Exported Constants
Mini58 Device Driver » PWM Driver
Collaboration diagram for PWM Exported Constants:

## Modules
| PWM Exported Functions

## Macros
#define | PWM_CHANNEL_NUM (6)
#define | PWM_CLK_DIV_1 (4UL)
#define | PWM_CLK_DIV_2 (0UL)
#define | PWM_CLK_DIV_4 (1UL)
#define | PWM_CLK_DIV_8 (2UL)
#define | PWM_CLK_DIV_16 (3UL)
#define | PWM_EDGE_ALIGNED (0UL)
#define | PWM_CENTER_ALIGNED (PWM_CTL_CNTTYPE_Msk)
#define | PWM_TRIGGER_ADC_CNTR_IS_0 PWM_ADCTCTL0_ZPTRGEN0_Msk
#define | PWM_TRIGGER_ADC_CNTR_IS_CMR_D PWM_ADCTCTL0_CDTRGEN0_Msk
#define | PWM_TRIGGER_ADC_CNTR_IS_CNR PWM_ADCTCTL0_CPTRGEN0_Msk
#define | PWM_TRIGGER_ADC_CNTR_IS_CMR_U PWM_ADCTCTL0_CUTRGEN0_Msk
#define | PWM_FB0_EINT0 (PWM_BRKCTL_BRK0EN_Msk)
#define | PWM_FB0_ACMP1 (PWM_BRKCTL_BRK0EN_Msk | PWM_BRKCTL_BRK1SEL_Msk)
#define | PWM_FB1_EINT1 (PWM_BRKCTL_BRK1EN_Msk)
#define | PWM_FB1_ACMP0 (PWM_BRKCTL_BRK1EN_Msk | PWM_BRKCTL_BRK0SEL_Msk)
#define | PWM_PERIOD_INT_UNDERFLOW (0)
#define | PWM_PERIOD_INT_MATCH_CNR (PWM_INTEN_PINTTYPE_Msk)
#define | PWM_CH0 0x0
#define | PWM_CH1 0x1
#define | PWM_CH2 0x2
#define | PWM_CH3 0x3
#define | PWM_CH4 0x4
#define | PWM_CH5 0x5

## Detailed Description

## Macro Definition Documentation

## ◆ PWM_CENTER_ALIGNED

#define PWM_CENTER_ALIGNED (PWM_CTL_CNTTYPE_Msk)

PWM working in center aligned type

Definition at line 39 of file pwm.h.

## ◆ PWM_CH0

#define PWM_CH0 0x0

PWM channel 0

Definition at line 53 of file pwm.h.

## ◆ PWM_CH1

#define PWM_CH1 0x1

PWM channel 1

Definition at line 54 of file pwm.h.

## ◆ PWM_CH2

#define PWM_CH2 0x2

PWM channel 2

Definition at line 55 of file pwm.h.

## ◆ PWM_CH3

#define PWM_CH3 0x3

PWM channel 3

Definition at line 56 of file pwm.h.

## ◆ PWM_CH4

#define PWM_CH4 0x4

PWM channel 4

Definition at line 57 of file pwm.h.

## ◆ PWM_CH5

#define PWM_CH5 0x5

PWM channel 5

Definition at line 58 of file pwm.h.

## ◆ PWM_CHANNEL_NUM

#define PWM_CHANNEL_NUM (6)

PWM channel number

Definition at line 32 of file pwm.h.

## ◆ PWM_CLK_DIV_1

#define PWM_CLK_DIV_1 (4UL)

PWM clock divide by 1

Definition at line 33 of file pwm.h.

## ◆ PWM_CLK_DIV_16

#define PWM_CLK_DIV_16 (3UL)

PWM clock divide by 16

Definition at line 37 of file pwm.h.

## ◆ PWM_CLK_DIV_2

#define PWM_CLK_DIV_2 (0UL)

PWM clock divide by 2

Definition at line 34 of file pwm.h.

## ◆ PWM_CLK_DIV_4

#define PWM_CLK_DIV_4 (1UL)

PWM clock divide by 4

Definition at line 35 of file pwm.h.

## ◆ PWM_CLK_DIV_8

#define PWM_CLK_DIV_8 (2UL)

PWM clock divide by 8

Definition at line 36 of file pwm.h.

## ◆ PWM_EDGE_ALIGNED

#define PWM_EDGE_ALIGNED (0UL)

PWM working in edge aligned type

Definition at line 38 of file pwm.h.

## ◆ PWM_FB0_ACMP1

#define PWM_FB0_ACMP1 (PWM_BRKCTL_BRK0EN_Msk | PWM_BRKCTL_BRK1SEL_Msk)

Comparator 1 as fault brake 0 source

Definition at line 45 of file pwm.h.

## ◆ PWM_FB0_EINT0

#define PWM_FB0_EINT0 (PWM_BRKCTL_BRK0EN_Msk)

External interrupt 0 as fault brake 0 source

Definition at line 44 of file pwm.h.

## ◆ PWM_FB1_ACMP0

#define PWM_FB1_ACMP0 (PWM_BRKCTL_BRK1EN_Msk | PWM_BRKCTL_BRK0SEL_Msk)

Comparator 0 as fault brake 1 source

Definition at line 47 of file pwm.h.

## ◆ PWM_FB1_EINT1

#define PWM_FB1_EINT1 (PWM_BRKCTL_BRK1EN_Msk)

External interrupt 1 as fault brake 1 source

Definition at line 46 of file pwm.h.

## ◆ PWM_PERIOD_INT_MATCH_CNR

#define PWM_PERIOD_INT_MATCH_CNR (PWM_INTEN_PINTTYPE_Msk)

PWM period interrupt trigger if counter match CNR

Definition at line 49 of file pwm.h.

## ◆ PWM_PERIOD_INT_UNDERFLOW

#define PWM_PERIOD_INT_UNDERFLOW (0)

PWM period interrupt trigger if counter underflow

Definition at line 48 of file pwm.h.

## ◆ PWM_TRIGGER_ADC_CNTR_IS_0

#define PWM_TRIGGER_ADC_CNTR_IS_0 PWM_ADCTCTL0_ZPTRGEN0_Msk

PWM trigger ADC while counter matches 0

Definition at line 40 of file pwm.h.

## ◆ PWM_TRIGGER_ADC_CNTR_IS_CMR_D

#define PWM_TRIGGER_ADC_CNTR_IS_CMR_D PWM_ADCTCTL0_CDTRGEN0_Msk

PWM trigger ADC while counter matches CMR during down count

Definition at line 41 of file pwm.h.

## ◆ PWM_TRIGGER_ADC_CNTR_IS_CMR_U

#define PWM_TRIGGER_ADC_CNTR_IS_CMR_U PWM_ADCTCTL0_CUTRGEN0_Msk

PWM trigger ADC while counter matches CMR during up count

Definition at line 43 of file pwm.h.

## ◆ PWM_TRIGGER_ADC_CNTR_IS_CNR

#define PWM_TRIGGER_ADC_CNTR_IS_CNR PWM_ADCTCTL0_CPTRGEN0_Msk

PWM trigger ADC while counter matches CNR

Definition at line 42 of file pwm.h.