Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
mtch9010.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025 Microchip Technology Inc.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_MTCH9010_H_
8#define ZEPHYR_INCLUDE_DRIVERS_SENSOR_MTCH9010_H_
9
10#include <stdint.h>
11
12#include <zephyr/device.h>
13#include <zephyr/kernel.h>
14#include <zephyr/drivers/uart.h>
16#include <zephyr/logging/log.h>
17
18#define MTCH9010_MAX_RESULT 65535
19#define MTCH9010_MIN_RESULT 0
20
22 /* Polls the state of the OUT line */
24 /* Calculates if the OUT line would be asserted based on previous result */
26 /* Returns the reference value set for the sensor */
28 /* Returns the threshold value set for the sensor */
30 /* Returns the last measured result */
32 /* Returns the last measured result */
34 /* Returns true if the heartbeat is an error state */
36};
37
38#endif
sensor_channel_mtch9010
Definition mtch9010.h:21
@ SENSOR_CHAN_MTCH9010_THRESHOLD_VALUE
Definition mtch9010.h:29
@ SENSOR_CHAN_MTCH9010_SW_OUT_STATE
Definition mtch9010.h:25
@ SENSOR_CHAN_MTCH9010_HEARTBEAT_ERROR_STATE
Definition mtch9010.h:35
@ SENSOR_CHAN_MTCH9010_MEAS_DELTA
Definition mtch9010.h:33
@ SENSOR_CHAN_MTCH9010_REFERENCE_VALUE
Definition mtch9010.h:27
@ SENSOR_CHAN_MTCH9010_OUT_STATE
Definition mtch9010.h:23
@ SENSOR_CHAN_MTCH9010_MEAS_RESULT
Definition mtch9010.h:31
Main header file for UART driver API.
@ SENSOR_CHAN_PRIV_START
This and higher values are sensor specific.
Definition sensor.h:225
Public kernel APIs.
Main header file for sensor driver API.