-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHoneywellSSC.h
33 lines (21 loc) · 911 Bytes
/
HoneywellSSC.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
#ifndef HONEYWELLSSC_H_
#define HONEYWELLSSC_H_
//#define F_CPU 6144000
#include <util/delay.h>
// #include "commutils.h"
// I²C address of the Honeywell Pressure Sensor SSCSRNN1.6BA7A3
#define HoneywellSSC_address 0x78 // this version of the sensor has address 0x78
typedef struct {
unsigned int connected; //1: connected 0: not connected
unsigned int status; //0: normal operation, 1: device in command mode, 2: stale data (already read), 3: diagnostic condition
} stats4;
extern volatile stats4 HoneywellSSC_status;
extern volatile double HoneywellSSC_Temperature;
extern volatile double HoneywellSSC_Pressure;
extern volatile uint8_t HoneywellSSC_temp_MSB;
extern volatile uint8_t HoneywellSSC_temp_LSB;
extern volatile uint8_t HoneywellSSC_press_MSB;
extern volatile uint8_t HoneywellSSC_press_LSB;
uint8_t init_HoneywellSSC(void);
uint8_t HoneywellSSC_read_pressure(void);
#endif