| M480 BSP V3.05.001 The Board Support Package for M480 Series

Macros
BPWM Exported Constants
Standard Driver » BPWM Driver

## Macros
#define | BPWM_CHANNEL_NUM
#define | BPWM_CH_0_MASK
#define | BPWM_CH_1_MASK
#define | BPWM_CH_2_MASK
#define | BPWM_CH_3_MASK
#define | BPWM_CH_4_MASK
#define | BPWM_CH_5_MASK
#define | BPWM_UP_COUNTER
#define | BPWM_DOWN_COUNTER
#define | BPWM_UP_DOWN_COUNTER
#define | BPWM_EDGE_ALIGNED
#define | BPWM_CENTER_ALIGNED
#define | BPWM_OUTPUT_NOTHING
#define | BPWM_OUTPUT_LOW
#define | BPWM_OUTPUT_HIGH
#define | BPWM_OUTPUT_TOGGLE
#define | BPWM_SSCTL_SSRC_PWM0 (0UL<<BPWM_SSCTL_SSRC_Pos)
#define | BPWM_SSCTL_SSRC_PWM1 (1UL<<BPWM_SSCTL_SSRC_Pos)
#define | BPWM_SSCTL_SSRC_BPWM0 (2UL<<BPWM_SSCTL_SSRC_Pos)
#define | BPWM_SSCTL_SSRC_BPWM1 (3UL<<BPWM_SSCTL_SSRC_Pos)
#define | BPWM_TRIGGER_ADC_EVEN_ZERO_POINT
#define | BPWM_TRIGGER_ADC_EVEN_PERIOD_POINT
#define | BPWM_TRIGGER_ADC_EVEN_ZERO_OR_PERIOD_POINT
#define | BPWM_TRIGGER_ADC_EVEN_CMP_UP_COUNT_POINT
#define | BPWM_TRIGGER_ADC_EVEN_CMP_DOWN_COUNT_POINT
#define | BPWM_TRIGGER_ADC_ODD_CMP_UP_COUNT_POINT
#define | BPWM_TRIGGER_ADC_ODD_CMP_DOWN_COUNT_POINT
#define | BPWM_CAPTURE_INT_RISING_LATCH
#define | BPWM_CAPTURE_INT_FALLING_LATCH
#define | BPWM_DUTY_INT_DOWN_COUNT_MATCH_CMP
#define | BPWM_DUTY_INT_UP_COUNT_MATCH_CMP
#define | BPWM_LOAD_MODE_IMMEDIATE
#define | BPWM_LOAD_MODE_CENTER
#define | BPWM_CLKSRC_BPWM_CLK
#define | BPWM_CLKSRC_TIMER0
#define | BPWM_CLKSRC_TIMER1
#define | BPWM_CLKSRC_TIMER2
#define | BPWM_CLKSRC_TIMER3

## Detailed Description

## Macro Definition Documentation

## ◆ BPWM_CAPTURE_INT_FALLING_LATCH

#define BPWM_CAPTURE_INT_FALLING_LATCH

BPWM capture interrupt if channel has falling transition

Definition at line 81 of file bpwm.h.

## ◆ BPWM_CAPTURE_INT_RISING_LATCH

#define BPWM_CAPTURE_INT_RISING_LATCH

BPWM capture interrupt if channel has rising transition

Definition at line 80 of file bpwm.h.

## ◆ BPWM_CENTER_ALIGNED

#define BPWM_CENTER_ALIGNED

BPWM working in center aligned type

Definition at line 48 of file bpwm.h.

## ◆ BPWM_CH_0_MASK

#define BPWM_CH_0_MASK

BPWM channel 0 mask

Definition at line 30 of file bpwm.h.

## ◆ BPWM_CH_1_MASK

#define BPWM_CH_1_MASK

BPWM channel 1 mask

Definition at line 31 of file bpwm.h.

## ◆ BPWM_CH_2_MASK

#define BPWM_CH_2_MASK

BPWM channel 2 mask

Definition at line 32 of file bpwm.h.

## ◆ BPWM_CH_3_MASK

#define BPWM_CH_3_MASK

BPWM channel 3 mask

Definition at line 33 of file bpwm.h.

## ◆ BPWM_CH_4_MASK

#define BPWM_CH_4_MASK

BPWM channel 4 mask

Definition at line 34 of file bpwm.h.

## ◆ BPWM_CH_5_MASK

#define BPWM_CH_5_MASK

BPWM channel 5 mask

Definition at line 35 of file bpwm.h.

## ◆ BPWM_CHANNEL_NUM

#define BPWM_CHANNEL_NUM

BPWM channel number

Definition at line 29 of file bpwm.h.

## ◆ BPWM_CLKSRC_BPWM_CLK

#define BPWM_CLKSRC_BPWM_CLK

BPWM Clock source selects to BPWM0_CLK or BPWM1_CLK

Definition at line 98 of file bpwm.h.

## ◆ BPWM_CLKSRC_TIMER0

#define BPWM_CLKSRC_TIMER0

BPWM Clock source selects to TIMER0 overflow

Definition at line 99 of file bpwm.h.

## ◆ BPWM_CLKSRC_TIMER1

#define BPWM_CLKSRC_TIMER1

BPWM Clock source selects to TIMER1 overflow

Definition at line 100 of file bpwm.h.

## ◆ BPWM_CLKSRC_TIMER2

#define BPWM_CLKSRC_TIMER2

BPWM Clock source selects to TIMER2 overflow

Definition at line 101 of file bpwm.h.

## ◆ BPWM_CLKSRC_TIMER3

#define BPWM_CLKSRC_TIMER3

BPWM Clock source selects to TIMER3 overflow

Definition at line 102 of file bpwm.h.

## ◆ BPWM_DOWN_COUNTER

#define BPWM_DOWN_COUNTER

Down counter type

Definition at line 41 of file bpwm.h.

## ◆ BPWM_DUTY_INT_DOWN_COUNT_MATCH_CMP

#define BPWM_DUTY_INT_DOWN_COUNT_MATCH_CMP

BPWM duty interrupt triggered if down count match comparator

Definition at line 86 of file bpwm.h.

## ◆ BPWM_DUTY_INT_UP_COUNT_MATCH_CMP

#define BPWM_DUTY_INT_UP_COUNT_MATCH_CMP

BPWM duty interrupt triggered if up down match comparator

Definition at line 87 of file bpwm.h.

## ◆ BPWM_EDGE_ALIGNED

#define BPWM_EDGE_ALIGNED

BPWM working in edge aligned type(down count)

Definition at line 47 of file bpwm.h.

## ◆ BPWM_LOAD_MODE_CENTER

#define BPWM_LOAD_MODE_CENTER

BPWM center load mode

Definition at line 93 of file bpwm.h.

## ◆ BPWM_LOAD_MODE_IMMEDIATE

#define BPWM_LOAD_MODE_IMMEDIATE

BPWM immediately load mode

Definition at line 92 of file bpwm.h.

## ◆ BPWM_OUTPUT_HIGH

#define BPWM_OUTPUT_HIGH

BPWM output high

Definition at line 55 of file bpwm.h.

## ◆ BPWM_OUTPUT_LOW

#define BPWM_OUTPUT_LOW

BPWM output low

Definition at line 54 of file bpwm.h.

## ◆ BPWM_OUTPUT_NOTHING

#define BPWM_OUTPUT_NOTHING

BPWM output nothing

Definition at line 53 of file bpwm.h.

## ◆ BPWM_OUTPUT_TOGGLE

#define BPWM_OUTPUT_TOGGLE

BPWM output toggle

Definition at line 56 of file bpwm.h.

## ◆ BPWM_SSCTL_SSRC_BPWM0

#define BPWM_SSCTL_SSRC_BPWM0 (2UL<<BPWM_SSCTL_SSRC_Pos)

Synchronous start source comes from BPWM0

Definition at line 63 of file bpwm.h.

## ◆ BPWM_SSCTL_SSRC_BPWM1

#define BPWM_SSCTL_SSRC_BPWM1 (3UL<<BPWM_SSCTL_SSRC_Pos)

Synchronous start source comes from BPWM1

Definition at line 64 of file bpwm.h.

## ◆ BPWM_SSCTL_SSRC_PWM0

#define BPWM_SSCTL_SSRC_PWM0 (0UL<<BPWM_SSCTL_SSRC_Pos)

Synchronous start source comes from PWM0

Definition at line 61 of file bpwm.h.

## ◆ BPWM_SSCTL_SSRC_PWM1

#define BPWM_SSCTL_SSRC_PWM1 (1UL<<BPWM_SSCTL_SSRC_Pos)

Synchronous start source comes from PWM1

Definition at line 62 of file bpwm.h.

## ◆ BPWM_TRIGGER_ADC_EVEN_CMP_DOWN_COUNT_POINT

#define BPWM_TRIGGER_ADC_EVEN_CMP_DOWN_COUNT_POINT

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

Definition at line 73 of file bpwm.h.

## ◆ BPWM_TRIGGER_ADC_EVEN_CMP_UP_COUNT_POINT

#define BPWM_TRIGGER_ADC_EVEN_CMP_UP_COUNT_POINT

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

Definition at line 72 of file bpwm.h.

## ◆ BPWM_TRIGGER_ADC_EVEN_PERIOD_POINT

#define BPWM_TRIGGER_ADC_EVEN_PERIOD_POINT

BPWM trigger ADC while counter of even channel matches period point

Definition at line 70 of file bpwm.h.

## ◆ BPWM_TRIGGER_ADC_EVEN_ZERO_OR_PERIOD_POINT

#define BPWM_TRIGGER_ADC_EVEN_ZERO_OR_PERIOD_POINT

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

Definition at line 71 of file bpwm.h.

## ◆ BPWM_TRIGGER_ADC_EVEN_ZERO_POINT

#define BPWM_TRIGGER_ADC_EVEN_ZERO_POINT

BPWM trigger ADC while counter of even channel matches zero point

Definition at line 69 of file bpwm.h.

## ◆ BPWM_TRIGGER_ADC_ODD_CMP_DOWN_COUNT_POINT

#define BPWM_TRIGGER_ADC_ODD_CMP_DOWN_COUNT_POINT

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

Definition at line 75 of file bpwm.h.

## ◆ BPWM_TRIGGER_ADC_ODD_CMP_UP_COUNT_POINT

#define BPWM_TRIGGER_ADC_ODD_CMP_UP_COUNT_POINT

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

Definition at line 74 of file bpwm.h.

## ◆ BPWM_UP_COUNTER

#define BPWM_UP_COUNTER

Up counter type

Definition at line 40 of file bpwm.h.

## ◆ BPWM_UP_DOWN_COUNTER

#define BPWM_UP_DOWN_COUNTER

Up-Down counter type

Definition at line 42 of file bpwm.h.