代码搜索:SetupComm
找到约 19 项符合「SetupComm」的源代码
代码结果 19
www.eeworm.com/read/450177/7489674
h setupcomm.h
#pragma once
#include "afxwin.h"
// CSetupComm 对话框
class CSetupComm : public CDialog
{
DECLARE_DYNAMIC(CSetupComm)
public:
CSetupComm(CWnd* pParent = NULL); // 标准构造函数
virtual ~CSe
www.eeworm.com/read/450177/7489687
obj setupcomm.obj
www.eeworm.com/read/450177/7489691
cpp setupcomm.cpp
// SetupComm.cpp : 实现文件
//
#include "stdafx.h"
#include "StopWaitComm.h"
#include "SetupComm.h"
#include ".\setupcomm.h"
extern CString CommPort;
extern UINT Speed,PacketLen,DelayTime;
ext
www.eeworm.com/read/253089/12245334
frm setupcomm.frm
VERSION 5.00
Object = "{648A5603-2C6E-101B-82B6-000000000014}#1.1#0"; "MSCOMM32.OCX"
Begin VB.Form setupfrm
Caption = "通信口设置"
ClientHeight = 1530
ClientLeft = 60
www.eeworm.com/read/253089/12245340
frx setupcomm.frx
www.eeworm.com/read/405897/11455217
txt 返回错误码说明.txt
1.动态库中函数返回码含义如下:
readchar的返回码:
0: 正常返回
-1: 创建串口句柄错误:CreateFile Failed!
-2: 建立串口句柄通信错误:SetupComm Failed!
-3: 获取串口状态错误:GetCommState Failed!
-4: 参数错误:model不等于1和2!
-5: 设置串口参数
www.eeworm.com/read/146163/12667231
c main.c
#pragma large
#include "public.h"
sfr T2MOD = 0xC9;
void Delay(UINT ms)
{
UINT i,j;
for(i=0;i
www.eeworm.com/read/146163/12667311
h public.h
#ifndef MOBITEX_PUB
#define MOBITEX_PUB
#include "reg52.h"
#include
#include
#include
#include "math.h"
#include "c51.h"
#include "uart.h"
#include "key.
www.eeworm.com/read/266046/11246123
cpp ussd.cpp
if (!SetCommState(m_hIDComDev, &dcb)‖
!SetupComm(m_hIDComDev,10000,10000)‖
m_OverlappedRead. hEvent ==NULL‖
m_OverlappedWrite. hEvent ==NULL)
{
DWORD dwError = GetLastError();
if (
www.eeworm.com/read/27451/865396
txt d242.bmp.txt
dcb.BaudRate = nBaudRate;
dcb.ByteSize = nByteSize;
dcb.Parity = nParity;
dcb.StopBits = nStopBits;
SetCommState(hComm, &dcb);
SetupComm(hComm, 4096, 1024);
SetCommTimeouts(hComm, &timeouts);
r