uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
MCPWM Public Macros

Macros

#define MCPWM_CHANNEL_EDGE_MODE   ((uint32_t)(0))
 
#define MCPWM_CHANNEL_CENTER_MODE   ((uint32_t)(1))
 
#define MCPWM_CHANNEL_PASSIVE_LO   ((uint32_t)(0))
 
#define MCPWM_CHANNEL_PASSIVE_HI   ((uint32_t)(1))
 
#define MCPWM_PATENT_A0   ((uint32_t)(1<<0))
 
#define MCPWM_PATENT_B0   ((uint32_t)(1<<1))
 
#define MCPWM_PATENT_A1   ((uint32_t)(1<<2))
 
#define MCPWM_PATENT_B1   ((uint32_t)(1<<3))
 
#define MCPWM_PATENT_A2   ((uint32_t)(1<<4))
 
#define MCPWM_PATENT_B2   ((uint32_t)(1<<5))
 
#define MCPWM_INTFLAG_LIM0   MCPWM_INT_ILIM(0)
 
#define MCPWM_INTFLAG_MAT0   MCPWM_INT_IMAT(0)
 
#define MCPWM_INTFLAG_CAP0   MCPWM_INT_ICAP(0)
 
#define MCPWM_INTFLAG_LIM1   MCPWM_INT_ILIM(1)
 
#define MCPWM_INTFLAG_MAT1   MCPWM_INT_IMAT(1)
 
#define MCPWM_INTFLAG_CAP1   MCPWM_INT_ICAP(1)
 
#define MCPWM_INTFLAG_LIM2   MCPWM_INT_ILIM(2)
 
#define MCPWM_INTFLAG_MAT2   MCPWM_INT_IMAT(2)
 
#define MCPWM_INTFLAG_CAP2   MCPWM_INT_ICAP(2)
 
#define MCPWM_INTFLAG_ABORT   MCPWM_INT_ABORT
 

Detailed Description

Macro Definition Documentation

#define MCPWM_CHANNEL_CENTER_MODE   ((uint32_t)(1))

Center aligned mode for channel in MCPWM

Definition at line 49 of file lpc17xx_mcpwm.h.

#define MCPWM_CHANNEL_EDGE_MODE   ((uint32_t)(0))

Edge aligned mode for channel in MCPWM

Definition at line 47 of file lpc17xx_mcpwm.h.

#define MCPWM_CHANNEL_PASSIVE_HI   ((uint32_t)(1))

Polarity of the MCOA and MCOB pins: Passive state is HIGH, active state is LOW

Definition at line 54 of file lpc17xx_mcpwm.h.

#define MCPWM_CHANNEL_PASSIVE_LO   ((uint32_t)(0))

Polarity of the MCOA and MCOB pins: Passive state is LOW, active state is HIGH

Definition at line 52 of file lpc17xx_mcpwm.h.

#define MCPWM_INTFLAG_ABORT   MCPWM_INT_ABORT

Fast abort interrupt

Definition at line 88 of file lpc17xx_mcpwm.h.

#define MCPWM_INTFLAG_CAP0   MCPWM_INT_ICAP(0)

Capture interrupt for channel (0)

Definition at line 71 of file lpc17xx_mcpwm.h.

#define MCPWM_INTFLAG_CAP1   MCPWM_INT_ICAP(1)

Capture interrupt for channel (1)

Definition at line 78 of file lpc17xx_mcpwm.h.

#define MCPWM_INTFLAG_CAP2   MCPWM_INT_ICAP(2)

Capture interrupt for channel (2)

Definition at line 85 of file lpc17xx_mcpwm.h.

#define MCPWM_INTFLAG_LIM0   MCPWM_INT_ILIM(0)

Limit interrupt for channel (0)

Definition at line 67 of file lpc17xx_mcpwm.h.

#define MCPWM_INTFLAG_LIM1   MCPWM_INT_ILIM(1)

Limit interrupt for channel (1)

Definition at line 74 of file lpc17xx_mcpwm.h.

#define MCPWM_INTFLAG_LIM2   MCPWM_INT_ILIM(2)

Limit interrupt for channel (2)

Definition at line 81 of file lpc17xx_mcpwm.h.

#define MCPWM_INTFLAG_MAT0   MCPWM_INT_IMAT(0)

Match interrupt for channel (0)

Definition at line 69 of file lpc17xx_mcpwm.h.

#define MCPWM_INTFLAG_MAT1   MCPWM_INT_IMAT(1)

Match interrupt for channel (1)

Definition at line 76 of file lpc17xx_mcpwm.h.

#define MCPWM_INTFLAG_MAT2   MCPWM_INT_IMAT(2)

Match interrupt for channel (2)

Definition at line 83 of file lpc17xx_mcpwm.h.

#define MCPWM_PATENT_A0   ((uint32_t)(1<<0))

MCOA0 tracks internal MCOA0

Definition at line 58 of file lpc17xx_mcpwm.h.

#define MCPWM_PATENT_A1   ((uint32_t)(1<<2))

MCOA1 tracks internal MCOA0

Definition at line 60 of file lpc17xx_mcpwm.h.

#define MCPWM_PATENT_A2   ((uint32_t)(1<<4))

MCOA2 tracks internal MCOA0

Definition at line 62 of file lpc17xx_mcpwm.h.

#define MCPWM_PATENT_B0   ((uint32_t)(1<<1))

MCOB0 tracks internal MCOA0

Definition at line 59 of file lpc17xx_mcpwm.h.

#define MCPWM_PATENT_B1   ((uint32_t)(1<<3))

MCOB1 tracks internal MCOA0

Definition at line 61 of file lpc17xx_mcpwm.h.

#define MCPWM_PATENT_B2   ((uint32_t)(1<<5))

MCOB2 tracks internal MCOA0

Definition at line 63 of file lpc17xx_mcpwm.h.