1 /* 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 3 * 4 * HDF is dual licensed: you can use it either under the terms of 5 * the GPL, or the BSD license, at your option. 6 * See the LICENSE file in the root of this repository for complete details. 7 */ 8 9 #ifndef HALL_AK8789_H 10 #define HALL_AK8789_H 11 12 #include "sensor_config_parser.h" 13 #include "sensor_hall_driver.h" 14 15 int32_t DetectHallAk8789Chip(struct SensorCfgData *data); 16 int32_t ReadAk8789Data(struct SensorCfgData *data); 17 18 struct Ak8789DrvData { 19 struct IDeviceIoService ioService; 20 struct HdfDeviceObject *device; 21 struct SensorCfgData *sensorCfg; 22 }; 23 24 #endif /* HALL_AK8789_H */