Basic_Frame_TypeC_2023_Omni
Loading...
Searching...
No Matches
ist8310driver.h
1
12
13#ifndef IST8310DRIVER_H
14#define IST8310DRIVER_H
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20#include "ist8310driver_middleware.h"
21#include "stdint.h"
22
23#define IST8310_DATA_READY_BIT 2
24
25#define IST8310_NO_ERROR 0x00
26#define IST8310_NO_SENSOR 0x40
27
28
29typedef float fp32;
30
31typedef struct ist8310_real_data_t
32{
33 uint8_t status;
34 fp32 mag[3];
36
47extern uint8_t ist8310_init(void);
48
61extern void ist8310_read_over(uint8_t *status_buf, ist8310_real_data_t *ist8310_real_data);
62
73extern void ist8310_read_mag(fp32 mag[3]);
74
75#ifdef __cplusplus
76}
77#endif
78
79#endif
Definition ist8310driver.h:32