怎樣讀取串口每個引腳的值 |
答題得分者是:cmf
|
cxg
中階會員 發表:116 回覆:192 積分:76 註冊:2004-02-12 發送簡訊給我 |
|||||||||||||||||||||||||
cmf
尊榮會員 發表:84 回覆:918 積分:1032 註冊:2002-06-26 發送簡訊給我 |
COMSTATThe COMSTAT structure contains information about a communications device. This structure is filled by theClearCommError function. typedef struct _COMSTAT { DWORD fDsrHold :1; DWORD fXoffHold :1; DWORD fEof :1; DWORD fReserved :25; DWORD cbOutQue; } COMSTAT, *LPCOMSTAT; Parameters
Return ValuesIf the function succeeds, the return value is nonzero.If the function fails, the return value is zero. To get extended error information, callGetLastError. RemarksIf a communications port has been set up with a TRUE value for the fAbortOnError member of the setupDCB structure, the communications software will terminate all read and write operations on the communications port when a communications error occurs. No new read or write operations will be accepted until the application acknowledges the communications error by calling the ClearCommError function.The ClearCommError function fills the status buffer pointed to by thelpStat parameter with the current status of the communications device specified by the hFile parameter. http://netbook.mm520.net
------
︿︿ |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |