| 
    upm
    1.0.2
    
   Sensor/Actuator repository for libmraa (v1.1.1) 
   | 
 

Go to the source code of this file.
Data Structures | |
| struct | _mb704x_context | 
Functions | |
| mb704x_context | mb704x_init (unsigned int bus, int addr) | 
| void | mb704x_close (mb704x_context dev) | 
| int | mb704x_get_range (const mb704x_context dev) | 
Typedefs | |
| typedef struct _mb704x_context * | mb704x_context | 
| mb704x_context mb704x_init | ( | unsigned int | bus, | 
| int | addr | ||
| ) | 
MB704X Initializer
| bus | Specify which the I2C bus to use. | 
| addr | Specify the I2C address to use. The default is 112. | 

| void mb704x_close | ( | mb704x_context | dev | ) | 
MB704X sensor close function

| int mb704x_get_range | ( | const mb704x_context | dev | ) | 
Query the device for a range reading. The range will be reported in centimeters (cm).
| dev | Device context | 

| typedef struct _mb704x_context * mb704x_context | 
Device context
 1.8.6