打开mathlib.h文件,接口列表如下:
* int 数值转字符串:
```
const char *itoa(int num, int radix);
```
* float 数值转字符串:
```
const char *ftoa(double num, uint8_t decimal);
```
* 常见的 CRC 运算:
```
uint16_t crc16_x25(const uint8_t *buf, uint16_t len);
uint16_t crc16_ibm(const uint8_t *buf, uint16_t len);
uint16_t crc16_ccitt(uint8_t *buf, uint16_t len);
uint16_t crc16_ccitt_false(uint8_t *buf, uint16_t len);
uint16_t crc16_xmodem(uint8_t *buf, uint16_t len);
uint16_t crc16_modbus(uint8_t *buf, uint16_t len);
uint16_t crc16_maxim(uint8_t *buf, uint16_t len);
uint16_t crc16_usb(uint8_t *buf, uint16_t len);
```
* CRC 迭代器:
```
uint16_t crc16_iterator(const uint16_t poly, uint16_t crc16_init_val, uint8_t *str, uint16_t str_len);
```
<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