发布时间:2013-02-26 09:29:36
UDPsocket.udp()创建并返回一个无连接的UDP对象。该无连接对象支持以下函数:sendto、receive、receivefrom、getsockname、setoption、settimeout、setpeername、setsockname、close。其中的setpeername被用作连接对象(待解释)。 connected:close()unconnected:close().........【阅读全文】
发布时间: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.........【阅读全文】
发布时间: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之交叉.........【阅读全文】
发布时间: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, .........【阅读全文】