Module esp32c6_hal::gpio::etm
source · Expand description
Event Task Matrix Function
Overview
GPIO supports ETM function, that is, the ETM task of GPIO can be triggered by the ETM event of any peripheral, or the ETM task of any peripheral can be triggered by the ETM event of GPIO.
The GPIO ETM provides eight task channels. The ETM tasks that each task channel can receive are:
- SET: GPIO goes high when triggered
- CLEAR: GPIO goes low when triggered
- TOGGLE: GPIO toggle level when triggered.
GPIO has eight event channels, and the ETM events that each event channel can generate are:
- RISE_EDGE: Indicates that the output signal of the corresponding GPIO has a rising edge
- FALL_EDGE: Indicates that the output signal of the corresponding GPIO has a falling edge
- ANY_EDGE: Indicates that the output signal of the corresponding GPIO is reversed
Example
let led_task = gpio_ext.channel0_task.toggle(&mut led);
let button_event = gpio_ext.channel0_event.falling_edge(button);
Structs
- All the GPIO ETM channels
- An ETM controlled GPIO event
- Event for any edge
- Event for falling edge
- Event for rising edge
- An ETM controlled GPIO task
- Task for clear operation
- Task for set operation
- Task for toggle operation