| Nano103 BSP V3.01.002 The Board Support Package for Nano103 Series

Macros
PWM Exported Constants
NANO103 Device Driver » PWM Driver

## Macros
#define | PWM_CHANNEL_NUM (6)
#define | PWM_CH_0_MASK
#define | PWM_CH_1_MASK
#define | PWM_CH_2_MASK
#define | PWM_CH_3_MASK
#define | PWM_CH_4_MASK
#define | PWM_CH_5_MASK
#define | PWM_UP_COUNTER
#define | PWM_DOWN_COUNTER
#define | PWM_UP_DOWN_COUNTER
#define | PWM_EDGE_ALIGNED
#define | PWM_CENTER_ALIGNED
#define | PWM_OUTPUT_NOTHING
#define | PWM_OUTPUT_LOW
#define | PWM_OUTPUT_HIGH
#define | PWM_OUTPUT_TOGGLE
#define | PWM_WGCTL0_ZPCTL0_Msk
#define | PWM_WGCTL0_PRDPCTL0_Msk
#define | PWM_WGCTL1_CMPUCTL0_Msk
#define | PWM_WGCTL1_CMPDCTL0_Msk
#define | PWM_TRIGGER_ADC_EVEN_ZERO_POINT
#define | PWM_TRIGGER_ADC_EVEN_PERIOD_POINT
#define | PWM_TRIGGER_ADC_EVEN_ZERO_OR_PERIOD_POINT
#define | PWM_TRIGGER_ADC_EVEN_COMPARE_UP_COUNT_POINT
#define | PWM_TRIGGER_ADC_EVEN_COMPARE_DOWN_COUNT_POINT
#define | PWM_TRIGGER_ADC_ODD_COMPARE_UP_COUNT_POINT
#define | PWM_TRIGGER_ADC_ODD_COMPARE_DOWN_COUNT_POINT
#define | PWM_FB_EDGE_BKP0
#define | PWM_FB_EDGE_BKP1
#define | PWM_FB_EDGE_SYS_BOD
#define | PWM_FB_EDGE_SYS_COR
#define | PWM_FB_LEVEL_BKP0
#define | PWM_FB_LEVEL_BKP1
#define | PWM_FB_LEVEL_SYS_BOD
#define | PWM_FB_LEVEL_SYS_COR
#define | PWM_FB_EDGE
#define | PWM_FB_LEVEL
#define | PWM_CAPTURE_INT_RISING_LATCH
#define | PWM_CAPTURE_INT_FALLING_LATCH
#define | PWM_CAPSTS_CRIFOV0_Msk
#define | PWM_CAPSTS_CFIFOV0_Msk
#define | PWM_DUTY_INT_DOWN_COUNT_MATCH_CMP
#define | PWM_DUTY_INT_UP_COUNT_MATCH_CMP
#define | PWM_LOAD_MODE_IMMEDIATE
#define | PWM_LOAD_MODE_CENTER
#define | PWM_NF_CLK_DIV_1
#define | PWM_NF_CLK_DIV_2
#define | PWM_NF_CLK_DIV_4
#define | PWM_NF_CLK_DIV_8
#define | PWM_NF_CLK_DIV_16
#define | PWM_NF_CLK_DIV_32
#define | PWM_NF_CLK_DIV_64
#define | PWM_NF_CLK_DIV_128
#define | PWM_CLKSRC_PWM_CLK
#define | PWM_CLKSRC_TIMER0
#define | PWM_CLKSRC_TIMER1
#define | PWM_CLKSRC_TIMER2
#define | PWM_CLKSRC_TIMER3

## Detailed Description

## Macro Definition Documentation

## ◆ PWM_CAPSTS_CFIFOV0_Msk

#define PWM_CAPSTS_CFIFOV0_Msk

PWM channel 0 capture falling interrupt flag overrun status

Definition at line 102 of file pwm.h.

## ◆ PWM_CAPSTS_CRIFOV0_Msk

#define PWM_CAPSTS_CRIFOV0_Msk

PWM channel 0 capture rising interrupt flag overrun status

Definition at line 101 of file pwm.h.

## ◆ PWM_CAPTURE_INT_FALLING_LATCH

#define PWM_CAPTURE_INT_FALLING_LATCH

PWM capture interrupt if channel has falling transition

Definition at line 100 of file pwm.h.

## ◆ PWM_CAPTURE_INT_RISING_LATCH

#define PWM_CAPTURE_INT_RISING_LATCH

PWM capture interrupt if channel has rising transition

Definition at line 99 of file pwm.h.

## ◆ PWM_CENTER_ALIGNED

#define PWM_CENTER_ALIGNED

PWM working in center aligned type

Definition at line 51 of file pwm.h.

## ◆ PWM_CH_0_MASK

#define PWM_CH_0_MASK

PWM channel 0 mask

Definition at line 33 of file pwm.h.

## ◆ PWM_CH_1_MASK

#define PWM_CH_1_MASK

PWM channel 1 mask

Definition at line 34 of file pwm.h.

## ◆ PWM_CH_2_MASK

#define PWM_CH_2_MASK

PWM channel 2 mask

Definition at line 35 of file pwm.h.

## ◆ PWM_CH_3_MASK

#define PWM_CH_3_MASK

PWM channel 3 mask

Definition at line 36 of file pwm.h.

## ◆ PWM_CH_4_MASK

#define PWM_CH_4_MASK

PWM channel 4 mask

Definition at line 37 of file pwm.h.

## ◆ PWM_CH_5_MASK

#define PWM_CH_5_MASK

PWM channel 5 mask

Definition at line 38 of file pwm.h.

## ◆ PWM_CHANNEL_NUM

#define PWM_CHANNEL_NUM (6)

PWM channel number

Definition at line 32 of file pwm.h.

## ◆ PWM_CLKSRC_PWM_CLK

#define PWM_CLKSRC_PWM_CLK

PWM Clock source selects to PWM0_CLK or PWM1_CLK

Definition at line 131 of file pwm.h.

## ◆ PWM_CLKSRC_TIMER0

#define PWM_CLKSRC_TIMER0

PWM Clock source selects to TIMER0 overflow

Definition at line 132 of file pwm.h.

## ◆ PWM_CLKSRC_TIMER1

#define PWM_CLKSRC_TIMER1

PWM Clock source selects to TIMER1 overflow

Definition at line 133 of file pwm.h.

## ◆ PWM_CLKSRC_TIMER2

#define PWM_CLKSRC_TIMER2

PWM Clock source selects to TIMER2 overflow

Definition at line 134 of file pwm.h.

## ◆ PWM_CLKSRC_TIMER3

#define PWM_CLKSRC_TIMER3

PWM Clock source selects to TIMER3 overflow

Definition at line 135 of file pwm.h.

## ◆ PWM_DOWN_COUNTER

#define PWM_DOWN_COUNTER

Down counter type

Definition at line 44 of file pwm.h.

## ◆ PWM_DUTY_INT_DOWN_COUNT_MATCH_CMP

#define PWM_DUTY_INT_DOWN_COUNT_MATCH_CMP

PWM duty interrupt triggered if down count match comparator

Definition at line 107 of file pwm.h.

## ◆ PWM_DUTY_INT_UP_COUNT_MATCH_CMP

#define PWM_DUTY_INT_UP_COUNT_MATCH_CMP

PWM duty interrupt triggered if up count match comparator

Definition at line 108 of file pwm.h.

## ◆ PWM_EDGE_ALIGNED

#define PWM_EDGE_ALIGNED

PWM working in edge aligned type(down count)

Definition at line 50 of file pwm.h.

## ◆ PWM_FB_EDGE

#define PWM_FB_EDGE

edge-detect fault brake

Definition at line 93 of file pwm.h.

## ◆ PWM_FB_EDGE_BKP0

#define PWM_FB_EDGE_BKP0

BKP0 pin as edge-detect fault brake source

Definition at line 83 of file pwm.h.

## ◆ PWM_FB_EDGE_BKP1

#define PWM_FB_EDGE_BKP1

BKP1 pin as edge-detect fault brake source

Definition at line 84 of file pwm.h.

## ◆ PWM_FB_EDGE_SYS_BOD

#define PWM_FB_EDGE_SYS_BOD

System fail condition: brown-out detection as edge-detect fault brake source

Definition at line 85 of file pwm.h.

## ◆ PWM_FB_EDGE_SYS_COR

#define PWM_FB_EDGE_SYS_COR

System fail condition: core lockup detection as edge-detect fault brake source

Definition at line 86 of file pwm.h.

## ◆ PWM_FB_LEVEL

#define PWM_FB_LEVEL

level-detect fault brake

Definition at line 94 of file pwm.h.

## ◆ PWM_FB_LEVEL_BKP0

#define PWM_FB_LEVEL_BKP0

BKP0 pin as level-detect fault brake source

Definition at line 88 of file pwm.h.

## ◆ PWM_FB_LEVEL_BKP1

#define PWM_FB_LEVEL_BKP1

BKP1 pin as level-detect fault brake source

Definition at line 89 of file pwm.h.

## ◆ PWM_FB_LEVEL_SYS_BOD

#define PWM_FB_LEVEL_SYS_BOD

System fail condition: brown-out detection as level-detect fault brake source

Definition at line 90 of file pwm.h.

## ◆ PWM_FB_LEVEL_SYS_COR

#define PWM_FB_LEVEL_SYS_COR

System fail condition: core lockup detection as level-detect fault brake source

Definition at line 91 of file pwm.h.

## ◆ PWM_LOAD_MODE_CENTER

#define PWM_LOAD_MODE_CENTER

PWM center load mode

Definition at line 114 of file pwm.h.

## ◆ PWM_LOAD_MODE_IMMEDIATE

#define PWM_LOAD_MODE_IMMEDIATE

PWM immediately load mode

Definition at line 113 of file pwm.h.

## ◆ PWM_NF_CLK_DIV_1

#define PWM_NF_CLK_DIV_1

Noise filter clock is HCLK divide by 1

Definition at line 119 of file pwm.h.

## ◆ PWM_NF_CLK_DIV_128

#define PWM_NF_CLK_DIV_128

Noise filter clock is HCLK divide by 128

Definition at line 126 of file pwm.h.

## ◆ PWM_NF_CLK_DIV_16

#define PWM_NF_CLK_DIV_16

Noise filter clock is HCLK divide by 16

Definition at line 123 of file pwm.h.

## ◆ PWM_NF_CLK_DIV_2

#define PWM_NF_CLK_DIV_2

Noise filter clock is HCLK divide by 2

Definition at line 120 of file pwm.h.

## ◆ PWM_NF_CLK_DIV_32

#define PWM_NF_CLK_DIV_32

Noise filter clock is HCLK divide by 32

Definition at line 124 of file pwm.h.

## ◆ PWM_NF_CLK_DIV_4

#define PWM_NF_CLK_DIV_4

Noise filter clock is HCLK divide by 4

Definition at line 121 of file pwm.h.

## ◆ PWM_NF_CLK_DIV_64

#define PWM_NF_CLK_DIV_64

Noise filter clock is HCLK divide by 64

Definition at line 125 of file pwm.h.

## ◆ PWM_NF_CLK_DIV_8

#define PWM_NF_CLK_DIV_8

Noise filter clock is HCLK divide by 8

Definition at line 122 of file pwm.h.

## ◆ PWM_OUTPUT_HIGH

#define PWM_OUTPUT_HIGH

PWM output high

Definition at line 58 of file pwm.h.

## ◆ PWM_OUTPUT_LOW

#define PWM_OUTPUT_LOW

PWM output low

Definition at line 57 of file pwm.h.

## ◆ PWM_OUTPUT_NOTHING

#define PWM_OUTPUT_NOTHING

PWM output nothing

Definition at line 56 of file pwm.h.

## ◆ PWM_OUTPUT_TOGGLE

#define PWM_OUTPUT_TOGGLE

PWM output toggle

Definition at line 59 of file pwm.h.

## ◆ PWM_TRIGGER_ADC_EVEN_COMPARE_DOWN_COUNT_POINT

#define PWM_TRIGGER_ADC_EVEN_COMPARE_DOWN_COUNT_POINT

PWM trigger ADC while counter of even channel matches down count to comparator point

Definition at line 76 of file pwm.h.

## ◆ PWM_TRIGGER_ADC_EVEN_COMPARE_UP_COUNT_POINT

#define PWM_TRIGGER_ADC_EVEN_COMPARE_UP_COUNT_POINT

PWM trigger ADC while counter of even channel matches up count to comparator point

Definition at line 75 of file pwm.h.

## ◆ PWM_TRIGGER_ADC_EVEN_PERIOD_POINT

#define PWM_TRIGGER_ADC_EVEN_PERIOD_POINT

PWM trigger ADC while counter of even channel matches period point

Definition at line 73 of file pwm.h.

## ◆ PWM_TRIGGER_ADC_EVEN_ZERO_OR_PERIOD_POINT

#define PWM_TRIGGER_ADC_EVEN_ZERO_OR_PERIOD_POINT

PWM trigger ADC while counter of even channel matches zero or period point

Definition at line 74 of file pwm.h.

## ◆ PWM_TRIGGER_ADC_EVEN_ZERO_POINT

#define PWM_TRIGGER_ADC_EVEN_ZERO_POINT

PWM trigger ADC while counter of even channel matches zero point

Definition at line 72 of file pwm.h.

## ◆ PWM_TRIGGER_ADC_ODD_COMPARE_DOWN_COUNT_POINT

#define PWM_TRIGGER_ADC_ODD_COMPARE_DOWN_COUNT_POINT

PWM trigger ADC while counter of odd channel matches down count to comparator point

Definition at line 78 of file pwm.h.

## ◆ PWM_TRIGGER_ADC_ODD_COMPARE_UP_COUNT_POINT

#define PWM_TRIGGER_ADC_ODD_COMPARE_UP_COUNT_POINT

PWM trigger ADC while counter of odd channel matches up count to comparator point

Definition at line 77 of file pwm.h.

## ◆ PWM_UP_COUNTER

#define PWM_UP_COUNTER

Up counter type

Definition at line 43 of file pwm.h.

## ◆ PWM_UP_DOWN_COUNTER

#define PWM_UP_DOWN_COUNTER

Up-Down counter type

Definition at line 45 of file pwm.h.

## ◆ PWM_WGCTL0_PRDPCTL0_Msk

#define PWM_WGCTL0_PRDPCTL0_Msk

PWM channel 0 period point control

Definition at line 65 of file pwm.h.

## ◆ PWM_WGCTL0_ZPCTL0_Msk

#define PWM_WGCTL0_ZPCTL0_Msk

PWM channel 0 zero point control

Definition at line 64 of file pwm.h.

## ◆ PWM_WGCTL1_CMPDCTL0_Msk

#define PWM_WGCTL1_CMPDCTL0_Msk

PWM channel 0 period point control

Definition at line 67 of file pwm.h.

## ◆ PWM_WGCTL1_CMPUCTL0_Msk

#define PWM_WGCTL1_CMPUCTL0_Msk

PWM channel 0 period point control

Definition at line 66 of file pwm.h.