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§
- Gpio
EtmChannels - All the GPIO ETM channels
- Gpio
EtmEvent Channel - An ETM controlled GPIO event
- Gpio
EtmEvent Channel Any - Event for any edge
- Gpio
EtmEvent Channel Falling - Event for falling edge
- Gpio
EtmEvent Channel Rising - Event for rising edge
- Gpio
EtmTask Channel - An ETM controlled GPIO task
- Gpio
EtmTask Clear - Task for clear operation
- Gpio
EtmTask Set - Task for set operation
- Gpio
EtmTask Toggle - Task for toggle operation