1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/drivers/jc42/include/jc42_internal.h
Koen Zandberg 0f22e13ccb drivers/jc42: Add JEDEC JC42.4 temperature sensors
This patch adds a driver for the jc42 compatible
temperature sensors. All sensors compatible with
jc42.4 should work. Examples include the mcp9808
and more.
2017-01-15 13:10:36 +01:00

51 lines
1.0 KiB
C

/*
* Copyright (C) 2017 Koen Zandberg
*
* 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_sensors
* @{
*
* @file
* @brief Internal addresses, registers, constants for jc42 sensors.
*
* @author Koen Zandberg <koen@bergzand.net>
*/
#ifndef JC42_INTERNAL_H_
#define JC42_INTERNAL_H_
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name JC42 register addresses
* @{
*/
#define JC42_REG_CAP (0x00)
#define JC42_REG_CONFIG (0x01)
#define JC42_REG_TEMP_UPPER (0x02)
#define JC42_REG_TEMP_LOWER (0x03)
#define JC42_REG_TEMP_CRITICAL (0x04)
#define JC42_REG_TEMP (0x05)
#define JC42_REG_MANID (0x06)
#define JC42_REG_DEVICEID (0x07)
#define jc42_BUS_FREE_TIME_US (1)
/** @} */
#ifdef __cplusplus
}
#endif
/** @} */
#endif /* JC42_INTERNAL_H_ */