摘要: /** * \file sha4.h * * \brief SHA-384 and SHA-512 cryptographic hash function * * Copyright (C) 2006-2010, Brainspark B.V. * * This file is part of Po 阅读全文
posted @ 2016-06-13 21:41 lort 阅读(1730) 评论(0) 推荐(0) 编辑
摘要: /** * \file sha1.h * * \brief SHA-1 cryptographic hash function * * Copyright (C) 2006-2010, Brainspark B.V. * * This file is part of PolarSSL (http:/ 阅读全文
posted @ 2016-06-13 21:40 lort 阅读(1270) 评论(0) 推荐(0) 编辑
摘要: /** * \file rsa.h * * \brief The RSA public-key cryptosystem * * Copyright (C) 2006-2010, Brainspark B.V. * * This file is part of PolarSSL (http://ww 阅读全文
posted @ 2016-06-13 21:39 lort 阅读(5383) 评论(0) 推荐(1) 编辑
摘要: /** * \file des.h * * \brief DES block cipher * * Copyright (C) 2006-2010, Brainspark B.V. * * This file is part of PolarSSL (http://www.polarssl.org) 阅读全文
posted @ 2016-06-13 21:38 lort 阅读(732) 评论(0) 推荐(0) 编辑
摘要: /** * \file md5.h * * \brief MD5 message digest algorithm (hash function) * * Copyright (C) 2006-2010, Brainspark B.V. * * This file is part of PolarS 阅读全文
posted @ 2016-06-13 21:37 lort 阅读(581) 评论(0) 推荐(0) 编辑
摘要: /** * \file aes.h * * \brief AES block cipher * * Copyright (C) 2006-2010, Brainspark B.V. * * This file is part of PolarSSL (http://www.polarssl.org) 阅读全文
posted @ 2016-06-13 09:54 lort 阅读(1946) 评论(0) 推荐(0) 编辑
摘要: /** * \file sha2.h * * \brief SHA-224 and SHA-256 cryptographic hash function * * Copyright (C) 2006-2010, Brainspark B.V. * * This file is part of Po 阅读全文
posted @ 2016-06-13 09:53 lort 阅读(2283) 评论(0) 推荐(0) 编辑
摘要: extern float GetTempOfVolMi(float V){ float K,B; if(0.03947 <= V < 2.02308) //0~50 { K = 24.731; B = 0.1341; } else if(2.02308 <= V < 4.09623)//50-100 阅读全文
posted @ 2016-06-13 09:50 lort 阅读(1199) 评论(0) 推荐(0) 编辑
摘要: Rt = R *EXP(B*(1/T1-1/T2))这里T1和T2指的是K度即开尔文温度,K度=273.15(绝对温度)+摄氏度;其中T2=(273.15+25)Rt 是热敏电阻在T1温度下的阻值; R是热敏电阻在T2常温下的标称阻值; B值是热敏电阻的重要参数; EXP是e的n次方; 求T1 =l 阅读全文
posted @ 2016-06-13 09:47 lort 阅读(45355) 评论(0) 推荐(1) 编辑
摘要: /**Keil Lib*2015.6.12*Pass*by lort*/uint32 Srandx ; uint32 SrandK = 1103515245;//0x41C64E6D;uint32 SrandB = 12345;//0x3039; void os_srand(uint32 seek) 阅读全文
posted @ 2016-06-13 09:45 lort 阅读(1491) 评论(0) 推荐(0) 编辑
摘要: unsigned short CRC16_Modbus ( unsigned char *pdata, int len){ unsigned short crc=0xFFFF; int i, j; for ( j=0; j<len;j++) { crc=crc^pdata[j]; for ( i=0 阅读全文
posted @ 2016-06-13 09:40 lort 阅读(4030) 评论(0) 推荐(0) 编辑