Sensor Fusion Library 0.6.1
Orientation sensing for Espressif (ESP32, ESP8266) processors
Loading...
Searching...
No Matches
driver_sensors.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2015, Freescale Semiconductor, Inc.
3 * Copyright (c) 2016-2017 NXP
4 * Copyright (c) 2020 Bjarne Hansen
5 * All rights reserved.
6 *
7 * SPDX-License-Identifier: BSD-3-Clause
8 */
9
21#ifndef DRIVER_SENSORS_H
22#define DRIVER_SENSORS_H
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28// Forward declarations of structures (redefined in sensor_fusion.h, but needed now for pointer definitions)
30typedef struct PhysicalSensor PhysicalSensor;
31
48int8_t FXOS8700_Accel_Init(PhysicalSensor *sensor, SensorFusionGlobals *sfg);
49int8_t FXOS8700_Mag_Init(PhysicalSensor *sensor, SensorFusionGlobals *sfg);
50int8_t FXOS8700_Therm_Init(PhysicalSensor *sensor, SensorFusionGlobals *sfg);
51int8_t FXOS8700_Init(PhysicalSensor *sensor, SensorFusionGlobals *sfg);
52int8_t FXAS21002_Init(PhysicalSensor *sensor, SensorFusionGlobals *sfg);
53
54int8_t FXOS8700_Accel_Read(PhysicalSensor *sensor, SensorFusionGlobals *sfg);
55int8_t FXOS8700_Mag_Read(PhysicalSensor *sensor, SensorFusionGlobals *sfg);
56int8_t FXOS8700_Therm_Read(PhysicalSensor *sensor, SensorFusionGlobals *sfg);
57int8_t FXOS8700_Read(PhysicalSensor *sensor, SensorFusionGlobals *sfg);
58int8_t FXAS21002_Read(PhysicalSensor *sensor, SensorFusionGlobals *sfg);
59
60int8_t FXOS8700_Idle(PhysicalSensor *sensor, SensorFusionGlobals *sfg);
61int8_t FXAS21002_Idle(PhysicalSensor *sensor, SensorFusionGlobals *sfg);
62
63#ifdef __cplusplus
64}
65#endif
66
67#endif // DRIVER_SENSORS_H
An instance of PhysicalSensor structure type should be allocated for each physical sensors (combo dev...
The top level fusion structure.