1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-17 10:33:49 +01:00
RIOT/drivers/ds75lx/include/ds75lx_internals.h
Marian Buschsieweke cac44edec7
tree-wide: replace multiple empty lines with one
For each C source/header `$file`: `sed -e '/^$/N;/^\n$/D' -i $file`.
2025-05-21 22:51:04 +02:00

63 lines
1.3 KiB
C

/*
* Copyright (C) 2019 Inria
*
* 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.
*/
#pragma once
/**
* @ingroup drivers_ds75lx
* @{
*
* @file
* @brief Internal addresses, registers, constants for the DS75LX sensor.
*
* @author Alexandre Abadie <alexandre.abadie@inria.fr>
*/
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief DS75LX I2C address (7 bit address)
*/
#define DS75LX_ADDR (0x48)
/**
* @name DS75LX registers
* @{
*/
#define DS75LX_REG_TEMPERATURE (0x00)
#define DS75LX_REG_CONFIGURATION (0x01)
#define DS75LX_REG_T_HYST (0x02)
#define DS75LX_REG_T_OS (0x03)
/** @} */
/**
* @name Configuration register bits
* @{
*/
#define DS75LX_CONF_SD_POS (0)
#define DS75LX_CONF_TM_POS (1)
#define DS75LX_CONF_POL_POS (2)
#define DS75LX_CONF_F0_POS (3)
#define DS75LX_CONF_F0_MASK (0x18)
#define DS75LX_CONF_R0_POS (5)
#define DS75LX_CONF_R0_MASK (0x60)
/** @} */
/**
* @brief Max conversion time unit (ms)
*/
#define DS75LX_MAX_CONVERSION_TIME (25U)
#ifdef __cplusplus
}
#endif
/** @} */