LibDriver SPS30  1.0.0
SPS30 full-featured driver
driver_sps30_basic.h File Reference

driver sps30 basic header file More...

Go to the source code of this file.

Macros

#define SPS30_BASIC_DEFAULT_FORMAT   SPS30_FORMAT_IEEE754
 sps30 basic example default definition More...
 
#define SPS30_BASIC_DEFAULT_AUTO_CLEANING_INTERVAL   3600 * 24
 

Functions

uint8_t sps30_basic_init (sps30_interface_t interface)
 basic example init More...
 
uint8_t sps30_basic_deinit (void)
 basic example deinit More...
 
uint8_t sps30_basic_read (sps30_pm_t *pm)
 basic example read More...
 
uint8_t sps30_basic_start_fan_cleaning (void)
 basic example start fan cleaning More...
 
uint8_t sps30_basic_sleep (void)
 basic example sleep More...
 
uint8_t sps30_basic_wake_up (void)
 basic example wake up More...
 
uint8_t sps30_basic_reset (void)
 basic example reset More...
 
uint8_t sps30_basic_get_product_type (char type[9])
 basic example get the product type More...
 
uint8_t sps30_basic_get_serial_number (char sn[17])
 basic example get the serial number More...
 
uint8_t sps30_basic_get_version (uint8_t *major, uint8_t *minor)
 basic example get the version More...
 
uint8_t sps30_basic_get_status (uint32_t *status)
 basic example get the status More...
 

Detailed Description

driver sps30 basic header file

Copyright (c) 2015 - present LibDriver All rights reserved

The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Version
1.0.0
Author
Shifeng Li
Date
2021-07-25

history

Date Version Author Description
2021/07/25 1.0 Shifeng Li first upload

Definition in file driver_sps30_basic.h.