SparkFun Air Quality PM1/PM2.5/PM10 Sensor - BMV080  v1.0.0-15-g8f97a54
Library for the SparkFun Air Quality PM1/PM2.5/PM10 Sensor - BMV080r
Loading...
Searching...
No Matches
sfDevBMV080.cpp File Reference

Implementation file for the SparkFun BMV080 Library. More...

#include "sfDevBMV080.h"
#include "sfTk/sfTkII2C.h"
#include "sfTk/sfToolkit.h"
#include <cstring>
Include dependency graph for sfDevBMV080.cpp:

Macros

#define E_COMBRIDGE_OK   ((int8_t)0)
 
#define E_COMBRIDGE_ERROR_MEMORY_ALLOCATION   ((int8_t)-1)
 
#define E_COMBRIDGE_ERROR_READ   ((int8_t)-2)
 
#define E_COMBRIDGE_ERROR_WRITE   ((int8_t)-3)
 
#define E_COMBRIDGE_ERROR_WRITE_HEADER   ((int8_t)-4)
 
#define E_COMBRIDGE_ERROR_NULLPTR   ((int8_t)-5)
 

Detailed Description

Implementation file for the SparkFun BMV080 Library.

This file contains the implementation of the sfDevBMV080 class, which provides an interface to the BMV080 sensor. It includes methods for initializing the sensor, reading sensor data, and configuring sensor settings.

Author
Pete Lewis
Date
2025
Version
1.0

SPDX-License-Identifier: MIT

See also
sfDevBMV080.h

Macro Definition Documentation

◆ E_COMBRIDGE_ERROR_MEMORY_ALLOCATION

#define E_COMBRIDGE_ERROR_MEMORY_ALLOCATION   ((int8_t)-1)

-1: Status codes returned when memory allocation fails

◆ E_COMBRIDGE_ERROR_NULLPTR

#define E_COMBRIDGE_ERROR_NULLPTR   ((int8_t)-5)

-5: Status codes returned when a reference is null

◆ E_COMBRIDGE_ERROR_READ

#define E_COMBRIDGE_ERROR_READ   ((int8_t)-2)

-2: Status codes returned when the read operation fails

◆ E_COMBRIDGE_ERROR_WRITE

#define E_COMBRIDGE_ERROR_WRITE   ((int8_t)-3)

-3: Status codes returned when the write operation fails

◆ E_COMBRIDGE_ERROR_WRITE_HEADER

#define E_COMBRIDGE_ERROR_WRITE_HEADER   ((int8_t)-4)

-4: Status codes returned when writing the header fails

◆ E_COMBRIDGE_OK

#define E_COMBRIDGE_OK   ((int8_t)0)