打開 libs1.h 文件,該文件是針對我司的433接收模組進行數據解析和回調,可以很容易的完成433解碼并進行數據處理,接口列表及說明如下:
* 初始化 libs1:
```
int libs1_init(void);
```
* 反初始化 libs1:
```
void libs1_deinit(void);
```
* 設置數據處理回調函數(接收到433解碼數據后進行回調):
```
void libs1_set_handler(void (*handler)(uint32_t address, uint8_t data));
```
* 接收到串口數據后調用解析函數進行數據格式的解析:
```
int libs1_parser(const void *buf, uint16_t len);
```
- 框架介紹
- 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