Loading...
Searching...
No Matches
amg88xx_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2026 Bas Stottelaar <basstottelaar@gmail.com>
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "board.h"
19#include "saul_reg.h"
20
21#include "amg88xx.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
31#ifndef AMG88XX_PARAM_I2C_DEV
32# define AMG88XX_PARAM_I2C_DEV I2C_DEV(0)
33#endif
34#ifndef AMG88XX_PARAM_ADDR
35# define AMG88XX_PARAM_ADDR AMG88XX_I2C_ADDRESS
36#endif
37#if IS_USED(MODULE_PERIPH_GPIO_IRQ)
38#ifndef AMG88XX_PARAM_INT_PIN
39# define AMG88XX_PARAM_INT_PIN GPIO_UNDEF
40#endif
41#endif
42
43#ifndef AMG88XX_PARAMS
44# if IS_USED(MODULE_PERIPH_GPIO_IRQ) || defined(DOXYGEN)
45# define AMG88XX_PARAMS { .i2c_dev = AMG88XX_PARAM_I2C_DEV, \
46 .address = AMG88XX_PARAM_ADDR, \
47 .int_pin = AMG88XX_PARAM_INT_PIN }
48# else
49# define AMG88XX_PARAMS { .i2c_dev = AMG88XX_PARAM_I2C_DEV, \
50 .address = AMG88XX_PARAM_ADDR }
51# endif
52#endif
53#ifndef AMG88XX_SAUL_INFO
54# define AMG88XX_SAUL_INFO { .name = "amg88xx" }
55#endif
57
62{
64};
65
73
74#ifdef __cplusplus
75}
76#endif
77
Interface definition for the AMG88xx infrared array sensor driver.
static const amg88xx_params_t amg88xx_params[]
Configure AMG88xx.
#define AMG88XX_SAUL_INFO
SAUL info.
static const saul_reg_info_t amg88xx_saul_info[]
Configure SAUL registry entries.
#define AMG88XX_PARAMS
Default params.
SAUL registry interface definition.
Device initialization parameters.
Definition amg88xx.h:120
Additional data to collect for each entry.
Definition saul_reg.h:48