Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
lpc17xx_mcpwm.c File Reference
: Contains all functions support for Motor Control PWM firmware library on LPC17xx More...
Go to the source code of this file.
Functions | |
| void | MCPWM_Init (LPC_MCPWM_TypeDef *MCPWMx) |
| Initializes the MCPWM peripheral. | |
| void | MCPWM_ConfigChannel (LPC_MCPWM_TypeDef *MCPWMx, uint32_t channelNum, MCPWM_CHANNEL_CFG_Type *channelSetup) |
| Configures each channel in MCPWM peripheral according to the specified parameters in the MCPWM_CHANNEL_CFG_Type. | |
| void | MCPWM_WriteToShadow (LPC_MCPWM_TypeDef *MCPWMx, uint32_t channelNum, MCPWM_CHANNEL_CFG_Type *channelSetup) |
| Write to MCPWM shadow registers - Update the value for period and pulse width in MCPWM peripheral. | |
| void | MCPWM_ConfigCapture (LPC_MCPWM_TypeDef *MCPWMx, uint32_t channelNum, MCPWM_CAPTURE_CFG_Type *captureConfig) |
| Configures capture function in MCPWM peripheral. | |
| void | MCPWM_ClearCapture (LPC_MCPWM_TypeDef *MCPWMx, uint32_t captureChannel) |
| Clears current captured value in specified capture channel. | |
| uint32_t | MCPWM_GetCapture (LPC_MCPWM_TypeDef *MCPWMx, uint32_t captureChannel) |
| Get current captured value in specified capture channel. | |
| void | MCPWM_CountConfig (LPC_MCPWM_TypeDef *MCPWMx, uint32_t channelNum, uint32_t countMode, MCPWM_COUNT_CFG_Type *countConfig) |
| Configures Count control in MCPWM peripheral. | |
| void | MCPWM_Start (LPC_MCPWM_TypeDef *MCPWMx, uint32_t channel0, uint32_t channel1, uint32_t channel2) |
| Start MCPWM activity for each MCPWM channel. | |
| void | MCPWM_Stop (LPC_MCPWM_TypeDef *MCPWMx, uint32_t channel0, uint32_t channel1, uint32_t channel2) |
| Stop MCPWM activity for each MCPWM channel. | |
| void | MCPWM_ACMode (LPC_MCPWM_TypeDef *MCPWMx, uint32_t acMode) |
| Enables/Disables 3-phase AC motor mode on MCPWM peripheral. | |
| void | MCPWM_DCMode (LPC_MCPWM_TypeDef *MCPWMx, uint32_t dcMode, uint32_t outputInvered, uint32_t outputPattern) |
| Enables/Disables 3-phase DC motor mode on MCPWM peripheral. | |
| void | MCPWM_IntConfig (LPC_MCPWM_TypeDef *MCPWMx, uint32_t ulIntType, FunctionalState NewState) |
| Configures the specified interrupt in MCPWM peripheral. | |
| void | MCPWM_IntSet (LPC_MCPWM_TypeDef *MCPWMx, uint32_t ulIntType) |
| Sets/Forces the specified interrupt for MCPWM peripheral. | |
| void | MCPWM_IntClear (LPC_MCPWM_TypeDef *MCPWMx, uint32_t ulIntType) |
| Clear the specified interrupt pending for MCPWM peripheral. | |
| FlagStatus | MCPWM_GetIntStatus (LPC_MCPWM_TypeDef *MCPWMx, uint32_t ulIntType) |
| Check whether if the specified interrupt in MCPWM is set or not. | |
Detailed Description
: Contains all functions support for Motor Control PWM firmware library on LPC17xx
- Version:
- : 1.0
- Date:
- : 26. May. 2009
Software that is described herein is for illustrative purposes only which provides customers with programming information regarding the products. This software is supplied "AS IS" without any warranties. NXP Semiconductors assumes no responsibility or liability for the use of the software, conveys no license or title under any patent, copyright, or mask work right to the product. NXP Semiconductors reserves the right to make changes in the software without notification. NXP Semiconductors also make no representation or warranty that such application will be suitable for the specified use without further testing or modification.
Definition in file lpc17xx_mcpwm.c.
Generated on Tue Jul 12 2022 17:06:02 by
1.7.2