PWM: Enumerations

Modbus RTU XMC47

PWM
Enumerations
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.

Enumeration Type Documentation

The type identifies the App Error Codes.

Enumerator:
PWM_OPER_NOT_ALLOWED_ERROR 

if the current API operation is not possible in the given state

PWM_INVALID_PARAM_ERROR 

the parameters passed to an API are invalid

Definition at line 157 of file PWM.h.

The type identifies the timer interrupts.

Enumerator:
PWM_INTERRUPT_PERIODMATCH 

Period match interrupt while counting up

PWM_INTERRUPT_COMPAREMATCH 

Compare match interrupt while counting up

Definition at line 126 of file PWM.h.

The type identifies the timer interrupts.

Enumerator:
PWM_OUTPUT_PASSIVE_LEVEL_LOW 

Passive level = Low

PWM_OUTPUT_PASSIVE_LEVEL_HIGH 

Passive level = High

Definition at line 135 of file PWM.h.

enum PWM_STATUS

The type identifies App state.

Enumerator:
PWM_STATUS_SUCCESS 

APP is initialized as per selected parameters

PWM_STATUS_FAILURE 

APP initialization function failure

PWM_STATUS_UNINITIALIZED 

default state after power on reset

PWM_STATUS_RUNNING 

CCU slice is running in PWM mode

PWM_STATUS_STOPPED 

CCU slice timer is stopped

Definition at line 145 of file PWM.h.