HM Yoong / cmsis-

Description: Bug report: CMSIS - Incomplete compilation log

Embed: (wiki syntax)

« Back to documentation index

MCPWM_CHANNEL_CFG_Type Struct Reference

MCPWM_CHANNEL_CFG_Type Struct Reference
[MCPWM Public Types]

Motor Control PWM Channel Configuration structure type definition. More...

#include <lpc17xx_mcpwm.h>

Data Fields

uint32_t channelType
 Edge/center aligned mode for this channel, should be:

  • MCPWM_CHANNEL_EDGE_MODE: Channel is in Edge mode
  • MCPWM_CHANNEL_CENTER_MODE: Channel is in Center mode.

uint32_t channelPolarity
 Polarity of the MCOA and MCOB pins, should be:

  • MCPWM_CHANNEL_PASSIVE_LO: Passive state is LOW, active state is HIGH
  • MCPWM_CHANNEL_PASSIVE_HI: Passive state is HIGH, active state is LOW.

uint32_t channelDeadtimeEnable
 Enable/Disable DeadTime function for channel, should be:

  • ENABLE.

uint32_t channelDeadtimeValue
 DeadTime value, should be less than 0x3FF.
uint32_t channelUpdateEnable
 Enable/Disable updates of functional registers, should be:

  • ENABLE.

uint32_t channelTimercounterValue
 MCPWM Timer Counter value.
uint32_t channelPeriodValue
 MCPWM Period value.
uint32_t channelPulsewidthValue
 MCPWM Pulse Width value.

Detailed Description

Motor Control PWM Channel Configuration structure type definition.

Definition at line 214 of file lpc17xx_mcpwm.h.


Field Documentation

Enable/Disable DeadTime function for channel, should be:

  • ENABLE.

  • DISABLE.

Definition at line 224 of file lpc17xx_mcpwm.h.

DeadTime value, should be less than 0x3FF.

Definition at line 228 of file lpc17xx_mcpwm.h.

MCPWM Period value.

Definition at line 235 of file lpc17xx_mcpwm.h.

uint32_t channelPolarity

Polarity of the MCOA and MCOB pins, should be:

  • MCPWM_CHANNEL_PASSIVE_LO: Passive state is LOW, active state is HIGH
  • MCPWM_CHANNEL_PASSIVE_HI: Passive state is HIGH, active state is LOW.

Definition at line 220 of file lpc17xx_mcpwm.h.

MCPWM Pulse Width value.

Definition at line 236 of file lpc17xx_mcpwm.h.

MCPWM Timer Counter value.

Definition at line 234 of file lpc17xx_mcpwm.h.

uint32_t channelType

Edge/center aligned mode for this channel, should be:

  • MCPWM_CHANNEL_EDGE_MODE: Channel is in Edge mode
  • MCPWM_CHANNEL_CENTER_MODE: Channel is in Center mode.

Definition at line 215 of file lpc17xx_mcpwm.h.

Enable/Disable updates of functional registers, should be:

  • ENABLE.

  • DISABLE.

Definition at line 229 of file lpc17xx_mcpwm.h.