upm
1.7.1
Sensor/Actuator repository for libmraa (v2.0.0)
|
Go to the source code of this file.
Data Structures | |
struct | _rpr220_context |
Functions | |
rpr220_context | rpr220_init (int pin) |
void | rpr220_close (rpr220_context dev) |
bool | rpr220_black_detected (const rpr220_context dev) |
void | rpr220_install_isr (const rpr220_context dev, void(*isr)(void *), void *arg) |
void | rpr220_uninstall_isr (const rpr220_context dev) |
Typedefs | |
typedef struct _rpr220_context * | rpr220_context |
rpr220_context rpr220_init | ( | int | pin | ) |
RPR220 initialization.
pin | Digital pin to use. |
void rpr220_close | ( | rpr220_context | dev | ) |
RPR220 destructor
dev | Device context. |
bool rpr220_black_detected | ( | const rpr220_context | dev | ) |
Gets the status of the pin; true means black has been detected
dev | Device context. |
void rpr220_install_isr | ( | const rpr220_context | dev, |
void(*)(void *) | isr, | ||
void * | arg | ||
) |
Installs an ISR to be called when black is detected
dev | Device context. |
isr | Pointer to a function to be called on interrupt |
arg | Pointer to an object to be supplied as an argument to the ISR. |
void rpr220_uninstall_isr | ( | const rpr220_context | dev | ) |
Uninstalls the previously installed ISR
dev | Device context. |
typedef struct _rpr220_context * rpr220_context |
Device context