Microchip® Advanced Software Framework

tc_events Struct Reference

TC event enable/disable structure.

Event flags for the tc_enable_events() and tc_disable_events().

#include <tc.h>

Data Fields

enum tc_event_action event_action
 Specifies which event to trigger if an event is triggered. More...
 
bool generate_event_on_compare_channel [NUMBER_OF_COMPARE_CAPTURE_CHANNELS]
 Generate an output event on a compare channel match. More...
 
bool generate_event_on_overflow
 Generate an output event on counter overflow. More...
 
bool invert_event_input
 Specifies if the input event source is inverted, when used in PWP or PPW event action modes. More...
 
bool on_event_perform_action
 Perform the configured event action when an incoming event is signalled. More...
 

enum tc_event_action tc_events::event_action

Specifies which event to trigger if an event is triggered.

Referenced by tc_enable_events(), and test_event_gen_user_init().

bool tc_events::generate_event_on_compare_channel[NUMBER_OF_COMPARE_CAPTURE_CHANNELS]

Generate an output event on a compare channel match.

Referenced by tc_disable_events(), and tc_enable_events().

bool tc_events::generate_event_on_overflow

Generate an output event on counter overflow.

Referenced by tc_disable_events(), and tc_enable_events().

bool tc_events::invert_event_input

Specifies if the input event source is inverted, when used in PWP or PPW event action modes.

Referenced by tc_disable_events(), and tc_enable_events().

bool tc_events::on_event_perform_action

Perform the configured event action when an incoming event is signalled.

Referenced by tc_disable_events(), tc_enable_events(), and test_event_gen_user_init().