CCU8PWMLIBApp
|
#define CCU8PWMLIB_ACTIVE_HIGH 0x01U |
Active high level
Definition at line 84 of file CCU8PWMLIB.h.
#define CCU8PWMLIB_ACTIVE_LOW 0x00U |
Active low level
Definition at line 80 of file CCU8PWMLIB.h.
#define CCU8PWMLIB_ALL_CCU8_INTR_CLEAR 0x00000F3FU |
To clear all the interrupts of CCU
Definition at line 88 of file CCU8PWMLIB.h.
#define CCU8PWMLIB_CENTER_PERIOD_VAL | ( | count | ) | (uint32_t)((count <<1U) -1U ) |
This is the period register value in center-aligned mode
Definition at line 109 of file CCU8PWMLIB.h.
#define CCU8PWMLIB_COMPARE_MODE 0x00U |
This is the value to set compare mode
Definition at line 112 of file CCU8PWMLIB.h.
#define CCU8PWMLIB_COUNT | ( | PwmTime, | |
Res | |||
) | (uint32_t)(PwmTime/Res) |
To count the period register value from the PWM frequency and the CCU8 clock.
Definition at line 101 of file CCU8PWMLIB.h.
#define CCU8PWMLIB_EDGE_PERIOD_VAL | ( | count | ) | (uint32_t)(count -1U) |
This is the period register value in edge-aligned mode
Definition at line 105 of file CCU8PWMLIB.h.
#define CCU8PWMLIB_EVENT_0 0x01U |
This is mask for Event 0
Definition at line 68 of file CCU8PWMLIB.h.
#define CCU8PWMLIB_EVENT_1 0x02U |
This is mask for Event 1
Definition at line 72 of file CCU8PWMLIB.h.
#define CCU8PWMLIB_EVENT_2 0x03U |
This is mask for event 2
Definition at line 76 of file CCU8PWMLIB.h.
#define CCU8PWMLIB_LPF 0x0U |
low pass filter value
Definition at line 96 of file CCU8PWMLIB.h.
#define CCU8PWMLIB_SLICE_CLEAR 0x07U |
To clear the CCU8 slice.
Definition at line 92 of file CCU8PWMLIB.h.
typedef enum CCU8PWMLIB_CCUInUseType CCU8PWMLIB_CCUInUseType |
This enumerates the CCU8x_CCy slice used by Single Phase PWM with Dead time APP.
typedef enum CCU8PWMLIB_CompareModeType CCU8PWMLIB_CompareModeType |
This enumerates the compare mode of the CCU8_CCy slice timer - symmetric comparison or asymmetric comparison
typedef enum CCU8PWMLIB_CountingModeType CCU8PWMLIB_CountingModeType |
This enumerates the CCU8_CCy slice timer operating mode - edge-aligned or center-aligned.
typedef enum CCU8PWMLIB_DeadTimeConfType CCU8PWMLIB_DeadTimeConfType |
This enumerates dead time configuration for the CCU8_CCy slice channels
typedef struct CCU8PWMLIB_DynamicHandleType CCU8PWMLIB_DynamicHandleType |
This structure will hold the configuration parameters which change at run time.
typedef enum CCU8PWMLIB_ErrorCodesType CCU8PWMLIB_ErrorCodesType |
This enumerates the error codes of this APP which will be returned from a function as a return parameter.
typedef enum CCU8PWMLIB_EventNameType CCU8PWMLIB_EventNameType |
This enumerates the events of the CCU8PWMLIB app.
This enumerates the external start configuration of the timer.
typedef enum CCU8PWMLIB_ExtStopConfigType CCU8PWMLIB_ExtStopConfigType |
This enumerates the external stop configuration of the timer.
typedef struct CCU8PWMLIB_HandleType CCU8PWMLIB_HandleType |
This structure holds all the static configuration parameters for the Single Phase PWM with Dead Time APP.
typedef enum CCU8PWMLIB_StateType CCU8PWMLIB_StateType |
This structure enumerates the states of the Single Phase PWM with dead time APP.
typedef struct CCU8PWMLIB_TimerRegsType CCU8PWMLIB_TimerRegsType |
This structure holds the values of the compare register, period register.
This enumerates the CCU8x_CCy slice used by Single Phase PWM with Dead time APP.
CCU8PWMLIB_SLICE0 |
This is slice 0 of CCU8 |
CCU8PWMLIB_SLICE1 |
This is slice 1 of CCU8 |
CCU8PWMLIB_SLICE2 |
This is slice 2 of CCU8 |
CCU8PWMLIB_SLICE3 |
This is slice 3 of CCU8 |
Definition at line 159 of file CCU8PWMLIB.h.
This enumerates the compare mode of the CCU8_CCy slice timer - symmetric comparison or asymmetric comparison
Definition at line 237 of file CCU8PWMLIB.h.
This enumerates the CCU8_CCy slice timer operating mode - edge-aligned or center-aligned.
Definition at line 276 of file CCU8PWMLIB.h.
This enumerates dead time configuration for the CCU8_CCy slice channels
Definition at line 213 of file CCU8PWMLIB.h.
CCU8PWMLIB_NOTRIGGER |
Trigger is not required. |
CCU8PWMLIB_RISINGEDGE |
Trigger on rising edge |
CCU8PWMLIB_FALLINGEDGE |
Trigger on falling edge |
CCU8PWMLIB_BOTHEDGES |
Trigger on both edges |
Definition at line 253 of file CCU8PWMLIB.h.
This enumerates the error codes of this APP which will be returned from a function as a return parameter.
Definition at line 183 of file CCU8PWMLIB.h.
This enumerates the events of the CCU8PWMLIB app.
Definition at line 332 of file CCU8PWMLIB.h.
This enumerates the external start configuration of the timer.
CCU8PWMLIB_START_TIMER |
This will set the run bit of the timer. |
CCU8PWMLIB_CLEAR_START_TIMER |
This will first clear the timer and then set the run bit of the timer. |
Definition at line 297 of file CCU8PWMLIB.h.
This enumerates the external stop configuration of the timer.
Definition at line 312 of file CCU8PWMLIB.h.
enum CCU8PWMLIB_StateType |
This structure enumerates the states of the Single Phase PWM with dead time APP.
Definition at line 133 of file CCU8PWMLIB.h.