![]() |
IoT Drivers
v3.3.0 (S2022)
Engineering in Software Technology
|
How to initialise the driver. More...
Functions | |
void | mh_z19_initialise (serial_comPort_t com_port) |
Initialise the driver. More... | |
void | mh_z19_injectCallBack (void(*mh_z19_callBack)(uint16_t)) |
Inject a call-back function to the driver. More... | |
How to initialise the driver.
void mh_z19_initialise | ( | serial_comPort_t | com_port | ) |
Initialise the driver.
Initialise the MH-Z19 Driver.
[in] | com_port | to be used for communication with the RN2483 module. |
vTaskStartScheduler()is called in case FreeRTOS is used!!
void mh_z19_injectCallBack | ( | void(*)(uint16_t) | mh_z19_callBack | ) |
Inject a call-back function to the driver.
Injects a call-back function that will be called each time a new CO2 value is ready.
[in] | mh_z19_callBack | function pointer to call back function, or NULL if no call back function is used. |
The call back function must have this signature: