From the struct's docs
The register grouping contains two registers - a STS status register that can be read to determine if an event has fired (and written to clear), and an EN enabling register to control whether an event should fire.
Currently the struct has a high level set_event_enabled but no function for getting which events fired and acknowledging / clearing them.
I want to handle the power button in my OS. So far with this library's high level functions I enabled the event and get an interrupt when I press the power button, but I will need to get/clear events.
I will probably make a PR for this.
From the struct's docs
Currently the struct has a high level
set_event_enabledbut no function for getting which events fired and acknowledging / clearing them.I want to handle the power button in my OS. So far with this library's high level functions I enabled the event and get an interrupt when I press the power button, but I will need to get/clear events.
I will probably make a PR for this.