aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/peripheralmanager/gpio.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/peripheralmanager/gpio.h b/include/peripheralmanager/gpio.h
index 28989ea..de5bfdd 100644
--- a/include/peripheralmanager/gpio.h
+++ b/include/peripheralmanager/gpio.h
@@ -91,6 +91,13 @@ int BGpio_getValue(const BGpio* gpio, int* value);
/// @return Error code (one of peripheral_error_t).
int BGpio_getPollingFd(const BGpio* gpio, int* fd);
+/// Acknowledges the interrupt and resets the file descriptor.
+/// This must be called after each event triggers in order to be able to
+/// poll/select for another event.
+/// @param fd Polling file descriptor to reset.
+/// @return 0 on success, errno on error.
+int BGpio_ackInterruptEvent(int fd);
+
/// Destroys a BGpio struct.
/// @param gpio Pointer to the BGpio struct.
void BGpio_delete(BGpio* gpio);