NXP's driver library for LPC17xx, ported to mbed's online compiler. Not tested! I had to fix a lot of warings and found a couple of pretty obvious bugs, so the chances are there are more. Original: http://ics.nxp.com/support/documents/microcontrollers/zip/lpc17xx.cmsis.driver.library.zip
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:
| |
| uint32_t | channelPolarity |
Polarity of the MCOA and MCOB pins, should be:
| |
| uint32_t | channelDeadtimeEnable |
Enable/Disable DeadTime function for channel, should be:
| |
| uint32_t | channelDeadtimeValue |
| DeadTime value, should be less than 0x3FF. | |
| uint32_t | channelUpdateEnable |
Enable/Disable updates of functional registers, should be:
| |
| 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 152 of file lpc17xx_mcpwm.h.
Field Documentation
| uint32_t channelDeadtimeEnable |
Enable/Disable DeadTime function for channel, should be:
- ENABLE.
- DISABLE.
Definition at line 162 of file lpc17xx_mcpwm.h.
| uint32_t channelDeadtimeValue |
DeadTime value, should be less than 0x3FF.
Definition at line 166 of file lpc17xx_mcpwm.h.
| uint32_t channelPeriodValue |
MCPWM Period value.
Definition at line 173 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 158 of file lpc17xx_mcpwm.h.
| uint32_t channelPulsewidthValue |
MCPWM Pulse Width value.
Definition at line 174 of file lpc17xx_mcpwm.h.
| uint32_t channelTimercounterValue |
MCPWM Timer Counter value.
Definition at line 172 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 153 of file lpc17xx_mcpwm.h.
| uint32_t channelUpdateEnable |
Enable/Disable updates of functional registers, should be:
- ENABLE.
- DISABLE.
Definition at line 167 of file lpc17xx_mcpwm.h.
Generated on Tue Jul 12 2022 17:06:03 by
1.7.2