打開hal\_vht2x.h文件,接口列表如下:
* 驅動程序初始化:
```
void hal_vht2x_init(uint8_t skip_warm_up);
```
* 打開指定傳感器,成功返回文件描述符:
```
int hal_vht2x_open(GPIO_TypeDef *scl_gpio, uint16_t scl_pin, GPIO_TypeDef *sda_gpio, uint16_t sda_pin);
```
* 關閉指定傳感器:
```
void hal_vht2x_close(int fd);
```
* 獲取當前溫濕度數據:
```
hal_vht2x_data_t hal_vht2x_read(int fd);
```
<br/>
- 框架介紹
- Main 函數
- HAL 函數接口說明
- hal_system.h
- hal_systick.h
- hal_idt.h
- hal_ioctl.h
- hal_flash.h
- hal_lpm.h
- hal_rtc.h
- hal_iwdg.h
- hal_uart.h
- hal_i2c.h
- hal_led.h
- hal_button.h
- hal_vht2x.h
- hal_lcd.h
- Services 函數接口說明
- svc_system.h
- svc_database.h
- svc_hid.h
- svc_msg.h
- svc_humiture.h
- svc_log.h
- Tasks 說明
- task_system.c
- task_example.c
- Libs 函數接口說明
- mathlib.h
- json.h
- atcmd.h
- atcmd_proxy.h
- libwifi.h
- libs1.h