Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed by
Diff: InterruptIn.h
- Revision:
- 55:d722ed6a4237
- Parent:
- 54:71b101360fb9
- Child:
- 59:0883845fe643
--- a/InterruptIn.h Tue Jan 08 12:46:36 2013 +0000
+++ b/InterruptIn.h Wed Jan 16 12:56:34 2013 +0000
@@ -68,13 +68,13 @@
*/
InterruptIn(PinName pin);
virtual ~InterruptIn();
-
+
int read();
#ifdef MBED_OPERATORS
operator int();
#endif
-
+
/** Attach a function to call when a rising edge occurs on the input
*
* @param fptr A pointer to a void function, or 0 to set as none
@@ -82,7 +82,7 @@
void rise(void (*fptr)(void));
/** Attach a member function to call when a rising edge occurs on the input
- *
+ *
* @param tptr pointer to the object to call the member function on
* @param mptr pointer to the member function to be called
*/
@@ -99,7 +99,7 @@
void fall(void (*fptr)(void));
/** Attach a member function to call when a falling edge occurs on the input
- *
+ *
* @param tptr pointer to the object to call the member function on
* @param mptr pointer to the member function to be called
*/
@@ -114,13 +114,13 @@
* @param mode PullUp, PullDown, PullNone
*/
void mode(PinMode pull);
-
+
static void _irq_handler(uint32_t id, gpio_irq_event event);
-
+
protected:
gpio_t gpio;
gpio_irq_t gpio_irq;
-
+
FunctionPointer _rise;
FunctionPointer _fall;
};
