企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
打开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/>