Buoyancy Firmware  1.0
Buoyancy Vehicle Firmware Documentation
TWIM.h
Go to the documentation of this file.
1 #ifndef _TWIM_H_
2 #define _TWIM_H_
3 
4 #include "main.h"
5 #include "nrfx_twim.h"
6 
7 
18 #define TMP117 (0x48) // Temperature Sensor adresses // Important note, the R/W bit is handled by peripheral, so address is only 7 bit - does not include w.
19 #define ICM_MOTION (0x68) // 9-axis ICM Motion Sensor adresses
20 #define HALL_EFFECT (0x30) // Hall Effect Sensor adresses
21 #define PIN_SCL (27UL)
22 #define PIN_SDA (26UL)
23 
26 void TWIMInit(void);
27 
34 void TWIMtx(uint8_t, uint8_t);
35 
42 void TWIMrx(uint8_t, uint8_t *);
43 
52 
63 
71 bool isTWIMbusy(void);
72 
73 
74 
75 #endif // _TWIM_H_
76 
bool isTWIMbusy()
Definition: TWIM.c:115
unsigned char uint8_t
Definition: nrf_drv_uart_PP.c:22
void TWIMtxrx(uint8_t address, uint8_t txMsg, uint8_t *p_rxMsg)
Definition: TWIM.c:93
void TWIMtx(uint8_t address, uint8_t data)
Definition: TWIM.c:70
void TWIMtxtx(uint8_t address, uint8_t data1, uint8_t data2)
Definition: TWIM.c:104
void TWIMrx(uint8_t address, uint8_t *p_data)
Definition: TWIM.c:82
void TWIMInit(void)
Initialization Two Wire Interface Master (TWIM) module.
Definition: TWIM.c:54