Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1489676
  • 博文数量: 129
  • 博客积分: 1449
  • 博客等级: 上尉
  • 技术积分: 3048
  • 用 户 组: 普通用户
  • 注册时间: 2012-07-24 18:36
文章分类

全部博文(129)

文章存档

2015年(3)

2014年(20)

2013年(65)

2012年(41)

发布时间:2013-02-26 09:29:36

UDPsocket.udp()创建并返回一个无连接的UDP对象。该无连接对象支持以下函数:sendto、receive、receivefrom、getsockname、setoption、settimeout、setpeername、setsockname、close。其中的setpeername被用作连接对象(待解释)。 connected:close()unconnected:close().........【阅读全文】

阅读(9298) | 评论(0) | 转发(0)

发布时间:2013-02-25 10:00:52

1-Wire Application InterfaceThis section provides a brief description of the API functions contained inthe 'general' and 'userial' 1-Wire libraries.Link-Level 1-Wire Net functions:--------------------------------   owTouchReset - Reset all devices on the 1-Wire Net. Result of fu.........【阅读全文】

阅读(2187) | 评论(0) | 转发(0)

发布时间:2013-02-17 09:02:26

如果想更快捷的调试代码, 可以利用openwrt的交叉编译1. shell中如下命令export STAGING_DIR="~/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/staging_dir"2. hello.c, 代码如下:/*------------------------------------------------------------------------------------------openwrt之交叉.........【阅读全文】

阅读(7466) | 评论(0) | 转发(2)

发布时间:2013-02-14 09:45:04

Cunsigned char CRC8(unsigned char *ip, int i){unsigned char table_crc8[256] = {0, 94, 188,226,97, 63,221,131,194,156,126,32, 163,253,31, 65, 157,195,33, 127,252,162,64,30, 95, 1, 227,189,62, 96, 130,220, 35, 125,159,193,66, 28, 254,160,225,191,93, 3, 128,222,60, 98, 190,224,2, .........【阅读全文】

阅读(5583) | 评论(0) | 转发(0)

发布时间:2013-01-28 19:16:24

......【阅读全文】

阅读(2314) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册