ftm_oc_driver.h File Reference
#include "ftm_common.h"

Go to the source code of this file.

Data Structures

struct  ftm_output_cmp_ch_param_t
 FlexTimer driver PWM parameters. More...
 
struct  ftm_output_cmp_param_t
 FlexTimer driver PWM parameters. More...
 

Enumerations

enum  ftm_output_compare_mode_t { FTM_DISABLE_OUTPUT = 0x00U, FTM_TOGGLE_ON_MATCH = 0x01U, FTM_CLEAR_ON_MATCH = 0x02U, FTM_SET_ON_MATCH = 0x03U }
 FlexTimer Mode configuration for output compare mode. More...
 
enum  ftm_output_compare_update_t { FTM_RELATIVE_VALUE = 0x00U, FTM_ABSOLUTE_VALUE = 0x01U }
 FlexTimer input capture type of the next output compare value. More...
 

Functions

status_t FTM_DRV_InitOutputCompare (uint32_t instance, const ftm_output_cmp_param_t *param)
 Configures the FTM to generate timed pulses(Output compare mode). More...
 
status_t FTM_DRV_DeinitOutputCompare (uint32_t instance, const ftm_output_cmp_param_t *param)
 Disables compare match output control and clears FTM timer configuration. More...
 
status_t FTM_DRV_UpdateOutputCompareChannel (uint32_t instance, uint8_t channel, uint16_t nextComparematchValue, ftm_output_compare_update_t update, bool softwareTrigger)
 Sets the next compare match value based on the current counter value. More...