We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d26937 commit 11f516cCopy full SHA for 11f516c
include/hw/gpio.h
@@ -133,6 +133,23 @@ int gpio_setuserdata(int handle, void *arg);
133
*/
134
void *gpio_getuserdata(int handle);
135
136
+/**
137
+ * GPIO Fast read
138
+ * Use with valid IO @a handle only
139
+ * @param handle Handle to gpio object returned by @ref gpio_request
140
+ * @return input gpio level @ref gpio_level_e
141
+ */
142
+int gpio_readfast(int handle);
143
+
144
145
+ * GPIO Fast write
146
147
148
+ * @param value gpio level to set @ref gpio_level_e
149
+ * @return 0 on success, negative value on failure
150
151
+int gpio_writefast(int handle, int value);
152
153
#ifdef __cplusplus
154
}
155
#endif
0 commit comments