LibDriver SHT35
Loading...
Searching...
No Matches
driver_sht35_interface.h
Go to the documentation of this file.
1
37
38#ifndef DRIVER_SHT35_INTERFACE_H
39#define DRIVER_SHT35_INTERFACE_H
40
41#include "driver_sht35.h"
42
43#ifdef __cplusplus
44extern "C"{
45#endif
46
53
61uint8_t sht35_interface_iic_init(void);
62
70uint8_t sht35_interface_iic_deinit(void);
71
83uint8_t sht35_interface_iic_write_address16(uint8_t addr, uint16_t reg, uint8_t *buf, uint16_t len);
84
96uint8_t sht35_interface_iic_read_address16(uint8_t addr, uint16_t reg, uint8_t *buf, uint16_t len);
97
109uint8_t sht35_interface_iic_scl_read_address16(uint8_t addr, uint16_t reg, uint8_t *buf, uint16_t len);
110
116void sht35_interface_delay_ms(uint32_t ms);
117
123void sht35_interface_debug_print(const char *const fmt, ...);
124
130void sht35_interface_receive_callback(uint16_t type);
131
135
136#ifdef __cplusplus
137}
138#endif
139
140#endif
driver sht35 header file
uint8_t sht35_interface_iic_init(void)
interface iic bus init
uint8_t sht35_interface_iic_write_address16(uint8_t addr, uint16_t reg, uint8_t *buf, uint16_t len)
interface iic bus write with 16 bits register address
void sht35_interface_delay_ms(uint32_t ms)
interface delay ms
uint8_t sht35_interface_iic_read_address16(uint8_t addr, uint16_t reg, uint8_t *buf, uint16_t len)
interface iic bus read with 16 bits register address
uint8_t sht35_interface_iic_deinit(void)
interface iic bus deinit
uint8_t sht35_interface_iic_scl_read_address16(uint8_t addr, uint16_t reg, uint8_t *buf, uint16_t len)
interface iic bus read with 16 bits register address
void sht35_interface_debug_print(const char *const fmt,...)
interface print format data
void sht35_interface_receive_callback(uint16_t type)
interface receive callback