hvac 2.0.0.0
main.c File Reference

Hvac Click example. More...

#include "board.h"
#include "log.h"
#include "hvac.h"

Functions

void application_init (void)
 
void application_task (void)
 
int main (void)
 

Variables

measuremen_data_t hvac_data
 
feature_data_t version_data
 
mass_and_num_cnt_data_t sps30_data
 
uint16_t ser_num [3]
 

Detailed Description

Hvac Click example.

Description

This is an example that demonstrates the use of the HVAC Click board.

The demo application is composed of two sections :

Application Init

Initialization driver enables - I2C, SCD40: perform factory reset, serial number, features, product type platform type, product version and SPS30: perform start measurement mode, also write log.

Application Task

This is an example which demonstrates the use of HVAC Click board. HVAC Click board can be used to measure : Concentration of CO2 in air, Temperature ( degree Celsius ), Relative Humidity ( % ), Mass Concentration of PM1.0, PM2.5, PM4.0, PM10 and Number Concentration of PM0.5, PM1.0, PM2.5, PM4.0 and PM10. All data logs write on USB uart changes.

Author
Stefan Ilic

Function Documentation

◆ application_init()

void application_init ( void )

< Logger config object.

< Click config object.

Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG

Note
If USB_UART_RX and USB_UART_TX are defined as HAL_PIN_NC, you will need to define them manually for log to work. See LOG_MAP_USB_UART macro definition for detailed explanation.

◆ application_task()

void application_task ( void )

◆ main()

int main ( void )

Variable Documentation

◆ hvac_data

measuremen_data_t hvac_data

◆ ser_num

uint16_t ser_num[3]

◆ sps30_data

◆ version_data

feature_data_t version_data