文章分类 - 单片机相关算法
摘要:参考:https://bbs.21ic.com/icview-2537088-1-1.html 源码:https://gitee.com/cksweb/vsf_open/blob/master/vsf/component/tool/json/vsfjson.c 注意点 1.注意加入anon_unio
阅读全文
摘要:piao一下机智云的MD5算法,接过来使使 #ifndef _GAGENT_MD5_H #define _GAGENT_MD5_H typedef struct { unsigned int count[2]; unsigned int state[4]; unsigned char buffer[
阅读全文
摘要:最近要做8000字节在N76E003上面存储 1.冒泡,每次添加都排序,之后二分法 2.哈希,参照上一篇的4字节哈希初始值 我拿2048个位置放表。4位数据对2048求余数 余数当作存储的位置,若相同的,往后面加。若大于MAX卡号,则返回开头第一个数据按顺序存储。匹配时,取余数当成初始位置,往后面开
阅读全文
摘要:转:http://ddrv.cn/a/61882 未全 4-byte Integer Hashing The hashes on this page (with the possible exception of HashMap.java’s) are all public domain. So a
阅读全文
摘要:https://mnifdv.cn/forum.php?mod=viewthread&tid=14&extra=page%3D1 其实就是机智云那个ringbuf....差不多...直接上代码 #ifndef LOOPLIST_H_ #define LOOPLIST_H_ #ifndef LOOPL
阅读全文
摘要:转自:https://www.amobbs.com/thread-5736304-1-1.html typedef enum tmrMode { MODE_ONE_SHOT = 0, //单次模式 MODE_PERIODIC, //周期模式 } tmrMode;//定时器模式 typedef enu
阅读全文
摘要:转发自群大佬给的,谢谢 深圳-逆流的鱼-软硬件 #ifndef CRC_H_ #define CRC_H_ #include "gd32f10x.h" typedef unsigned char uint8_t; typedef unsigned short int uint16_t; typede
阅读全文
摘要:参考大佬 https://whycan.cn/t_2804.html void fft(const double* src_x, const double* src_y, double* dst_x, double* dst_y, int k) { int i, n; double temp, te
阅读全文
摘要:【转】增量式PID控制算法 (转载 出处blog.ednchina.com/tengjingshu )blog.ednchina.com/tengjingshu/211739/message.aspx# 当执行机构需要的不是控制量的绝对值,而是控制量的增量(例如去驱动步进电动机)时,需要用PID的“
阅读全文
摘要:MultiButton README.md 使用方法 1.先申请一个按键结构 2.初始化按键对象,绑定按键的GPIO电平读取接口read_button_pin() ,后一个参数设置有效触发电平 3.注册按键事件 4.启动按键 5.设置一个5ms间隔的定时器循环调用后台处理函数 特性 MultiBut
阅读全文
摘要:飞行线,推荐用log2.2关系,有个软件可调,还有表。 参考amo论坛大神推荐 https://www.amobbs.com/forum.php?mod=viewthread&tid=5276839&extra=page%3D1&page=1&mobile=2
阅读全文

浙公网安备 33010602011771号