NHS31xx SW API
humid_i2c.h
1 /*
2  * Copyright 2018-2019 NXP
3  * This software is owned or controlled by NXP and may only be used strictly
4  * in accordance with the applicable license terms. By expressly accepting
5  * such terms or by downloading, installing, activating and/or otherwise using
6  * the software, you are agreeing that you have read, and that you agree to
7  * comply with and are bound by, such license terms. If you do not agree to
8  * be bound by the applicable license terms, then you may not retain, install,
9  * activate or otherwise use the software.
10  */
11 
12 #ifndef __HUMID_I2C_H_
13 #define __HUMID_I2C_H_
14 
15 #include <stdint.h>
16 #include <stdbool.h>
17 #include "humid_dft.h"
18 
19 #if HUMID_CHIP_HTU21D
20  #define HUMID_I2C_SLAVE_ADDRESS 0x40
21 #else /* HUMID_CHIP_SHTC3 */
22  #define HUMID_I2C_SLAVE_ADDRESS 0x70
23 #endif
24 
25 /* ------------------------------------------------------------------------- */
26 
28 void Humid_I2cInit(void);
29 
33 void Humid_I2cDeInit(void);
34 
41 bool Humid_I2cRead(uint8_t * pData, unsigned int count);
42 
49 bool Humid_I2cWrite(uint8_t * pData, unsigned int count);
50 
51 #endif