|
upm
1.7.1
Sensor/Actuator repository for libmraa (v2.0.0)
|

Go to the source code of this file.
Data Structures | |
| struct | _a110x_context |
Functions | |
| a110x_context | a110x_init (int pin) |
| void | a110x_close (a110x_context dev) |
| upm_result_t | a110x_magnet_detected (a110x_context dev, bool *res) |
| upm_result_t | a110x_install_isr (a110x_context dev, mraa_gpio_edge_t edge_level, void(*isr)(void *), void *arg) |
| upm_result_t | a110x_uninstall_isr (a110x_context dev) |
Typedefs | |
| typedef struct _a110x_context * | a110x_context |
| a110x_context a110x_init | ( | int | pin | ) |
A110X Initialization function
| pin | GPIO pin to use |
| void a110x_close | ( | a110x_context | dev | ) |
A110X Initialization function
| dev | a110x_context pointer |
| upm_result_t a110x_magnet_detected | ( | a110x_context | dev, |
| bool * | res | ||
| ) |
Determines whether a magnetic field of south polarity has been detected
| dev | a110x_context pointer |
| bool* | to note the response |
| upm_result_t a110x_install_isr | ( | a110x_context | dev, |
| mraa_gpio_edge_t | edge_level, | ||
| void(*)(void *) | isr, | ||
| void * | arg | ||
| ) |
Installs an interrupt service routine (ISR) to be called when the appropriate magnetic field is detected
| dev | a110x_context pointer |
| mraa_gpio_edge_t | edge trigger level |
| isr | ISR callback function |

| upm_result_t a110x_uninstall_isr | ( | a110x_context | dev | ) |
Uninstalls the previously installed ISR
| dev | a110x_context pointer |

| typedef struct _a110x_context * a110x_context |
device context
1.8.11