English
Language : 

UM0097 Datasheet, PDF (105/229 Pages) STMicroelectronics – STR71x firmware library
UM0097
Peripheral firmware overview
Output compare modes enumeration
The following enumeration defines the Output Compare modes. The OC_Modes
enumeration is defined in the file 71x_tim.h:
typedef enum
{
TIM_TIMING,
TIM_WAVE
} TIM_OC_Modes;
Table 51 enumerates the output compare modes.
Table 51. Output compare modes
Output Compare Mode
Description
TIM_TIMING
The output compare mode is used for internal operations
TIM_WAVE
The output compare mode is only used for external wave generation
operations
Logic levels enumeration
The following enumeration defines the different logic levels. The Logic_Levels enumeration
is defined in the file 71x_tim.h:
typedef enum
{
TIM_HIGH,
TIM_LOW
} TIM_Logic_Levels;
Table 52 enumerates the logic levels.
Table 52. Logic levels
Logic level
Description
TIM_HIGH
The output compare is forced to the high level after the match between
the counter and the output compare register.
TIM_LOW
The output compare is forced to the low level after the match between
the counter and the output compare register.
Counter operations enumeration
The following enumeration defines the different counter operations. The CounterOperations
enumeration is defined in the file 71x_tim.h:
typedef enum
{
TIM_START,
TIM_STOP,
TIM_CLEAR
} TIM_CounterOperations;
105/229