| 
    upm
    1.3.0
    
   Sensor/Actuator repository for libmraa (v1.7.0) 
   | 
 

Go to the source code of this file.
Data Structures | |
| struct | _mic_context | 
Functions | |
| mic_context | mic_init (int pin) | 
| void | mic_close (mic_context dev) | 
| upm_result_t | mic_get_value (mic_context dev, float *micval) | 
Typedefs | |
| typedef struct _mic_context * | mic_context | 
| mic_context mic_init | ( | int | pin | ) | 
Microphone sensor initialization function
| pin | analog pin to use | 
| void mic_close | ( | mic_context | dev | ) | 
Microphone sensor destructor
| dev | sensor context pointer | 
| upm_result_t mic_get_value | ( | mic_context | dev, | 
| float * | micval | ||
| ) | 
Gets a sample from the microphone
| dev | sensor context pointer | 
| micval | microphone value in ADC counts | 
| typedef struct _mic_context * mic_context | 
device context
 1.8.6