일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- 제주도 카페
- 파이썬
- 말해보카
- 성산 혼술
- 엽서
- 명동
- 혼공머신
- 성산 맛집
- 혼공단
- 제주도 혼술
- 맛집
- 제주도 성산
- 제주도 숙소
- 플레이스캠프
- 성산
- 엽서북
- 영어
- 포스트크로싱
- 혼공파
- 성산 혼밥
- 제주도
- 천안 맛집
- 제주도 혼밥
- 혼공챌린지
- 영어공부
- postcrossing
- 제주도 여행
- PYTHON
- 제주도 맛집
- postcard
- Today
- Total
Cherry Cloud 9
SetupComm, PurgeComm Function 본문
SetupComm function
_In_ HANDLE hFile,
_In_ DWORD dwInQueue,
_In_ DWORD dwOutQueue
);
지정된 통신 장치의 통신 파라메타를 초기화
입출력 버퍼의 크기를 정한다.
Parameters
- hFile [in]
-
A handle to the communications device. The CreateFile function returns this handle.
- dwInQueue [in]
-
The recommended size of the device's internal input buffer, in bytes.
- dwOutQueue [in]
-
The recommended size of the device's internal output buffer, in bytes.
Return value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
참조 : https://msdn.microsoft.com/en-us/library/windows/desktop/aa363439(v=vs.85).aspx
PurgeComm function
_In_ HANDLE hFile,
_In_ DWORD dwFlags
);
특정한 통신 자원의 입출력 버퍼의 모든 데이터를 삭제한다.
보류된 입출력 함수의 자원을 종료시킨다.
Parameters
- hFile [in]
-
A handle to the communications resource. The CreateFile function returns this handle.
- dwFlags [in]
-
이 매개변수는 1개 이상 올 수 있음
Return value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
참조 : https://msdn.microsoft.com/en-us/library/windows/desktop/aa363428(v=vs.85).aspx
'Programming > Serial Comm' 카테고리의 다른 글
COMMTIMEOUTS structure (0) | 2017.03.06 |
---|