搜索资源列表
串口通讯JustinIO
- using System using System.Runtime.InteropServices namespace JustinIO { ?class CommPort { ??public string PortNum ??public int BaudRate ??public byte ByteSize ??public byte Parity // 0-4=no,odd,even,mark,space ??public byte
send_receive_message
- 2个主机互相发送和接收数据,用DatagramSocket类另一个构造方法DatagramSocket(int port)创建一个对象。
projects
- TC下的串口通讯.c 主程序部分 #include \"uart.h\" int iBase /* com port base address */ char cHI,cLO void compute_chksum(char cBuf[]) char hex_to_ascii(int iHex)
QueueTest
- VC++ 封装了队列类 /// /// /// ///// //this a example for using Queue ///////////////////////////////////////// #include \"Queue.h\" //define queue data struct struct QueueData { char data[20] int nId } //define queue typedef TQueue<QueueData> TMyQu
led
- led取模软件自己用VC写的液晶等字模提取软件,可以输入汉字,也可以打开BMP图。只需要修改少许代码就可以按自己的要求实现功能。-You can get the zimo ,to display int the led displayer,and it use the vc++
sfs
- DW 256 DUP(?) STACK1 ENDS DDATA SEGMENT MES1 DB The least number is:$ MES2 DB 0AH,0DH, The largest number is:$ NUMB DB 0D9H,07H,8BH,0C5H,0EBH,04H,9DH,0F9H DDATA ENDS CODE SEGMENT ASSUME CS:CODE,DS:DDATA START: MOV AX,DDAT
87361006LV-mscomm32-int
- 一个很全很不错的labview 串口编程源代码-labview mscomm source code
UDP.rar
- 1、首先需要定义的对象: SOCKET ReceivingSocket //接收端的Socket SOCKADDR_IN ReceiverAddr //接收端的地址信息 char ReceiveBuf[1024] //接收数据缓冲区大小 int BufLength //缓冲区长度 SOCKADDR_IN SenderAddr //发送数据端地址信息 int SenderAddrSize = sizeof(SenderAddr) //发送
pcommLib
- pcomm.lib串口编程库。PComm 库函数是台湾MOXA公司提供的,他为用户提供了基于win32 api的开发接口。 PComm库函数分为7大类:控制函数、数据输入函数、数据输出函数、状态函数、事件驱动函数、传输文件函数、特殊设定函数;上述函数均返回int型数据,若函数调用成功则返回0,否则返回一个负整数。-pcomm.lib serial programming library. PComm library functions Taiwan MOXA company, to provid
6101
- 对于32位字长的机器,大约超过20亿,用int类型就无法表示了,我们可以选择int64类型,但无论怎样扩展-Over 2 billion for the 32-bit word length machines, about int type can not be expressed, we can choose the int64 type, but no matter how extended
BTree101
- 二叉树的递归算法:计算高度、结点个数、交换左右儿子问题的描述写一完整函数,计算树的结点数目int CountNode(BTNode< T> * &t);完善以下两个函数:计算树的高度int Depth(BTNode< T> * &root);对树的所有子树交换左右孩子void swapsons(BTNode< T> * &t);-Binary Tree Recursive Algorithm: Calculate the height of node number, th
EQUAL
- 输入:假设 a,b,c均int。输出:要求输出的根为 double 型,保留 6 位小数。-Input: Suppose a, b, and c an int. Output: root for output to a double, retaining six decimal places.
ip101
- ip从char[]转为int,ip地址转换- transform ip char[] to int
COM_customplot
- 自己用的小软件,仿造原子的XCOM功能,加了一下自己用的功能。 1、基本串口通讯,鼠标放入串口选择自动刷新,显示COM口的驱动类型。 2、多条发送界面,可定时发送,可关联数字键盘、右键发送按钮可更改按钮名称,方便记忆。 3、485通讯,数据有十进制和十六进制可选,发送后自动保留记录。 4、CRC校验小工具。 5、十六进制通信协议提取部分位并根据自定义数据类型转化为十进制 6、字符格式示波器,例:">P:-1.25",示波器显示曲线名称P,数值-1.25,曲线个数最多8个