Buoyancy Firmware  1.0
Buoyancy Vehicle Firmware Documentation
I2C.h
Go to the documentation of this file.
1 #ifndef _I2C_H
2 #define _I2C_H
3 
4 #include "main.h"
5 
6 
7 // I2C
8 #define TMP117 (0x48) // Temperature Sensor adresses
9 #define ICM_MOTION (0x68) // 9-axis ICM Motion Sensor adresses
10 #define HALL_EFFECT (0x30) // Hall Effect Sensor adresses
11 #define PIN_SCL (27UL) // Possibly chanage??
12 #define PIN_SDA (26UL) // Possibly chanage??
13 
14 
15 
16 void i2c_init(void);
19 
20 
21 
22 
23 #endif
unsigned char uint8_t
Definition: nrf_drv_uart_PP.c:22
void i2c_init(void)
Functions for I2C usage.
Definition: I2C.c:8
unsigned short uint16_t
Definition: nrf_drv_uart_PP.c:28
void i2c_write(uint8_t, uint16_t, uint8_t)
Definition: I2C.c:30
uint16_t i2c_read(uint8_t, uint8_t)
Definition: I2C.c:63