-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrab7.h
64 lines (50 loc) · 1.14 KB
/
rab7.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*
* rab7.h
*
* Created on: 2024-11-18
* Author: GDR
*/
#ifndef RAB7_H_
#define RAB7_H_
/*PSOC includes*/
#include "cy_pdl.h"
#include "cyhal.h"
#include "cybsp.h"
typedef struct app_sensor_data
{
float dps_temperature;
float dps_pressure;
float bmp_temperature;
float bmp_pressure;
int16_t bmi_acc_x;
int16_t bmi_acc_y;
int16_t bmi_acc_z;
int16_t bmi_gyr_x;
int16_t bmi_gyr_y;
int16_t bmi_gyr_z;
float bme_temperature;
float bme_pressure;
float bme_humidity;
float bme_gas_resistance;
uint8_t bme_gas_index;
uint8_t bme_status;
uint8_t bme_meas_index;
uint16_t sgp_sraw_voc;
uint16_t sgp_sraw_nox;
int32_t sgp_voc_index;
int32_t sgp_nox_index;
int32_t sht_temperature;
int32_t sht_humidity;
float bmm_temperature;
float bmm_mag_x;
float bmm_mag_y;
float bmm_mag_z;
}sensor_data_t;
extern cyhal_i2c_t I2C_scb3;
extern sensor_data_t sensor_data_storage;
/*******************************************************************************
* Function Prototypes
*******************************************************************************/
void poll_sensors(void);
cy_rslt_t sensorfusion_init(void);
#endif /* RAB7_H_ */