Go to the source code of this file.
MQ303A Initialization function
- Parameters
- 
  
    | pin | Analog pin to use |  | heaterPin | Digital pin mapped to the analog pin to use |  
 
- Returns
- void* pointer to the sensor struct 
 
 
MQ303A Initialization function
- Parameters
- 
  
    | void* | pointer to the sensor struct |  
 
 
 
This function gets the value of the alcohol content
- Parameters
- 
  
    | void* | pointer to the sensor struct |  | *val | pointer to store the reading |  
 
- Returns
- upm_result_t UPM success/error code 
 
 
This function enables/disables the heater on board the sensor.
- Parameters
- 
  
    | void* | pointer to the sensor struct |  | bool | to turn on/off heater |  
 
- Returns
- upm_result_t UPM success/error code