uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
MCPWM_CHANNEL_CFG_Type Struct Reference

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

#include <lpc17xx_mcpwm.h>

Public Attributes

uint32_t channelType
 
uint32_t channelPolarity
 
uint32_t channelDeadtimeEnable
 
uint32_t channelDeadtimeValue
 
uint32_t channelUpdateEnable
 
uint32_t channelTimercounterValue
 
uint32_t channelPeriodValue
 
uint32_t channelPulsewidthValue
 

Detailed Description

Motor Control PWM Channel Configuration structure type definition.

Definition at line 208 of file lpc17xx_mcpwm.h.

Member Data Documentation

uint32_t MCPWM_CHANNEL_CFG_Type::channelDeadtimeEnable

Enable/Disable DeadTime function for channel, should be:

  • ENABLE.
  • DISABLE.

Definition at line 218 of file lpc17xx_mcpwm.h.

uint32_t MCPWM_CHANNEL_CFG_Type::channelDeadtimeValue

DeadTime value, should be less than 0x3FF

Definition at line 222 of file lpc17xx_mcpwm.h.

uint32_t MCPWM_CHANNEL_CFG_Type::channelPeriodValue

MCPWM Period value

Definition at line 229 of file lpc17xx_mcpwm.h.

uint32_t MCPWM_CHANNEL_CFG_Type::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 214 of file lpc17xx_mcpwm.h.

uint32_t MCPWM_CHANNEL_CFG_Type::channelPulsewidthValue

MCPWM Pulse Width value

Definition at line 230 of file lpc17xx_mcpwm.h.

uint32_t MCPWM_CHANNEL_CFG_Type::channelTimercounterValue

MCPWM Timer Counter value

Definition at line 228 of file lpc17xx_mcpwm.h.

uint32_t MCPWM_CHANNEL_CFG_Type::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 209 of file lpc17xx_mcpwm.h.

uint32_t MCPWM_CHANNEL_CFG_Type::channelUpdateEnable

Enable/Disable updates of functional registers, should be:

  • ENABLE.
  • DISABLE.

Definition at line 223 of file lpc17xx_mcpwm.h.


The documentation for this struct was generated from the following file: