单片机用的滤波函数、浮点数转字符串函数和整数转字符串函数源码(SCM filter function, floating-point number, string function and integer to string function source code).docVIP
- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
单片机用的滤波函数、浮点数转字符串函数和整数转字符串函数源码(SCM filter function, floating-point number, string function and integer to string function source code)
单片机用的滤波函数、浮点数转字符串函数和整数转字符串函数源码(SCM filter function, floating-point number, string function and integer to string function source code)
SCM filter function, floating-point number, string function and integer to string function source code,.Txt as long as you want, as long as I have, you still turn around what ah, honest in my side on the line. Listen to me, ask why so much, I am on your side, you can go wrong! Follow me! I cant give you happiness is my fault, but who you are not happy, I am trying to chop him TMD //=====================Start filter=================================================
Function name: / / filter
Function Description: / / average filter
/ / input parameters:
//int iput: data to be filtered
//int buf[]: filter cache array pointer
//uint *count: filter counter pointer
//uint lenght: filtering depth
//long int *sum: cache pointers and pointers to all the data in the array
/ / return value: after average filtering
//==================================================================================
Int, filter (int, Iput, int, buf[], uint, *count, uint, lenght, long, int, *sum)
{
Int a=0;
Int adtemp=0;
Adtemp = buf[lenght-1];
For (a=lenght-1; a0; a--)
{
Buf[a]=buf[a-1];
}
Buf[0]=iput;
If (*countlenght)
*count=*count+1;
*sum=*sum+iput-adtemp;
Return (int) (*sum/ (*count));
}
//==============================End filter==========================================
//==============================Start ftostr=========================================
*
Function name: / / ftostr
Input parameters: / / to be converted, stored string, floating decimal digits behind
Description: / / floating-point data is converted to a string
/ / return value: String Size
* /
//===================================================================================
Int ftostr (float, fNum, char, str[], int, dotsize)
{
/ / define variables
Int iSize=0; / / string length record number
Int n=0; / / used as temporary variable cycle
Char *p=str; / / pointer to do with reversing
Char *s
您可能关注的文档
- mba案例25(MBA case 25).doc
- mhdd命令使用方法(MHDD command usage).doc
- mhdd命令行详解(MHDD command line detail).doc
- mhdd命令详解(MHDD command detailed).doc
- mhdd详细设置(MHDD detailed settings).doc
- mhdd说明(MHDD description).doc
- mhp2g调和表(MHP2G harmonic table).doc
- mhdd(修复).doc
- ml时适合听的音乐(Ml music suitable for listening).doc
- ly肌酸激酶(Ly creatine kinase).doc
- 单独值班技巧(Individual on duty skills).doc
- 单田芳评书的传承,失去了土壤(Dan Tianfang storytelling tradition, lost the soil).doc
- 单硫酸卡那霉素(Kanamycin sulfate).doc
- 单纯内固定与结合外固定支架治疗复杂胫骨平台骨折的比较(Comparison of simple internal fixation with external fixation in the treatment of complex tibial plateau fractures).doc
- 单纯性卵巢未成熟型畸胎瘤肝脏周围复发的临床特点和诊断治疗(Clinical features, diagnosis and treatment of hepatic peripheral recurrence in simple ovarian immature teratoma).doc
- 单纯性肥胖(Simple obesity).doc
- 单词记忆常见后缀(Word memory common suffix).doc
- 博斯科夫斯基指挥维也纳爱乐乐团 -《施特劳斯家族圆舞曲、波尔卡和进行曲6cd》(Boskovsky conducts the Vienna Philharmonic Orchestra - the Strauss family waltz, Polka and March 6CD).doc
- 厂家嫌价低不愿卖电池板 部分光伏电场(You don't want to sell panels manufacturers the lowest part of photovoltaic field).doc
- 厨师的心得(Chef's experience).doc
文档评论(0)