C:/nxpdrv/LPC1700CMSIS/Drivers/source/lpc17xx_mcpwm.c File Reference
: Contains all functions support for Motor Control PWM firmware library on LPC17xx More...
#include "lpc17xx_mcpwm.h"
#include "lpc17xx_clkpwr.h"
#include "lpc17xx_libcfg_default.h"
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
- Author:
- : HieuNguyen
Definition in file lpc17xx_mcpwm.c.
Generated on Mon Feb 8 10:01:42 2010 for LPC1700CMSIS Standard Peripheral Firmware Library by 1.5.9