Loading...
Searching...
No Matches

Detailed Description

#include "periph/i2c.h"
#include "periph/gpio.h"
+ Include dependency graph for hm330x.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  hm330x_data_t
 Set of measured particulate matter values as sent by the device. More...
 
struct  hm330x_params_t
 Device initialization parameters. More...
 
struct  hm330x_t
 Device descriptor for the driver. More...
 

Macros

#define CONFIG_HM330X_INDOOR_ENVIRONMENT   1
 HM330X deployment setting.
 

Functions

int hm330x_init (hm330x_t *dev, const hm330x_params_t *params)
 Initialize the given device.
 
int hm330x_read (hm330x_t *dev, hm330x_data_t *data)
 Read particle matter measurements.
 
void hm330x_reset (hm330x_t *dev)
 Reset the sensor.
 
void hm330x_sleep (hm330x_t *dev)
 Set Device to Sleep.
 
void hm330x_wakeup (hm330x_t *dev)
 Wakeup Device.