mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
7ea8f738fd
drivers/seesaw_soil: Add support for Adafruit Seesaw Soil moisture sensor
50 lines
895 B
C
50 lines
895 B
C
/*
|
|
* Copyright (C) 2020 Viktor Gal
|
|
*
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
* directory for more details.
|
|
*/
|
|
|
|
/**
|
|
* @ingroup drivers_seesaw_soil
|
|
* @{
|
|
*
|
|
* @file
|
|
* @brief Register definitions for Seesaw Soil devices
|
|
*
|
|
* @author Viktor Gal <viktor.gal@maeth.com>
|
|
*/
|
|
|
|
#ifndef SEESAW_SOIL_REGS_H
|
|
#define SEESAW_SOIL_REGS_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
/**
|
|
* @name Manufacturer ID
|
|
* @{
|
|
*/
|
|
#define SEESAW_SOIL_MID_VALUE 0x55
|
|
/** @} */
|
|
|
|
/**
|
|
* @name Register Map
|
|
* @{
|
|
*/
|
|
#define SEESAW_SOIL_MANUFACTURER_ID (0x01)
|
|
#define SEESAW_SOIL_TEMPERATURE (0x04)
|
|
#define SEESAW_SOIL_MOISTURE (0x0F10)
|
|
#define SEESAW_SOIL_RST (0x7F)
|
|
/** @} */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* SEESAW_SOIL_REGS_H */
|
|
/** @} */
|