PWM_CCU4: PWM_CCU4.h File Reference

PWM CCU4

PWM_CCU4.h File Reference

Detailed Description

Date
2016-03-21

NOTE: This file is generated by DAVE. Any manual modification done to this file will be lost when the code is regenerated.

Definition in file PWM_CCU4.h.

#include <xmc_gpio.h> #include "pwm_ccu4_conf.h"
#include "pwm_ccu4_extern.h"

Data Structures

struct  PWM_CCU4_ConfigType
 Configuration parameters of the PWM_CCU4 APP. More...
 
struct  PWM_CCU4_HandleType
 Initialization parameters of the PWM_CCU4 APP. More...
 

Typedefs

typedef struct PWM_CCU4_ConfigType PWM_CCU4_CONFIG_t
 Configuration parameters of the PWM_CCU4 APP.
 
typedef struct PWM_CCU4_HandleType PWM_CCU4_t
 Initialization parameters of the PWM_CCU4 APP.
 

Functions

DAVE_APP_VERSION_t PWM_CCU4_GetAppVersion (void)
 Retrieves the version of the PWM_CCU4 APP. More...
 
PWM_CCU4_STATUS_t PWM_CCU4_Init (PWM_CCU4_t *const handle_ptr)
 Initializes the PWM_CCU4 APP. More...
 
PWM_CCU4_STATUS_t PWM_CCU4_Start (PWM_CCU4_t *const handle_ptr)
 Start the selected CCU4 slice. More...
 
PWM_CCU4_STATUS_t PWM_CCU4_Stop (PWM_CCU4_t *const handle_ptr)
 Stop the selected CCU4 slice. More...
 
uint32_t PWM_CCU4_GetTimerValue (PWM_CCU4_t *const handle_ptr)
 Returns the timer value. More...
 
bool PWM_CCU4_GetTimerStatus (PWM_CCU4_t *const handle_ptr)
 Returns the timer status. More...
 
PWM_CCU4_STATUS_t PWM_CCU4_SetFreq (PWM_CCU4_t *const handle_ptr, uint32_t pwm_freq_hz)
 Sets the PWM frequency. More...
 
PWM_CCU4_STATUS_t PWM_CCU4_SetDutyCycle (PWM_CCU4_t *const handle_ptr, uint32_t duty_cycle)
 Sets the duty cycle of PWM. More...
 
PWM_CCU4_STATUS_t PWM_CCU4_SetFreqAndDutyCycle (PWM_CCU4_t *const handle_ptr, uint32_t pwm_freq_hz, uint32_t duty)
 Sets the frequency duty cycle of PWM. More...
 
void PWM_CCU4_SetDither (PWM_CCU4_t *const handle_ptr, bool dither_period, bool dither_comp, uint8_t dither_value)
 Sets the dither value for period , duty or both. More...
 
void PWM_CCU4_ClearTrap (PWM_CCU4_t *const handle_ptr)
 Clears the trap event. More...
 
bool PWM_CCU4_GetInterruptStatus (PWM_CCU4_t *const handle_ptr, XMC_CCU4_SLICE_IRQ_ID_t pwm_interrupt)
 Returns the interrupt status. More...
 
void PWM_CCU4_ClearEvent (PWM_CCU4_t *const handle_ptr, XMC_CCU4_SLICE_IRQ_ID_t pwm_interrupt)
 Acknowledges the interrupt. More...
 
enum  PWM_CCU4_STATUS { PWM_CCU4_STATUS_SUCCESS = 0U, PWM_CCU4_STATUS_FAILURE = 1U, PWM_CCU4_STATUS_ALREADY_INITIALIZED = 2U }
 The type identifies the APP status. More...
 
enum  PWM_CCU4_STATE { PWM_CCU4_STATE_UNINITIALIZED = 0U, PWM_CCU4_STATE_INITIALIZED = 1U, PWM_CCU4_STATE_RUNNING = 2U, PWM_CCU4_STATE_STOPPED = 3U }
 The type identifies APP state. More...
 
typedef enum PWM_CCU4_STATUS PWM_CCU4_STATUS_t
 The type identifies the APP status.
 
typedef enum PWM_CCU4_STATE PWM_CCU4_STATE_t
 The type identifies APP state.
 

Go to the source code of this file.