1094332d3Sopenharmony_ci/*
2094332d3Sopenharmony_ci * Copyright (c) 2021-2022 xu
3094332d3Sopenharmony_ci *
4094332d3Sopenharmony_ci * HDF is dual licensed: you can use it either under the terms of
5094332d3Sopenharmony_ci * the GPL, or the BSD license, at your option.
6094332d3Sopenharmony_ci * See the LICENSE file in the root of this repository for complete details.
7094332d3Sopenharmony_ci */
8094332d3Sopenharmony_ci
9094332d3Sopenharmony_ci#ifndef PROXIMITY_APDS9960_H
10094332d3Sopenharmony_ci#define PROXIMITY_APDS9960_H
11094332d3Sopenharmony_ci
12094332d3Sopenharmony_ci#include "sensor_config_parser.h"
13094332d3Sopenharmony_ci#include "sensor_proximity_driver.h"
14094332d3Sopenharmony_ci
15094332d3Sopenharmony_ci#define APDS9960_PROXIMITY_DATA_ADDR              0X9C    // Proximity Data
16094332d3Sopenharmony_ci
17094332d3Sopenharmony_ci#define APDS9960_PROXIMITY_THRESHOLD               7    // threshold
18094332d3Sopenharmony_ci
19094332d3Sopenharmony_ciint32_t DetectProximityApds9960Chip(struct SensorCfgData *data);
20094332d3Sopenharmony_ci
21094332d3Sopenharmony_cistruct Apds9960DrvData {
22094332d3Sopenharmony_ci    struct IDeviceIoService ioService;
23094332d3Sopenharmony_ci    struct HdfDeviceObject *device;
24094332d3Sopenharmony_ci    struct SensorCfgData *sensorCfg;
25094332d3Sopenharmony_ci};
26094332d3Sopenharmony_ci
27094332d3Sopenharmony_ci#endif /* PROXIMITY_APDS9960_H */