You can do this by checking `pio->ctrl` obviously, but it would be a bit cleaner if there was a little helper function for this.
You can do this by checking
pio->ctrlobviously, but it would be a bit cleaner if there was a little helper function for this.