| NUC472_NUC442_BSP V3.04.000 The Board Support Package for NUC472/NUC442

Functions | Variables
pwm.c File Reference

NUC472/NUC442 PWM driver source file. More...

`#include "NUC472_442.h"`
Include dependency graph for pwm.c:

Go to the source code of this file.

## Functions
uint32_t | PWM_ConfigOutputChannel (PWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32Frequency, uint32_t u32DutyCycle)
| This function config PWM generator and get the nearest frequency in edge aligned auto-reload mode. More...
uint32_t | PWM_ConfigCaptureChannel (PWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32UnitTimeNsec, uint32_t u32CaptureEdge)
| This function config PWM capture and get the nearest unit time. More...
void | PWM_Start (PWM_T *pwm, uint32_t u32ChannelMask)
| This function start PWM module. More...
void | PWM_Stop (PWM_T *pwm, uint32_t u32ChannelMask)
| This function stop PWM module. More...
void | PWM_ForceStop (PWM_T *pwm, uint32_t u32ChannelMask)
| This function stop PWM generation immediately by clear channel enable bit. More...
void | PWM_EnableADCTrigger (PWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32Condition)
| This function enable selected channel to trigger ADC. More...
void | PWM_DisableADCTrigger (PWM_T *pwm, uint32_t u32ChannelNum)
| This function disable selected channel to trigger ADC. More...
void | PWM_ClearADCTriggerFlag (PWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32Condition)
| This function clear selected channel trigger ADC flag. More...
uint32_t | PWM_GetADCTriggerFlag (PWM_T *pwm, uint32_t u32ChannelNum)
| This function get selected channel trigger ADC flag. More...
void | PWM_EnableFaultBrake (PWM_T *pwm, uint32_t u32ChannelMask, uint32_t u32LevelMask, uint32_t u32BrakeSource)
| This function enable fault brake of selected channels. More...
void | PWM_ClearFaultBrakeFlag (PWM_T *pwm, uint32_t u32BrakeSource)
| This function clear fault brake flag. More...
void | PWM_EnableCapture (PWM_T *pwm, uint32_t u32ChannelMask)
| This function enables PWM capture of selected channels. More...
void | PWM_DisableCapture (PWM_T *pwm, uint32_t u32ChannelMask)
| This function disables PWM capture of selected channels. More...
void | PWM_EnableOutput (PWM_T *pwm, uint32_t u32ChannelMask)
| This function enables PWM output generation of selected channels. More...
void | PWM_DisableOutput (PWM_T *pwm, uint32_t u32ChannelMask)
| This function disables PWM output generation of selected channels. More...
void | PWM_EnableDeadZone (PWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32Duration)
| This function enable Dead zone of selected channel. More...
void | PWM_DisableDeadZone (PWM_T *pwm, uint32_t u32ChannelNum)
| This function disable Dead zone of selected channel. More...
void | PWM_EnableCaptureInt (PWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32Edge)
| This function enable capture interrupt of selected channel. More...
void | PWM_DisableCaptureInt (PWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32Edge)
| This function disable capture interrupt of selected channel. More...
void | PWM_ClearCaptureIntFlag (PWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32Edge)
| This function clear capture interrupt flag of selected channel. More...
uint32_t | PWM_GetCaptureIntFlag (PWM_T *pwm, uint32_t u32ChannelNum)
| This function get capture interrupt flag of selected channel. More...
void | PWM_EnableDutyInt (PWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32IntDutyType)
| This function enable duty interrupt of selected channel. More...
void | PWM_DisableDutyInt (PWM_T *pwm, uint32_t u32ChannelNum)
| This function disable duty interrupt of selected channel. More...
void | PWM_ClearDutyIntFlag (PWM_T *pwm, uint32_t u32ChannelNum)
| This function clears duty interrupt flag of selected channel. More...
uint32_t | PWM_GetDutyIntFlag (PWM_T *pwm, uint32_t u32ChannelNum)
| This function get duty interrupt flag of selected channel. More...
void | PWM_EnableFaultBrakeInt (PWM_T *pwm, uint32_t u32BrakeSource)
| This function enable fault brake interrupt. More...
void | PWM_DisableFaultBrakeInt (PWM_T *pwm, uint32_t u32BrakeSource)
| This function disable fault brake interrupt. More...
void | PWM_ClearFaultBrakeIntFlag (PWM_T *pwm, uint32_t u32BrakeSource)
| This function clear fault brake interrupt of selected source. More...
uint32_t | PWM_GetFaultBrakeIntFlag (PWM_T *pwm, uint32_t u32BrakeSource)
| This function get fault brake interrupt of selected source. More...
void | PWM_EnablePeriodInt (PWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32IntPeriodType)
| This function enable period interrupt of selected channel. More...
void | PWM_DisablePeriodInt (PWM_T *pwm, uint32_t u32ChannelNum)
| This function disable period interrupt of selected channel. More...
void | PWM_ClearPeriodIntFlag (PWM_T *pwm, uint32_t u32ChannelNum)
| This function clear period interrupt of selected channel. More...
uint32_t | PWM_GetPeriodIntFlag (PWM_T *pwm, uint32_t u32ChannelNum)
| This function get period interrupt of selected channel. More...

## Variables
int32_t | g_PWM_i32ErrCode = 0

## Detailed Description

NUC472/NUC442 PWM driver source file.

Version
  V1.00

Revision
  26

Date
  15/11/18 2:34p

Note
  SPDX-License-Identifier: Apache-2.0 Copyright (C) 2014 Nuvoton Technology Corp. All rights reserved.

Definition in file pwm.c.