Skip to content

Feature request: Pm1EventRegisterBlock status get and clear #323

Description

@ChocolateLoverRaj

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions