Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.
/ embedded-sgp Public archive

Embedded SGP Drivers for Sensirion Gas Sensors - Download the Zip Package from the Release Page

License

Notifications You must be signed in to change notification settings

Sensirion/embedded-sgp

Folders and files

NameName
Last commit message
Last commit date
Oct 22, 2019
Jul 19, 2019
Apr 27, 2020
Feb 3, 2020
Oct 28, 2019
Oct 21, 2019
Feb 10, 2020
Feb 10, 2020
May 9, 2019
Feb 3, 2020
Oct 14, 2019
Jan 4, 2018
Apr 27, 2020
Mar 21, 2018
Feb 10, 2020
Nov 29, 2018

Repository files navigation

embedded-sgp CircleCI GitHub license

This repository contains the embedded driver sources for Sensirion's SGP product line.

Clone this repository

git clone --recursive https://github.com/Sensirion/embedded-sgp.git

Repository content

  • embedded-common (submodule repository for common embedded driver stuff)
  • sgp30 (SGP30 driver related)
  • sgpc3 (SGPC3 driver related)
  • sgp-common (SGPxx related)

Collecting resources

make release

This will create a release folder with the necessary driver files in it, including a Makefile. That way, you have just ONE folder with all the sources ready to build your driver for your platform.

Files to adjust (from embedded-common)

You only need to touch the following files:

  • sensirion_arch_config.h (architecture specifics, you need to specify the integer sizes)

and depending on your i2c implementation one of the following:

  • sensirion_hw_i2c_implementation.c (functions for hardware i2c communication if your platform supports that)
  • sensirion_sw_i2c_implementation.c (functions for software i2c communication via GPIOs)

Building the driver

  1. Step into your desired directory (e.g.: release/sgp30)
  2. Adjust sensirion_arch_config.h if you don't have the <stdint.h> header file available
  3. Implement necessary functions in one of the *_implementation.c files
  4. make

Please check the embedded-common repository for further information and sample implementations.