Microsoft Word - 新建 Microsoft Word 文档

Size: px
Start display at page:

Download "Microsoft Word - 新建 Microsoft Word 文档"

Transcription

1 1 API 描述 在 WIN32 API 中, 串口使用文件方式进行访问, 其操作的 API 基本上与文件操作的 API 一致 打开串口 Win32 中用于打开串口的 API 函数为 CreateFile, 其原型为 : HANDLE CreateFile ( LPCTSTR lpfilename, // 将要打开的串口逻辑名, 如 COM1 或 COM2 DWORD dwaccess, // 指定串口访问的类型, 可以是读取 写入或两者并列 DWORD dwsharemode, // 指定共享属性, 由于串口不能共享, 该参数必须置为 0 LPSECURITY_ATTRIBUTES lpsa, // 引用安全性属性结构, 缺省值为 NULL DWORD dwcreate, // 创建标志, 对串口操作该参数必须置为 OPEN EXISTING DWORD dwattrsandflags, // 属性描述, 用于指定该串口是否可进行异步操作, //FILE_FLAG_OVERLAPPED: 可使用异步的 I/O HANDLE htemplatefile // 指向模板文件的句柄, 对串口而言该参数必须置为 NULL 例如, 以下程序用于以同步读写方式打开串口 COM1: HANDLE hcom; DWORD dwerror; hcon = CreateFile("COM1", GENERIC_READ GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL if (hcom == (HANDLE)0xFFFFFFFF) dwerror = GetLastError( MessageBox(dwError 对于 dwattrsandflags 参数及 FILE_FLAG_OVERLAPPED 标志的由来, 可解释如下 : Windows 文件操作分为同步 I/O 和重叠 I/O(Overlapped I/ O) 两种方式, 在同步 I/O 方式中,API 会阻塞直到操作完成以后才能返回 ( 在多线程方式中, 虽然不会阻塞主线程, 但是仍然会阻塞监听线程 而在重叠 I/O 方式中,API 会立即返回, 操作在后台进行, 避免线程的阻塞 重叠 I/O 非常灵活, 它也可以实现阻塞 ( 例如我们可以设置一定要读取到一个数据才能进行到下一步操作 ) 如果进行 I/O 操作的 API 在没有完成操作的情况下返回, 我们可以通过调用 GetOverLappedResult() 函数阻塞到 I/O 操作完成后返回

2 配置串口 配置串口是通过改变设备控制块 DCB(Device Control Block) 的成员变量值来实现的, 接收缓冲区和发送缓冲区的大小可通过 SetupComm 函数来设置 DCB 结构体定义为 : typedef struct _DCB // dcb DWORD DCBlength; // sizeof(dcb) DWORD BaudRate; // current baud rate DWORD fbinary: 1; // binary mode, no EOF check DWORD fparity: 1; // enable parity checking DWORD foutxctsflow:1; // CTS output flow control DWORD foutxdsrflow:1; // DSR output flow control DWORD fdtrcontrol:2; // DTR flow control type DWORD fdsrsensitivity:1; // DSR sensitivity DWORD ftxcontinueonxoff:1; // XOFF continues Tx DWORD foutx: 1; // XON/XOFF out flow control DWORD finx: 1; // XON/XOFF in flow control DWORD ferrorchar: 1; // enable error replacement DWORD fnull: 1; // enable null stripping DWORD frtscontrol:2; // RTS flow control DWORD fabortonerror:1; // abort reads/writes on error DWORD fdummy2:17; // reserved WORD wreserved; // not currently used WORD XonLim; // transmit XON threshold WORD XoffLim; // transmit XOFF threshold BYTE ByteSize; // number of bits/byte, 4-8 BYTE Parity; // 0-4=no,odd,even,mark,space BYTE StopBits; // 0,1,2 = 1, 1.5, 2 char XonChar; // Tx and Rx XON character char XoffChar; // Tx and Rx XOFF character char ErrorChar; // error replacement character char EofChar; // end of input character char EvtChar; // received event character WORD wreserved1; // reserved; do not use DCB; 而 SetupComm 函数的原型则为 : BOOL SetupComm( HANDLE hfile, // handle to communications device DWORD dwinqueue, // size of input buffer DWORD dwoutqueue // size of output buffer

3 以下程序将串口设置为 : 波特率为 9600, 数据位数为 7 位, 停止位为 2 位, 偶校验, 接收缓冲区和发送缓冲区大小均为 1024 个字节, 最后用 PurgeComm 函数终止所有的后台读写操作并清空接收缓冲区和发送缓冲区 : DCB dcb; dcb.baudrate = 9600; // 波特率为 9600 dcb.bytesize = 7; // 数据位数为 7 位 dcb.parity = EVENPARITY; // 偶校验 dcb.stopbits = 2; // 两个停止位 dcb.fbinary = TRUE; dcb.fparity = TRUE; if (!SetCommState(hCom, &dcb)) MessageBox(" 串口设置出错!" SetupComm(hCom, 1024, 1024 PurgeComm(hCom, PURCE_TXABORT PURGE_RXABORT PURGE_TXCLEAR PURGE_RXCLEAR 超时设置 超时设置是通过改变 COMMTIMEOUTS 结构体的成员变量值来实现的, COMMTIMEOUTS 的原型为 : typedef struct _COMMTIMEOUTS DWORD ReadIntervalTimeout; // 定义两个字符到达的最大时间间隔, 单位 : 毫秒 // 当读取完一个字符后, 超过了 ReadIntervalTimeout, 仍未读取到下一个字符, 就会 // 发生超时 DWORD ReadTotalTimeoutMultiplier; DWORD ReadTotalTimeoutConstant; // 其中各时间所满足的关系如下 : //ReadTotalTimeout = ReadTotalTimeOutMultiplier* BytesToRead + ReadTotalTimeoutConstant DWORD WriteTotalTimeoutMultiplier; DWORD WriteTotalTimeoutConstant; COMMTIMEOUTS, *LPCOMMTIMEOUTS; 设置超时的函数为 SetCommTimeouts, 其原型中接收 COMMTIMEOUTS 的指针为参数 : BOOL SetCommTimeouts( HANDLE hfile, // handle to communications device LPCOMMTIMEOUTS lpcommtimeouts // pointer to comm time-out structure

4 以下程序将串口读操作的超时设定为 10 毫秒 : COMMTIMEOUTS to; memset(&to, 0, sizeof(to) to.readintervaltimeout = 10; SetCommTimeouts(hCom, &to 与 SetCommTimeouts 对应的 GetCommTimeouts() 函数的原型为 : BOOL GetCommTimeouts( HANDLE hfile, // handle of communications device LPCOMMTIMEOUTS lpcommtimeouts // pointer to comm time-out structure 事件设置 在读写串口之前, 需要用 SetCommMask () 函数设置事件掩模来监视指定通信端口上的事件, 其原型为 : BOOL SetCommMask( HANDLE hfile, // 标识通信端口的句柄 DWORD dwevtmask // 能够使能的通信事件 有了 Set 当然还会有 Get, 与 SetCommMask 对应的 GetCommMask() 函数的原型为 : BOOL GetCommMask( HANDLE hfile, // 标识通信端口的句柄 LPDWORD lpevtmask // address of variable to get event mask 串口上可以发生的事件可以是如下事件列表中的一个或任意组合 :EV_BREAK EV_CTS EV_DSR EV_ERR EV_RING EV_RLSD EV_RXCHAR EV_RXFLAG EV_TXEMPTY 我们可以用 WaitCommEvent() 函数来等待串口上我们利用 SetCommMask () 函数设置的事件 : BOOL WaitCommEvent( HANDLE hfile, // 标识通信端口的句柄 LPDWORD lpevtmask, // address of variable for event that occurred

5 LPOVERLAPPED lpoverlapped, // address of overlapped structure WaitCommEvent() 函数一直阻塞, 直到串口上发生我们用所 SetCommMask () 函数设置的通信事件为止 一般而言, 当 WaitCommEvent() 返回时, 程序员可以由分析 *lpevtmask 而获得发生事件的类别, 再进行相应的处理 读串口 对串口进行读取所用的函数和对文件进行读取所用的函数相同, 读函数原型如下 : BOOL ReadFile( HANDLE hfile, // handle of file to read LPVOID lpbuffer, // pointer to buffer that receives data DWORD nnumberofbytestoread, // number of bytes to read LPDWORD lpnumberofbytesread, // pointer to number of bytes read LPOVERLAPPED lpoverlapped // pointer to structure for overlapped I/O 写串口 对串口进行写入所用的函数和对文件进行写入所用的函数相同, 写函数原型如下 : BOOL WriteFile( HANDLE hfile, // handle to file to write to LPCVOID lpbuffer, // pointer to data to write to file DWORD nnumberofbytestowrite, // number of bytes to write LPDWORD lpnumberofbyteswritten, // pointer to number of bytes written LPOVERLAPPED lpoverlapped // pointer to structure for overlapped I/O 关闭串口 利用 API 函数实现串口通信时关闭串口非常简单, 只需使用 CreateFile 函数返回的句柄作为参数调用 CloseHandle 即可 : BOOL CloseHandle( HANDLE hobject // handle to object to close

6 2. 例程 在笔者的 深入浅出 Win32 多线程程序设计之综合实例 中我们已经给出一个利用 WIN API 进行串口通信的例子, 这里再给出一个类似的例子, 以进一步加深理解 利用 WIN API 进行串口通信 对话框上控件对应的资源文件 (.RC) 中的内容如下 : BEGIN EDITTEXT IDC_RECV_EDIT,28,119,256,46,ES_AUTOHSCROLL GROUPBOX " 发送数据 ",IDC_STATIC,19,15,282,70 GROUPBOX " 接收数据 ",IDC_STATIC,19,100,282,80 EDITTEXT IDC_SEND_EDIT,29,33,214,39,ES_AUTOHSCROLL PUSHBUTTON " 清除 ",IDC_CLEAR_BUTTON,248,33,50,14 PUSHBUTTON " 发送 ",IDC_SEND_BUTTON,248,55,50,14 END 而整个对话框的消息映射 ( 描述了消息及其对应的行为 ) 如下 : BEGIN_MESSAGE_MAP(CSerialPortAPIDlg, CDialog) //AFX_MSG_MAP(CSerialPortAPIDlg) ON_WM_SYSCOMMAND() ON_WM_PAINT()

7 ON_WM_QUERYDRAGICON() ON_BN_CLICKED(IDC_CLEAR_BUTTON, OnClearButton) ON_BN_CLICKED(IDC_SEND_BUTTON, OnSendButton) ON_MESSAGE(COM_RECVDATA, OnRecvData) //AFX_MSG_MAP END_MESSAGE_MAP() 我们为 IDC_SEND_EDIT 和 IDC_RECV_EDIT 编辑框控件分别添加了一个 CString 变量 m_recv 和 m_send, 下面的代码描述了这一行为 : class CSerialPortAPIDlg : public CDialog // Construction public: CSerialPortAPIDlg(CWnd* pparent = NULL // standard constructor // Dialog Data //AFX_DATA(CSerialPortAPIDlg) enum IDD = IDD_SERIALPORTAPI_DIALOG ; CString m_recv; //IDC_RECV_EDIT 控件对应的变量 CString m_send; //IDC_SEND_EDIT 控件对应的变量 //AFX_DATA // ClassWizard generated virtual function overrides //AFX_VIRTUAL(CSerialPortAPIDlg) protected: virtual void DoDataExchange(CDataExchange* pdx // DDX/DDV support //AFX_VIRTUAL // Implementation protected: BOOL OpenSerialPort1( HICON m_hicon; // Generated message map functions //AFX_MSG(CSerialPortAPIDlg) virtual BOOL OnInitDialog( afx_msg void OnSysCommand(UINT nid, LPARAM lparam afx_msg void OnPaint( afx_msg HCURSOR OnQueryDragIcon( afx_msg void OnClearButton( afx_msg void OnSendButton( afx_msg void OnRecvData(WPARAM wparam, LPARAM lparam

8 ; //AFX_MSG DECLARE_MESSAGE_MAP() CSerialPortAPIDlg::CSerialPortAPIDlg(CWnd* pparent /*=NULL*/) : CDialog(CSerialPortAPIDlg::IDD, pparent) //AFX_DATA_INIT(CSerialPortAPIDlg) // 在构造函数中初始化变量 m_recv = _T("" // 在构造函数中初始化变量 m_send = _T("" //AFX_DATA_INIT // Note that LoadIcon does not require a subsequent DestroyIcon in Win32 m_hicon = AfxGetApp()->LoadIcon(IDR_MAINFRAME // 建立编辑框控件和变量之间的映射 void CSerialPortAPIDlg::DoDataExchange(CDataExchange* pdx) CDialog::DoDataExchange(pDX //AFX_DATA_MAP(CSerialPortAPIDlg) DDX_Text(pDX, IDC_RECV_EDIT, m_recv DDX_Text(pDX, IDC_SEND_EDIT, m_send //AFX_DATA_MAP 在对话框的 OnInitDialog() 函数中, 我们启动窗口监听线程并将主窗口句柄传递给线程控制函数 : BOOL CSerialPortAPIDlg::OnInitDialog() CDialog::OnInitDialog( // Add "About..." menu item to system menu. // IDM_ABOUTBOX must be in the system command range. ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX ASSERT(IDM_ABOUTBOX < 0xF000 CMenu* psysmenu = GetSystemMenu(FALSE if (psysmenu!= NULL) CString straboutmenu;

9 straboutmenu.loadstring(ids_aboutbox if (!straboutmenu.isempty()) psysmenu->appendmenu(mf_separator psysmenu->appendmenu(mf_string, IDM_ABOUTBOX, straboutmenu // Set the icon for this dialog. The framework does this automatically // when the application's main window is not a dialog SetIcon(m_hIcon, TRUE // Set big icon SetIcon(m_hIcon, FALSE // Set small icon // TODO: Add extra initialization here // 启动串口监视线程 DWORD threadid; hcommthread = ::CreateThread((LPSECURITY_ATTRIBUTES)NULL, 0, (LPTHREAD_START_ROUTINE)SerialPort1ThreadProcess, AfxGetMainWnd()->m_hWnd, 0, &threadid if (hcommthread == NULL) ::AfxMessageBox(" 创建串口 1 处理线程失败 " ::PostQuitMessage(0 return TRUE; // return TRUE unless you set the focus to a control //" 清除 " 按钮函数 void CSerialPortAPIDlg::OnClearButton() // TODO: Add your control notification handler code here m_send = ""; UpdateData(false // 发送数据函数 (" 发送 " 按钮函数 ) void CSerialPortAPIDlg::OnSendButton() // TODO: Add your control notification handler code here UpdateData(true DWORD wcount = 0; WriteFile(hCom, m_send, m_send.getlength(), &wcount, NULL// 发送数据

10 // 接收数据后 ( 通过监听线程发来的用户自定义消息 ) 显示 void CSerialPortAPIDlg::OnRecvData(WPARAM wparam, LPARAM lparam) CString recvstr((char *)wparam m_recv += recvstr; UpdateData(false 在工程中添加 SerialPortControl.h 和 SerialPortControl.cpp 两个文件, 前者声明串口控制的接口函数及外部全局变量, 后者实现串口接口函数及串口监听线程控制函数 SerialPortControl.h 文件 #ifndef _SERIAL_PORT_CONTROL_H #define _SERIAL_PORT_CONTROL_H #define COM_RECVDATA WM_USER+1000// 自定义消息 extern HANDLE hcom; // 全局变量, 串口句柄 extern HANDLE hcommthread; // 全局变量, 串口线程 // 串口监视线程控制函数 extern DWORD WINAPI SerialPort1ThreadProcess(HWND hwnd // 打开并设置 PC 串口 1(COM1) extern BOOL OpenSerialPort1( #endif SerialPortControl.cpp 文件 #include "StdAfx.h" #include "SerialPortControl.h" HANDLE hcom; // 全局变量, 串口句柄 HANDLE hcommthread; // 全局变量, 串口线程 BOOL OpenSerialPort1() // 打开并设置 COM1 hcom=createfile("com1", GENERIC_READ GENERIC_WRITE, 0,NULL, OPEN_EXISTING, 0, NULL if (hcom==(handle)-1) AfxMessageBox(" 打开 COM1 失败 " return false;

11 else DCB wdcb; GetCommState (hcom, &wdcb wdcb.baudrate=9600;// 波特率 :9600, 其他 : 不变 SetCommState (hcom, &wdcb PurgeComm(hCom, PURGE_TXCLEAR return true; // 以一个线程不同监控串口行接收的数据 DWORD WINAPI SerialPort1ThreadProcess( HWND hwnd// 主窗口句柄 ) char str[101]; DWORD wcount; // 读取的字节数 while(1) ReadFile(hCom,str, 100, &wcount, NULL if(wcount > 0) // 收到数据 str[wcount] = '\0'; ::PostMessage(hWnd, COM_RECVDATA, (unsigned int) str, wcount // 发送消息给对话框主窗口, 以进行接收内容的显示 return TRUE; 为了验证程序的正确性, 我们使用串口调试助手与本程序协同工作, 互相进行收发 下面的抓图显示本程序工作正确, 发送和接收字符准确无误

感谢您购买英创信息技术有限公司的产品 :ETA508 串口扩展模块 您可以访问英创公司网站或直接与英创公司联系以获得 ETA508 的其他相关资料 英创信息技术有限公司联系方式如下 : 地址 : 成都市高新区高朋大道 5 号博士创业园 B 座 701# 邮编 : 联系电话 : 传真 :0

感谢您购买英创信息技术有限公司的产品 :ETA508 串口扩展模块 您可以访问英创公司网站或直接与英创公司联系以获得 ETA508 的其他相关资料 英创信息技术有限公司联系方式如下 : 地址 : 成都市高新区高朋大道 5 号博士创业园 B 座 701# 邮编 : 联系电话 : 传真 :0 Emtronix ETA508 串口扩展模块应用手册 感谢您购买英创信息技术有限公司的产品 :ETA508 串口扩展模块 您可以访问英创公司网站或直接与英创公司联系以获得 ETA508 的其他相关资料 英创信息技术有限公司联系方式如下 : 地址 : 成都市高新区高朋大道 5 号博士创业园 B 座 701# 邮编 :610041 联系电话 : 传真 :028-85141028 网址 :http://www.emtronix.com

More information

INTRODUCTION TO COM.DOC

INTRODUCTION TO COM.DOC How About COM & ActiveX Control With Visual C++ 6.0 Author: Curtis CHOU mahler@ms16.hinet.net This document can be freely release and distribute without modify. ACTIVEX CONTROLS... 3 ACTIVEX... 3 MFC ACTIVEX

More information

VC++ USB HID + C8051F340 入???.doc

VC++ USB HID + C8051F340 入???.doc VC++ USB HID + C8051F340 入门笔记 岳生生 (2009-12-16) Note: 哈哈, 完成 USB HID 的单片机编程后, 就想用 VC++ 编写一个上位机, 通信通信 终于功夫不负有心人, 成功了 从接触 VC++ 到编写出这个上位机, 确实碰到了很多挫折 因此我写了这个笔记, 希望对想入门 VC++ USB HID 编程的朋友一些帮助 e-mail:yss133_dpj@163.com

More information

PowerPoint Presentation

PowerPoint Presentation 列 Kernel Objects Windows Kernel Object 來 理 行 行 What is a Kernel Object? The data structure maintains information about the object Process Object: 錄了 PID, priority, exit code File Object: 錄了 byte offset,

More information

ebook50-15

ebook50-15 15 82 C / C + + Developer Studio M F C C C + + 83 C / C + + M F C D L L D L L 84 M F C MFC DLL M F C 85 MFC DLL 15.1 82 C/C++ C C + + D L L M F C M F C 84 Developer Studio S t u d i o 292 C _ c p l u s

More information

概述

概述 OPC Version 1.6 build 0910 KOSRDK Knight OPC Server Rapid Development Toolkits Knight Workgroup, eehoo Technology 2002-9 OPC 1...4 2 API...5 2.1...5 2.2...5 2.2.1 KOS_Init...5 2.2.2 KOS_InitB...5 2.2.3

More information

本科学生毕业论文

本科学生毕业论文 15.1 USB 固件源码分析 第十二章 SLAVE FIFO 流传输 SLAVE FIFOUSB 固件源码仍然采用上一章节源码 15.2 FPGA 固件源码分析 module USB_FPGA( input ifclk_i, inout [7:0] fdata_b, output reg [1:0] faddr_o, output reg slrd_o, output reg slwr_o, output

More information

int *p int a 0x00C7 0x00C7 0x00C int I[2], *pi = &I[0]; pi++; char C[2], *pc = &C[0]; pc++; float F[2], *pf = &F[0]; pf++;

int *p int a 0x00C7 0x00C7 0x00C int I[2], *pi = &I[0]; pi++; char C[2], *pc = &C[0]; pc++; float F[2], *pf = &F[0]; pf++; Memory & Pointer trio@seu.edu.cn 2.1 2.1.1 1 int *p int a 0x00C7 0x00C7 0x00C7 2.1.2 2 int I[2], *pi = &I[0]; pi++; char C[2], *pc = &C[0]; pc++; float F[2], *pf = &F[0]; pf++; 2.1.3 1. 2. 3. 3 int A,

More information

C/C++ - 文件IO

C/C++ - 文件IO C/C++ IO Table of contents 1. 2. 3. 4. 1 C ASCII ASCII ASCII 2 10000 00100111 00010000 31H, 30H, 30H, 30H, 30H 1, 0, 0, 0, 0 ASCII 3 4 5 UNIX ANSI C 5 FILE FILE 6 stdio.h typedef struct { int level ;

More information

ebook50-14

ebook50-14 14 M F C 74 75 76 77 M F C 78 M F C 79 M F C 80 D e l e t e Delete ( ) 81 M F C 14.1 74 14-1 Cut Paste C E d i t 14-1 1. C l a s s Wi z a r d C E d i t C l a s s Wi z a r d W M _ R B U T TO N D O W N 2.

More information

Windows RTEMS 1 Danilliu MMI TCP/IP QEMU i386 QEMU ARM POWERPC i386 IPC PC104 uc/os-ii uc/os MMI TCP/IP i386 PORT Linux ecos Linux ecos ecos eco

Windows RTEMS 1 Danilliu MMI TCP/IP QEMU i386 QEMU ARM POWERPC i386 IPC PC104 uc/os-ii uc/os MMI TCP/IP i386 PORT Linux ecos Linux ecos ecos eco Windows RTEMS 1 Danilliu MMI TCP/IP 80486 QEMU i386 QEMU ARM POWERPC i386 IPC PC104 uc/os-ii uc/os MMI TCP/IP i386 PORT Linux ecos Linux ecos ecos ecos Email www.rtems.com RTEMS ecos RTEMS RTEMS Windows

More information

untitled

untitled COM ActiveX Control 年 ACTIVEX CONTROLS 念... 3 ACTIVEX... 3 MFC ACTIVEX CONTROLWIZARD... 3 MFC ACTIVEX CONTROLS WIZARD... 4 MFC... 4... 4 ACTIVEX... 4 ONDRAW 行... 4 ONDRAW() 數... 5 ACTIVEX... 5 (STOCK PROPERTIES)...

More information

FY.DOC

FY.DOC 高 职 高 专 21 世 纪 规 划 教 材 C++ 程 序 设 计 邓 振 杰 主 编 贾 振 华 孟 庆 敏 副 主 编 人 民 邮 电 出 版 社 内 容 提 要 本 书 系 统 地 介 绍 C++ 语 言 的 基 本 概 念 基 本 语 法 和 编 程 方 法, 深 入 浅 出 地 讲 述 C++ 语 言 面 向 对 象 的 重 要 特 征 : 类 和 对 象 抽 象 封 装 继 承 等 主

More information

ebook50-11

ebook50-11 11 Wi n d o w s C A D 53 M F C 54 55 56 57 58 M F C 11.1 53 11-1 11-1 MFC M F C C D C Wi n d o w s Wi n d o w s 4 11 199 1. 1) W M _ PA I N T p W n d C W n d C D C * p D C = p W n d GetDC( ); 2) p W n

More information

C/C++ - 字符输入输出和字符确认

C/C++ - 字符输入输出和字符确认 C/C++ Table of contents 1. 2. getchar() putchar() 3. (Buffer) 4. 5. 6. 7. 8. 1 2 3 1 // pseudo code 2 read a character 3 while there is more input 4 increment character count 5 if a line has been read,

More information

CC213

CC213 : (Ken-Yi Lee), E-mail: feis.tw@gmail.com 49 [P.51] C/C++ [P.52] [P.53] [P.55] (int) [P.57] (float/double) [P.58] printf scanf [P.59] [P.61] ( / ) [P.62] (char) [P.65] : +-*/% [P.67] : = [P.68] : ,

More information

untitled

untitled 09 Windows CE Windows CE Windows CE RAM object store Windows CE database volumes Win32 Windows CE flash Windows CE API Win32 API Windows CE Windows CE drive letter hard drive partition flash Windows current

More information

新版 明解C++入門編

新版 明解C++入門編 511!... 43, 85!=... 42 "... 118 " "... 337 " "... 8, 290 #... 71 #... 413 #define... 128, 236, 413 #endif... 412 #ifndef... 412 #if... 412 #include... 6, 337 #undef... 413 %... 23, 27 %=... 97 &... 243,

More information

Important Notice SUNPLUS TECHNOLOGY CO. reserves the right to change this documentation without prior notice. Information provided by SUNPLUS TECHNOLO

Important Notice SUNPLUS TECHNOLOGY CO. reserves the right to change this documentation without prior notice. Information provided by SUNPLUS TECHNOLO Car DVD New GUI IR Flow User Manual V0.1 Jan 25, 2008 19, Innovation First Road Science Park Hsin-Chu Taiwan 300 R.O.C. Tel: 886-3-578-6005 Fax: 886-3-578-4418 Web: www.sunplus.com Important Notice SUNPLUS

More information

untitled

untitled MODBUS 1 MODBUS...1 1...4 1.1...4 1.2...4 1.3...4 1.4... 2...5 2.1...5 2.2...5 3...6 3.1 OPENSERIAL...6 3.2 CLOSESERIAL...8 3.3 RDMULTIBIT...8 3.4 RDMULTIWORD...9 3.5 WRTONEBIT...11 3.6 WRTONEWORD...12

More information

bingdian001.com

bingdian001.com TSM12M TSM12 STM8L152C6, STM8L152R8 MSP430F5325 whym1987@126.com! /******************************************************************************* * : TSM12.c * : * : 2013/10/21 * : TSM12, STM8L f(sysclk)

More information

ebook51-14

ebook51-14 14 Wi n d o w s M F C 53 54 55 56 ( ) ( Wo r k e r T h r e a d ) 57 ( ) ( U s e r Interface Thread) 58 59 14.1 53 1. 2. C l a s s Wi z a r d O n I d l e () 3. Class Wi z a r d O n I d l e () O n I d l

More information

C/C++程序设计 - 字符串与格式化输入/输出

C/C++程序设计 - 字符串与格式化输入/输出 C/C++ / Table of contents 1. 2. 3. 4. 1 i # include # include // density of human body : 1. 04 e3 kg / m ^3 # define DENSITY 1. 04 e3 int main ( void ) { float weight, volume ; int

More information

Simulator By SunLingxi 2003

Simulator By SunLingxi 2003 Simulator By SunLingxi sunlingxi@sina.com 2003 windows 2000 Tornado ping ping 1. Tornado Full Simulator...3 2....3 3. ping...6 4. Tornado Simulator BSP...6 5. VxWorks simpc...7 6. simulator...7 7. simulator

More information

C 1

C 1 C homepage: xpzhangme 2018 5 30 C 1 C min(x, y) double C // min c # include # include double min ( double x, double y); int main ( int argc, char * argv []) { double x, y; if( argc!=

More information

Microsoft PowerPoint - Lecture7II.ppt

Microsoft PowerPoint - Lecture7II.ppt Lecture 8II SUDOKU PUZZLE SUDOKU New Play Check 軟體實作與計算實驗 1 4x4 Sudoku row column 3 2 } 4 } block 1 4 軟體實作與計算實驗 2 Sudoku Puzzle Numbers in the puzzle belong {1,2,3,4} Constraints Each column must contain

More information

Microsoft PowerPoint - string_kruse [兼容模式]

Microsoft PowerPoint - string_kruse [兼容模式] Strings Strings in C not encapsulated Every C-string has type char *. Hence, a C-string references an address in memory, the first of a contiguous set of bytes that store the characters making up the string.

More information

Microsoft Word - ch04三校.doc

Microsoft Word - ch04三校.doc 4-1 4-1-1 (Object) (State) (Behavior) ( ) ( ) ( method) ( properties) ( functions) 4-2 4-1-2 (Message) ( ) ( ) ( ) A B A ( ) ( ) ( YourCar) ( changegear) ( lowergear) 4-1-3 (Class) (Blueprint) 4-3 changegear

More information

C语言的应用.PDF

C语言的应用.PDF AVR C 9 1 AVR C IAR C, *.HEX, C,,! C, > 9.1 AVR C MCU,, AVR?! IAR AVR / IAR 32 ALU 1KBytes - 8MBytes (SPM ) 16 MBytes C C *var1, *var2; *var1++ = *--var2; AVR C 9 2 LD R16,-X ST Z+,R16 Auto (local

More information

概述

概述 OPC Version 1.8 build 0925 KOCRDK Knight OPC Client Rapid Development Toolkits Knight Workgroup, eehoo Technology 2002-9 OPC 1...4 2 API...5 2.1...5 2.2...5 2.2.1 KOC_Init...5 2.2.2 KOC_Uninit...5 2.3...5

More information

BOOL EnumWindows(WNDENUMPROC lparam); lpenumfunc, LPARAM (Native Interface) PowerBuilder PowerBuilder PBNI 2

BOOL EnumWindows(WNDENUMPROC lparam); lpenumfunc, LPARAM (Native Interface) PowerBuilder PowerBuilder PBNI 2 PowerBuilder 9 PowerBuilder Native Interface(PBNI) PowerBuilder 9 PowerBuilder C++ Java PowerBuilder 9 PBNI PowerBuilder Java C++ PowerBuilder NVO / PowerBuilder C/C++ PowerBuilder 9.0 PowerBuilder Native

More information

摘要本文主要讲述了在 VC 语言环境下, 编程实现通过 SimaticNet 提供的 OPC Server, 访问 PLC 中数据的步骤, 此方法同样适用于 WinCC 作为 OPC Server 时的数据访问 关键词 SimaticNet VC OPC WinCC Key Words Simati

摘要本文主要讲述了在 VC 语言环境下, 编程实现通过 SimaticNet 提供的 OPC Server, 访问 PLC 中数据的步骤, 此方法同样适用于 WinCC 作为 OPC Server 时的数据访问 关键词 SimaticNet VC OPC WinCC Key Words Simati 在 VC 中如何实现 OPC 数据访问 How to achieve data access through OPC in VC Getting-started Edition (2009 年 06 月 ) 摘要本文主要讲述了在 VC 语言环境下, 编程实现通过 SimaticNet 提供的 OPC Server, 访问 PLC 中数据的步骤, 此方法同样适用于 WinCC 作为 OPC Server

More information

KL DSC DEMO 使用说明

KL DSC DEMO 使用说明 :0755-82556825 83239613 : (0755)83239613 : http://www.kingbirdnet.com EMAIL Good989@163.com 1 1 KB3000 DTU... 3 1.1... 3 1.2... 3 1.3... 3 1.4... 3 2... 4 2.1 GSM/GPRS... 4 2.2... 4 2.3... 5 2.4... 6 2.5...

More information

Fun Time (1) What happens in memory? 1 i n t i ; 2 s h o r t j ; 3 double k ; 4 char c = a ; 5 i = 3; j = 2; 6 k = i j ; H.-T. Lin (NTU CSIE) Referenc

Fun Time (1) What happens in memory? 1 i n t i ; 2 s h o r t j ; 3 double k ; 4 char c = a ; 5 i = 3; j = 2; 6 k = i j ; H.-T. Lin (NTU CSIE) Referenc References (Section 5.2) Hsuan-Tien Lin Deptartment of CSIE, NTU OOP Class, March 15-16, 2010 H.-T. Lin (NTU CSIE) References OOP 03/15-16/2010 0 / 22 Fun Time (1) What happens in memory? 1 i n t i ; 2

More information

PIC_SERVER (11) SMTP ( ) ( ) PIC_SERVER (10) SMTP PIC_SERVER (event driven) PIC_SERVER SMTP 1. E-

PIC_SERVER (11) SMTP  ( ) ( ) PIC_SERVER (10) SMTP  PIC_SERVER (event driven)  PIC_SERVER SMTP  1.  E- (2005-02-01) (2005-04-28) PIC_SERVER (10) SMTP E-mail PIC_SERVER (event driven) E-mail PIC_SERVER SMTP E-mail 1. E-mail E-mail 1 (1) (2) (3) (4) 1 1. 2 E-mail A E-mail B E-mail SMTP(Simple Mail Transfer

More information

获取 Access Token access_token 是接口的全局唯一票据, 接入方调用各接口时都需使用 access_token 开发者需要进行妥善保存 access_token 的存储至少要保留 512 个字符空间 access_token 的有效期目前为 2 个小时, 需定时刷新, 重复

获取 Access Token access_token 是接口的全局唯一票据, 接入方调用各接口时都需使用 access_token 开发者需要进行妥善保存 access_token 的存储至少要保留 512 个字符空间 access_token 的有效期目前为 2 个小时, 需定时刷新, 重复 获取 Access Token access_token 是接口的全局唯一票据, 接入方调用各接口时都需使用 access_token 开发者需要进行妥善保存 access_token 的存储至少要保留 512 个字符空间 access_token 的有效期目前为 2 个小时, 需定时刷新, 重复 获取将导致上次获取的 access_token 失效 接入方可以使用 AppID 和 AppSecret

More information

untitled

untitled 1 Outline 數 料 數 數 列 亂數 練 數 數 數 來 數 數 來 數 料 利 料 來 數 A-Z a-z _ () 不 數 0-9 數 不 數 SCHOOL School school 數 讀 school_name schoolname 易 不 C# my name 7_eleven B&Q new C# (1) public protected private params override

More information

untitled

untitled A, 3+A printf( ABCDEF ) 3+ printf( ABCDEF ) 2.1 C++ main main main) * ( ) ( ) [ ].* ->* ()[] [][] ** *& char (f)(int); ( ) (f) (f) f (int) f int char f char f(int) (f) char (*f)(int); (*f) (int) (

More information

Microsoft Word - 11.doc

Microsoft Word - 11.doc 除 錯 技 巧 您 將 於 本 章 學 到 以 下 各 項 : 如 何 在 Visual C++ 2010 的 除 錯 工 具 控 制 下 執 行 程 式? 如 何 逐 步 地 執 行 程 式 的 敘 述? 如 何 監 看 或 改 變 程 式 中 的 變 數 值? 如 何 監 看 程 式 中 計 算 式 的 值? 何 謂 Call Stack? 何 謂 診 斷 器 (assertion)? 如 何

More information

C/C++语言 - C/C++数据

C/C++语言 - C/C++数据 C/C++ C/C++ Table of contents 1. 2. 3. 4. char 5. 1 C = 5 (F 32). 9 F C 2 1 // fal2cel. c: Convert Fah temperature to Cel temperature 2 # include < stdio.h> 3 int main ( void ) 4 { 5 float fah, cel ;

More information

计算机网络与通讯作业 学号 : 姓名 : 张士广

计算机网络与通讯作业 学号 : 姓名 : 张士广 计算机网络与通讯作业 学号 :35030907 姓名 : 张士广 / FilePoster 关键代码 作者 : 张士广 学号 : 35030907 E-mail: andy.zhshg@163.com 日期 : 2008.12.25 程序描述 : FilePoster 是基于 Win32 平台的网络文件传输程序 开发平台为 Visual C++6.0 程序采用服务器 / 客户机模式, 服务器用于接收数据,

More information

02

02 Thinking in C++: Volume One: Introduction to Standard C++, Second Edition & Volume Two: Practical Programming C++ C C++ C++ 3 3 C C class C++ C++ C++ C++ string vector 2.1 interpreter compiler 2.1.1 BASIC

More information

bingdian001.com

bingdian001.com 1. DLL(Dynamic Linkable Library) DLL ± lib EXE DLL DLL EXE EXE ± EXE DLL 1 DLL DLL DLL Windows DLL Windows API Visual Basic Visual C++ Delphi 2 Windows system32 kernel32.dll user32.dll gdi32.dll windows

More information

c_cpp

c_cpp C C++ C C++ C++ (object oriented) C C++.cpp C C++ C C++ : for (int i=0;i

More information

Bus Hound 5

Bus Hound 5 Bus Hound 5.0 ( 1.0) 21IC 2007 7 BusHound perisoft PC hound Bus Hound 6.0 5.0 5.0 Bus Hound, IDE SCSI USB 1394 DVD Windows9X,WindowsMe,NT4.0,2000,2003,XP XP IRP Html ZIP SCSI sense USB Bus Hound 1 Bus

More information

新・解きながら学ぶC言語

新・解きながら学ぶC言語 330!... 67!=... 42 "... 215 " "... 6, 77, 222 #define... 114, 194 #include... 145 %... 21 %... 21 %%... 21 %f... 26 %ld... 162 %lf... 26 %lu... 162 %o... 180 %p... 248 %s... 223, 224 %u... 162 %x... 180

More information

, 7, Windows,,,, : ,,,, ;,, ( CIP) /,,. : ;, ( 21 ) ISBN : -. TP CIP ( 2005) 1

, 7, Windows,,,, : ,,,, ;,, ( CIP) /,,. : ;, ( 21 ) ISBN : -. TP CIP ( 2005) 1 21 , 7, Windows,,,, : 010-62782989 13501256678 13801310933,,,, ;,, ( CIP) /,,. : ;, 2005. 11 ( 21 ) ISBN 7-81082 - 634-4... - : -. TP316-44 CIP ( 2005) 123583 : : : : 100084 : 010-62776969 : 100044 : 010-51686414

More information

第12讲 Windows API

第12讲 Windows API UNIT 13 MFC E-MAIL nadinetan@163.com MFC 2 MFC 3 MFC 4 5 6 7 1 MFC 1.1 MFC MFC Microsoft Foundation Class Windows mfc*.dll Windows MFC C++ 8 1.1 MFC MFC Microsoft Foundation Class MFC Windows Windows MFC

More information

AL-M200 Series

AL-M200 Series NPD4754-00 TC ( ) Windows 7 1. [Start ( )] [Control Panel ()] [Network and Internet ( )] 2. [Network and Sharing Center ( )] 3. [Change adapter settings ( )] 4. 3 Windows XP 1. [Start ( )] [Control Panel

More information

Microsoft Word - 把时间当作朋友(2011第3版)3.0.b.06.doc

Microsoft Word - 把时间当作朋友(2011第3版)3.0.b.06.doc 2 5 8 11 0 13 1. 13 2. 15 3. 18 1 23 1. 23 2. 26 3. 28 2 36 1. 36 2. 39 3. 42 4. 44 5. 49 6. 51 3 57 1. 57 2. 60 3. 64 4. 66 5. 70 6. 75 7. 83 8. 85 9. 88 10. 98 11. 103 12. 108 13. 112 4 115 1. 115 2.

More information

Microsoft PowerPoint - ds-1.ppt [兼容模式]

Microsoft PowerPoint - ds-1.ppt [兼容模式] http://jwc..edu.cn/jxgl/ HomePage/Default.asp 2 说 明 总 学 时 : 72( 学 时 )= 56( 课 时 )+ 16( 实 验 ) 行 课 时 间 : 第 1 ~14 周 周 学 时 : 平 均 每 周 4 学 时 上 机 安 排 待 定 考 试 时 间 : 课 程 束 第 8 11 12 章 的 内 容 为 自 学 内 容 ; 目 录 中 标 有

More information

新・解きながら学ぶJava

新・解きながら学ぶJava 481! 41, 74!= 40, 270 " 4 % 23, 25 %% 121 %c 425 %d 121 %o 121 %x 121 & 199 && 48 ' 81, 425 ( ) 14, 17 ( ) 128 ( ) 183 * 23 */ 3, 390 ++ 79 ++ 80 += 93 + 22 + 23 + 279 + 14 + 124 + 7, 148, 16 -- 79 --

More information

新・明解C言語入門編『索引』

新・明解C言語入門編『索引』 !... 75!=... 48 "... 234 " "... 9, 84, 240 #define... 118, 213 #include... 148 %... 23 %... 23, 24 %%... 23 %d... 4 %f... 29 %ld... 177 %lf... 31 %lu... 177 %o... 196 %p... 262 %s... 242, 244 %u... 177

More information

1 Framework.NET Framework Microsoft Windows.NET Framework.NET Framework NOTE.NET NET Framework.NET Framework 2.0 ( 3 ).NET Framework 2.0.NET F

1 Framework.NET Framework Microsoft Windows.NET Framework.NET Framework NOTE.NET NET Framework.NET Framework 2.0 ( 3 ).NET Framework 2.0.NET F 1 Framework.NET Framework Microsoft Windows.NET Framework.NET Framework NOTE.NET 2.0 2.0.NET Framework.NET Framework 2.0 ( 3).NET Framework 2.0.NET Framework ( System ) o o o o o o Boxing UnBoxing() o

More information

84

84 83 84 EKI-1526 EKI-1528 EKI-1524 EKI-1522 EKI-1521 2 2 2 2 2 16 8 4 2 1 10/100 Mbps 10/100 Mbps 10/100 Mbps 10/100 Mbps 10/100 Mbps RS-232/422/485 RS-232/422/485 RS-232/422/485 RS-232/422/485 RS-232/422/485

More information

Outline USB Application Requirements Variable Definition Communications Code for VB Code for Keil C Practice

Outline USB Application Requirements Variable Definition Communications Code for VB Code for Keil C Practice 路 ESW 聯 USB Chapter 9 Applications For Windows Outline USB Application Requirements Variable Definition Communications Code for VB Code for Keil C Practice USB I/O USB / USB 3 料 2 1 3 路 USB / 列 料 料 料 LED

More information

前言 C# C# C# C C# C# C# C# C# microservices C# More Effective C# More Effective C# C# C# C# Effective C# 50 C# C# 7 Effective vii

前言 C# C# C# C C# C# C# C# C# microservices C# More Effective C# More Effective C# C# C# C# Effective C# 50 C# C# 7 Effective vii 前言 C# C# C# C C# C# C# C# C# microservices C# More Effective C# More Effective C# C# C# C# Effective C# 50 C# C# 7 Effective vii C# 7 More Effective C# C# C# C# C# C# Common Language Runtime CLR just-in-time

More information

Guava学习之Resources

Guava学习之Resources Resources 提供提供操作 classpath 路径下所有资源的方法 除非另有说明, 否则类中所有方法的参数都不能为 null 虽然有些方法的参数是 URL 类型的, 但是这些方法实现通常不是以 HTTP 完成的 ; 同时这些资源也非 classpath 路径下的 下面两个函数都是根据资源的名称得到其绝对路径, 从函数里面可以看出,Resources 类中的 getresource 函数都是基于

More information

CHAPTER 1

CHAPTER 1 CHAPTER 1 1-1 System Development Life Cycle; SDLC SDLC Waterfall Model Shelly 1995 1. Preliminary Investigation 2. System Analysis 3. System Design 4. System Development 5. System Implementation and Evaluation

More information

Microsoft Word - CIN-DLL.doc

Microsoft Word - CIN-DLL.doc 6.3. 调 用 动 态 链 接 库 (DLL) 相 对 于 CIN 来 讲,NI 更 推 荐 用 户 使 用 DLL 来 共 享 基 于 文 本 编 程 语 言 开 发 的 代 码 除 了 共 享 或 重 复 利 用 代 码, 开 发 人 员 还 能 利 用 DLL 封 装 软 件 的 功 能 模 块, 以 便 这 些 模 块 能 被 不 同 开 发 工 具 利 用 在 LabVIEW 中 使 用

More information

C C

C C C C 2017 3 8 1. 2. 3. 4. char 5. 2/101 C 1. 3/101 C C = 5 (F 32). 9 F C 4/101 C 1 // fal2cel.c: Convert Fah temperature to Cel temperature 2 #include 3 int main(void) 4 { 5 float fah, cel; 6 printf("please

More information

1 Project New Project 1 2 Windows 1 3 N C test Windows uv2 KEIL uvision2 1 2 New Project Ateml AT89C AT89C51 3 KEIL Demo C C File

1 Project New Project 1 2 Windows 1 3 N C test Windows uv2 KEIL uvision2 1 2 New Project Ateml AT89C AT89C51 3 KEIL Demo C C File 51 C 51 51 C C C C C C * 2003-3-30 pnzwzw@163.com C C C C KEIL uvision2 MCS51 PLM C VC++ 51 KEIL51 KEIL51 KEIL51 KEIL 2K DEMO C KEIL KEIL51 P 1 1 1 1-1 - 1 Project New Project 1 2 Windows 1 3 N C test

More information

Microsoft PowerPoint - BECKHOFF技术_ADS通讯 [Compatibility Mode]

Microsoft PowerPoint - BECKHOFF技术_ADS通讯 [Compatibility Mode] 的架构 ADS 的通讯机制 ADS-Client Request -> Confirmation Indication

More information

Microsoft Word - 01.DOC

Microsoft Word - 01.DOC 第 1 章 JavaScript 简 介 JavaScript 是 NetScape 公 司 为 Navigator 浏 览 器 开 发 的, 是 写 在 HTML 文 件 中 的 一 种 脚 本 语 言, 能 实 现 网 页 内 容 的 交 互 显 示 当 用 户 在 客 户 端 显 示 该 网 页 时, 浏 览 器 就 会 执 行 JavaScript 程 序, 用 户 通 过 交 互 式 的

More information

穨control.PDF

穨control.PDF TCP congestion control yhmiu Outline Congestion control algorithms Purpose of RFC2581 Purpose of RFC2582 TCP SS-DR 1998 TCP Extensions RFC1072 1988 SACK RFC2018 1996 FACK 1996 Rate-Halving 1997 OldTahoe

More information

untitled

untitled 不 料 料 例 : ( 料 ) 串 度 8 年 數 串 度 4 串 度 數 數 9- ( ) 利 數 struct { ; ; 數 struct 數 ; 9-2 數 利 數 C struct 數 ; C++ 數 ; struct 省略 9-3 例 ( 料 例 ) struct people{ char name[]; int age; char address[4]; char phone[]; int

More information

CHAPTER VC#

CHAPTER VC# 1. 2. 3. 4. CHAPTER 2-1 2-2 2-3 2-4 VC# 2-5 2-6 2-7 2-8 Visual C# 2008 2-1 Visual C# 0~100 (-32768~+32767) 2 4 VC# (Overflow) 2-1 2-2 2-1 2-1.1 2-1 1 10 10!(1 10) 2-3 Visual C# 2008 10! 32767 short( )

More information

epub 33-8

epub 33-8 8 1) 2) 3) A S C I I 4 C I / O I / 8.1 8.1.1 1. ANSI C F I L E s t d i o. h typedef struct i n t _ f d ; i n t _ c l e f t ; i n t _ m o d e ; c h a r *_ n e x t ; char *_buff; /* /* /* /* /* 1 5 4 C FILE

More information

27 :OPC 45 [4] (Automation Interface Standard), (Costom Interface Standard), OPC 2,,, VB Delphi OPC, OPC C++, OPC OPC OPC, [1] 1 OPC 1.1 OPC OPC(OLE f

27 :OPC 45 [4] (Automation Interface Standard), (Costom Interface Standard), OPC 2,,, VB Delphi OPC, OPC C++, OPC OPC OPC, [1] 1 OPC 1.1 OPC OPC(OLE f 27 1 Vol.27 No.1 CEMENTED CARBIDE 2010 2 Feb.2010!"!!!!"!!!!"!" doi:10.3969/j.issn.1003-7292.2010.01.011 OPC 1 1 2 1 (1., 412008; 2., 518052), OPC, WinCC VB,,, OPC ; ;VB ;WinCC Application of OPC Technology

More information

USB - 1 - - 2 - - 3 - - 4 - - 5 - - 6 - - 7 - DES Module FSM CONTROLLER 8 6 8 Key ROM 8 8 Data_in RAM Data_out RAM 8 USB Board - 8 - - 9 - - 10 - - 11 - - 12 - USB device INF Windows INF Device Function

More information

OOP with Java 通知 Project 4: 4 月 18 日晚 9 点 关于抄袭 没有分数

OOP with Java 通知 Project 4: 4 月 18 日晚 9 点 关于抄袭 没有分数 OOP with Java Yuanbin Wu cs@ecnu OOP with Java 通知 Project 4: 4 月 18 日晚 9 点 关于抄袭 没有分数 复习 类的复用 组合 (composition): has-a 关系 class MyType { public int i; public double d; public char c; public void set(double

More information

C/C++ - 函数

C/C++ - 函数 C/C++ Table of contents 1. 2. 3. & 4. 5. 1 2 3 # include # define SIZE 50 int main ( void ) { float list [ SIZE ]; readlist (list, SIZE ); sort (list, SIZE ); average (list, SIZE ); bargragh

More information

AN197:CP210x 串行通信指南 此应用说明适用于以下设备 :CP2101 CP2102 CP2103 CP2104 CP2105 和 CP2108 本文件旨在协助开发人员以 CP210x USB 至 UART 桥控制器为基础开发产品 文件介绍了串行通信以及如何获取某个特定 CP210x 设备

AN197:CP210x 串行通信指南 此应用说明适用于以下设备 :CP2101 CP2102 CP2103 CP2104 CP2105 和 CP2108 本文件旨在协助开发人员以 CP210x USB 至 UART 桥控制器为基础开发产品 文件介绍了串行通信以及如何获取某个特定 CP210x 设备 AN197:CP210x 串行通信指南 此应用说明适用于以下设备 :CP2101 CP2102 CP2103 CP2104 CP2105 和 CP2108 本文件旨在协助开发人员以 CP210x USB 至 UART 桥控制器为基础开发产品 文件介绍了串行通信以及如何获取某个特定 CP210x 设备的端口号 ; 提供了开启 关闭 配置 读取与写入 COM 端口的代码样本 ; 还包括 GetPortNum

More information

新版 明解C言語入門編

新版 明解C言語入門編 328, 4, 110, 189, 103, 11... 318. 274 6 ; 10 ; 5? 48 & & 228! 61!= 42 ^= 66 _ 82 /= 66 /* 3 / 19 ~ 164 OR 53 OR 164 = 66 ( ) 115 ( ) 31 ^ OR 164 [] 89, 241 [] 324 + + 4, 19, 241 + + 22 ++ 67 ++ 73 += 66

More information

AN INTRODUCTION TO PHYSICAL COMPUTING USING ARDUINO, GRASSHOPPER, AND FIREFLY (CHINESE EDITION ) INTERACTIVE PROTOTYPING

AN INTRODUCTION TO PHYSICAL COMPUTING USING ARDUINO, GRASSHOPPER, AND FIREFLY (CHINESE EDITION ) INTERACTIVE PROTOTYPING AN INTRODUCTION TO PHYSICAL COMPUTING USING ARDUINO, GRASSHOPPER, AND FIREFLY (CHINESE EDITION ) INTERACTIVE PROTOTYPING 前言 - Andrew Payne 目录 1 2 Firefly Basics 3 COMPONENT TOOLBOX 目录 4 RESOURCES 致谢

More information

C/C++ 语言 - 循环

C/C++ 语言 - 循环 C/C++ Table of contents 7. 1. 2. while 3. 4. 5. for 6. 8. (do while) 9. 10. (nested loop) 11. 12. 13. 1 // summing.c: # include int main ( void ) { long num ; long sum = 0L; int status ; printf

More information

1 4 1.1 4 1.2..4 2..4 2.1..4 3.4 3.1 Java.5 3.1.1..5 3.1.2 5 3.1.3 6 4.6 4.1 6 4.2.6 5 7 5.1..8 5.1.1 8 5.1.2..8 5.1.3..8 5.1.4..9 5.2..9 6.10 6.1.10

1 4 1.1 4 1.2..4 2..4 2.1..4 3.4 3.1 Java.5 3.1.1..5 3.1.2 5 3.1.3 6 4.6 4.1 6 4.2.6 5 7 5.1..8 5.1.1 8 5.1.2..8 5.1.3..8 5.1.4..9 5.2..9 6.10 6.1.10 Java V1.0.1 2007 4 10 1 4 1.1 4 1.2..4 2..4 2.1..4 3.4 3.1 Java.5 3.1.1..5 3.1.2 5 3.1.3 6 4.6 4.1 6 4.2.6 5 7 5.1..8 5.1.1 8 5.1.2..8 5.1.3..8 5.1.4..9 5.2..9 6.10 6.1.10 6.2.10 6.3..10 6.4 11 7.12 7.1

More information

ebook140-8

ebook140-8 8 Microsoft VPN Windows NT 4 V P N Windows 98 Client 7 Vintage Air V P N 7 Wi n d o w s NT V P N 7 VPN ( ) 7 Novell NetWare VPN 8.1 PPTP NT4 VPN Q 154091 M i c r o s o f t Windows NT RAS [ ] Windows NT4

More information

untitled

untitled Delphi 2 3 Delphi 4 5 Delphi 6 Delphi 2 1 3 Delphi 4 1 5 Delphi 6 1 7 Delphi 8 1 9 Delphi 10 1 11 Delphi 12 1 13 Delphi 14 1 15 Delphi 16 1 17 Delphi 18 1 19 Delphi 20 1 21 Delphi 22 1 23 Delphi DISTR

More information

Microsoft Word - InoTouch Editor编程软件手册2012.2.10.doc

Microsoft Word - InoTouch Editor编程软件手册2012.2.10.doc 目 录 第 一 章 关 于 InoTouch Editor 编 程 软 件 的 安 装... - 6-1.1 InoTouch 系 列 HMI 和 InoTouch Editor 软 件 的 简 介... - 6-1.2 安 装 InoTouch Editor 编 程 软 件... - 10-1.3 系 统 连 接 图... - 12-1.4 InoTouch 系 列 人 机 界 面 的 系 统 设

More information

C/C++语言 - 运算符、表达式和语句

C/C++语言 - 运算符、表达式和语句 C/C++ Table of contents 1. 2. 3. 4. C C++ 5. 6. 7. 1 i // shoe1.c: # include # define ADJUST 7. 64 # define SCALE 0. 325 int main ( void ) { double shoe, foot ; shoe = 9. 0; foot = SCALE * shoe

More information

( CIP) /. :, ( ) ISBN TP CIP ( 2005) : : : : * : : 174 ( A ) : : ( 023) : ( 023)

( CIP) /. :, ( ) ISBN TP CIP ( 2005) : : : : * : : 174 ( A ) : : ( 023) : ( 023) ( CIP) /. :, 2005. 2 ( ) ISBN 7-5624-3339-9.......... TP311. 1 CIP ( 2005) 011794 : : : : * : : 174 ( A ) :400030 : ( 023) 65102378 65105781 : ( 023) 65103686 65105565 : http: / /www. cqup. com. cn : fxk@cqup.

More information

1.ai

1.ai HDMI camera ARTRAY CO,. LTD Introduction Thank you for purchasing the ARTCAM HDMI camera series. This manual shows the direction how to use the viewer software. Please refer other instructions or contact

More information

用户大会 论文集2.2.doc

用户大会 论文集2.2.doc MagGis MapGis GIS MagGis API DLL MapGis VC++ VB BC++ Delphi., Windows API MapGis VC++V Delphi Delphi Delphi MapGis Delphi Delphi Windows Delphi Delphi MapGis MapGis DLL API MapGis function _InitWorkArea(HINST:Integer):Integer;

More information

51 C 51 isp 10 C PCB C C C C KEIL

51 C 51 isp 10   C   PCB C C C C KEIL http://wwwispdowncom 51 C " + + " 51 AT89S51 In-System-Programming ISP 10 io 244 CPLD ATMEL PIC CPLD/FPGA ARM9 ISP http://wwwispdowncom/showoneproductasp?productid=15 51 C C C C C ispdown http://wwwispdowncom

More information

K7VT2_QIG_v3

K7VT2_QIG_v3 ............ 1 2 3 4 5 [R] : Enter Raid setup utility 6 Press[A]keytocreateRAID RAID Type: JBOD RAID 0 RAID 1: 2 7 RAID 0 Auto Create Manual Create: 2 RAID 0 Block Size: 16K 32K

More information

ICD ICD ICD ICD ICD

ICD ICD ICD ICD ICD MPLAB ICD2 MPLAB ICD2 PIC MPLAB-IDE V6.0 ICD2 usb PC RS232 MPLAB IDE PC PC 2.0 5.5V LED EEDATA MPLAB ICD2 Microchip MPLAB-IDE v6.0 Windows 95/98 Windows NT Windows 2000 www.elc-mcu.com 1 ICD2...4 1.1 ICD2...4

More information

Microsoft Word - 把时间当作朋友(2011第3版)3.0.b.07.doc

Microsoft Word - 把时间当作朋友(2011第3版)3.0.b.07.doc 2 5 8 11 0 1. 13 2. 15 3. 18 1 1. 22 2. 25 3. 27 2 1. 35 2. 38 3. 41 4. 43 5. 48 6. 50 3 1. 56 2. 59 3. 63 4. 65 5. 69 13 22 35 56 6. 74 7. 82 8. 84 9. 87 10. 97 11. 102 12. 107 13. 111 4 114 1. 114 2.

More information

untitled

untitled 3 C++ 3.1 3.2 3.3 3.4 new delete 3.5 this 3.6 3.7 3.1 3.1 class struct union struct union C class C++ C++ 3.1 3.1 #include struct STRING { typedef char *CHARPTR; // CHARPTR s; // int strlen(

More information

chap07.key

chap07.key #include void two(); void three(); int main() printf("i'm in main.\n"); two(); return 0; void two() printf("i'm in two.\n"); three(); void three() printf("i'm in three.\n"); void, int 标识符逗号分隔,

More information

PTS7_Manual.PDF

PTS7_Manual.PDF User Manual Soliton Technologies CO., LTD www.soliton.com.tw - PCI V2.2. - PCI 32-bit / 33MHz * 2 - Zero Skew CLK Signal Generator. - (each Slot). -. - PCI. - Hot-Swap - DOS, Windows 98/2000/XP, Linux

More information

RunPC2_.doc

RunPC2_.doc PowerBuilder 8 (5) PowerBuilder Client/Server Jaguar Server Jaguar Server Connection Cache Thin Client Internet Connection Pooling EAServer Connection Cache Connection Cache Connection Cache Connection

More information

untitled

untitled Lwip Swedish Institute of Computer Science February 20, 2001 Adam Dunkels adam@sics.se (QQ: 10205001) (QQ: 329147) (QQ:3232253) (QQ:3232253) QQ ARM TCPIP LCD10988210 LWIP TCP/IP LWIP LWIP lwip API lwip

More information

Microsoft Word - 第3章.doc

Microsoft Word - 第3章.doc Java C++ Pascal C# C# if if if for while do while foreach while do while C# 3.1.1 ; 3-1 ischeck Test() While ischeck while static bool ischeck = true; public static void Test() while (ischeck) ; ischeck

More information

C++ 程式設計

C++ 程式設計 C C 料, 數, - 列 串 理 列 main 數串列 什 pointer) 數, 數, 數 數 省 不 不, 數 (1) 數, 不 數 * 料 * 數 int *int_ptr; char *ch_ptr; float *float_ptr; double *double_ptr; 數 (2) int i=3; int *ptr; ptr=&i; 1000 1012 ptr 數, 數 1004

More information

RS-232C [11-13] 1 1 (PLC) (HMI) Visual Basic (PLC) 402

RS-232C [11-13] 1 1 (PLC) (HMI) Visual Basic (PLC) 402 年 路 年 1 [1-3][4] [5-7] [15] Visual Basic [10] 401 RS-232C [11-13] 1 1 (PLC) (HMI) Visual Basic (PLC) 402 1 1 X0 X1 X2 X3 SENSOR Y0 SENSOR VB X3 Y0 Y1 Y2 Y3 Y4 Y5 Y1~Y5 Y6 VB Y7 VB Y11 Y12 Y13 Y14 Y15 Y11~Y15

More information

3 N D I S N D I S N D I S N D I D D K C p a c k e t. c o p e n c l o s. c r e a d. c w r i t e. c p a c k e t. r c p a c k e t. s y s p a c k e t. i n

3 N D I S N D I S N D I S N D I D D K C p a c k e t. c o p e n c l o s. c r e a d. c w r i t e. c p a c k e t. r c p a c k e t. s y s p a c k e t. i n 3 N D I S 3 N D I S N D I S N D I S N D I D D K C p a c k e t. c o p e n c l o s. c r e a d. c w r i t e. c p a c k e t. r c p a c k e t. s y s p a c k e t. i n f C a n a l y z e. c c h i l d w i n. c

More information

ebook140-9

ebook140-9 9 VPN VPN Novell BorderManager Windows NT PPTP V P N L A V P N V N P I n t e r n e t V P N 9.1 V P N Windows 98 Windows PPTP VPN Novell BorderManager T M I P s e c Wi n d o w s I n t e r n e t I S P I

More information

TX-NR3030_BAS_Cs_ indd

TX-NR3030_BAS_Cs_ indd TX-NR3030 http://www.onkyo.com/manual/txnr3030/adv/cs.html Cs 1 2 3 Speaker Cable 2 HDMI OUT HDMI IN HDMI OUT HDMI OUT HDMI OUT HDMI OUT 1 DIGITAL OPTICAL OUT AUDIO OUT TV 3 1 5 4 6 1 2 3 3 2 2 4 3 2 5

More information

ebook

ebook 3 3 3.1 3.1.1 ( ) 90 3 1966 B e r n s t e i n P ( i ) R ( i ) W ( i P ( i P ( j ) 1) R( i) W( j)=φ 2) W( i) R( j)=φ 3) W( i) W( j)=φ 3.1.2 ( p r o c e s s ) 91 Wi n d o w s Process Control Bl o c k P C

More information