nRF Connect SDK API 2.8.0
Loading...
Searching...
No Matches
sensor_stub.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2022 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef _SENSOR_STUB_H_
8#define _SENSOR_STUB_H_
9
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20#include <zephyr/types.h>
21#include <zephyr/drivers/sensor.h>
22
40void *sensor_stub_udata_get(const struct device *dev);
41
50void sensor_stub_udata_set(const struct device *dev, void *udata);
51
56#ifdef __cplusplus
57}
58#endif
59
60#endif /* _SENSOR_STUB_H_ */
void sensor_stub_udata_set(const struct device *dev, void *udata)
Set user data.
void * sensor_stub_udata_get(const struct device *dev)
Get user data.