2021-11-26 17:22:54 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2021, Nordic Semiconductor ASA
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef ZEPHYR_DRIVERS_SENSOR_MPU9250_AK8963_H_
|
|
|
|
#define ZEPHYR_DRIVERS_SENSOR_MPU9250_AK8963_H_
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2022-05-06 16:25:46 +08:00
|
|
|
#include <zephyr/device.h>
|
|
|
|
#include <zephyr/drivers/sensor.h>
|
2021-11-26 17:22:54 +08:00
|
|
|
|
|
|
|
|
|
|
|
int ak8963_convert_magn(struct sensor_value *val, int16_t raw_val,
|
|
|
|
int16_t scale, uint8_t st2);
|
|
|
|
|
|
|
|
int ak8963_init(const struct device *dev);
|
|
|
|
|
|
|
|
#endif /* ZEPHYR_DRIVERS_SENSOR_MPU9250_AK8963_H_ */
|