Go to the source code of this file.
◆ mq303a_init()
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_close()
MQ303A Initialization function
- Parameters
-
void* | pointer to the sensor struct |
◆ mq303a_get_value()
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
◆ mq303a_heater_enable()
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
◆ mq303a_context