PWM
|
PWM.h File Reference
Detailed Description
- Date:
- 2016-07-28
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.h.
Data Structures | |
struct | PWM_HandleType |
Initialization parameters of the PWM App. More... | |
Typedefs | |
typedef struct PWM_HandleType | PWM_t |
Initialization parameters of the PWM App. | |
Functions | |
DAVE_APP_VERSION_t | PWM_GetAppVersion (void) |
Get PWM APP version. | |
PWM_STATUS_t | PWM_Init (PWM_t *const handle_ptr) |
Initializes the PWM APP. | |
void | PWM_Start (PWM_t *const handle_ptr) |
Starts the PWM generation. | |
void | PWM_Stop (PWM_t *const handle_ptr) |
Stops the PWM generation. | |
PWM_STATUS_t | PWM_SetFreq (PWM_t *const handle_ptr, uint32_t pwm_freq_hz) |
Configures the PWM Frequency. | |
PWM_STATUS_t | PWM_SetFreqAndDutyCycle (PWM_t *const handle_ptr, uint32_t pwm_freq_hz, uint32_t duty_cycle) |
Configures the PWM Frequency and duty cycle. | |
void | PWM_ClearEvent (PWM_t *const handle_ptr, PWM_INTERRUPT_t pwm_interrupt) |
Clears the PWM related interrupt. | |
bool | PWM_GetInterruptStatus (PWM_t *const handle_ptr, PWM_INTERRUPT_t pwm_interrupt) |
Gets the corresponding interrupt status. | |
bool | PWM_GetTimerStatus (PWM_t *const handle_ptr) |
Gets the corresponding timer status. | |
PWM_STATUS_t | PWM_SetDutyCycle (PWM_t *const handle_ptr, uint32_t duty_cycle) |
Configure the PWM duty cycle. | |
void | PWM_SetPassiveLevel (PWM_t *const handle_ptr, PWM_OUTPUT_PASSIVE_LEVEL_t pwm_output_passive_level) |
Configure the passive level of the PWM output waveform. | |
PWM_STATUS_t | PWM_SetPeriodMatchValue (PWM_t *const handle_ptr, uint32_t period_match_value) |
Loads the required period match value. | |
enum | PWM_TIMER_SLICE |
The type identifies the CCU4 or CCU8 timer selected. | |
enum | PWM_TIMER_STATUS |
The type identifies the timer status. | |
enum | PWM_INTERRUPT { PWM_INTERRUPT_PERIODMATCH = 0U, PWM_INTERRUPT_COMPAREMATCH = 2U } |
The type identifies the timer interrupts. More... | |
enum | PWM_OUTPUT_PASSIVE_LEVEL { PWM_OUTPUT_PASSIVE_LEVEL_LOW = 0, PWM_OUTPUT_PASSIVE_LEVEL_HIGH } |
The type identifies the timer interrupts. More... | |
enum | PWM_STATUS { PWM_STATUS_SUCCESS = 0, PWM_STATUS_FAILURE, PWM_STATUS_UNINITIALIZED, PWM_STATUS_RUNNING, PWM_STATUS_STOPPED } |
The type identifies App state. More... | |
enum | PWM_ERROR_CODES { PWM_OPER_NOT_ALLOWED_ERROR = 1, PWM_INVALID_PARAM_ERROR } |
The type identifies the App Error Codes. More... | |
typedef enum PWM_TIMER_SLICE | PWM_TIMER_SLICE_t |
The type identifies the CCU4 or CCU8 timer selected. | |
typedef enum PWM_TIMER_STATUS | PWM_TIMER_STATUS_t |
The type identifies the timer status. | |
typedef enum PWM_INTERRUPT | PWM_INTERRUPT_t |
The type identifies the timer interrupts. | |
typedef enum PWM_OUTPUT_PASSIVE_LEVEL | PWM_OUTPUT_PASSIVE_LEVEL_t |
The type identifies the timer interrupts. | |
typedef enum PWM_STATUS | PWM_STATUS_t |
The type identifies App state. | |
typedef enum PWM_ERROR_CODES | PWM_ERROR_CODES_t |
The type identifies the App Error Codes. |