1094332d3Sopenharmony_ci/* 2094332d3Sopenharmony_ci * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 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 HALL_AK8789_H 10094332d3Sopenharmony_ci#define HALL_AK8789_H 11094332d3Sopenharmony_ci 12094332d3Sopenharmony_ci#include "sensor_config_parser.h" 13094332d3Sopenharmony_ci#include "sensor_hall_driver.h" 14094332d3Sopenharmony_ci 15094332d3Sopenharmony_ciint32_t DetectHallAk8789Chip(struct SensorCfgData *data); 16094332d3Sopenharmony_ci 17094332d3Sopenharmony_cistruct Ak8789DrvData { 18094332d3Sopenharmony_ci struct IDeviceIoService ioService; 19094332d3Sopenharmony_ci struct HdfDeviceObject *device; 20094332d3Sopenharmony_ci struct SensorCfgData *sensorCfg; 21094332d3Sopenharmony_ci}; 22094332d3Sopenharmony_ci 23094332d3Sopenharmony_ci#endif /* HALL_AK8789_H */