| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 29 | 30 | 31 |
- 영어공부
- 제주도 혼밥
- 말해보카
- postcrossing
- 성산 맛집
- 천안 맛집
- 성산 혼밥
- 엽서
- 영어
- 포스트크로싱
- 성산
- postcard
- 제주도 성산
- 플레이스캠프
- 파이썬
- 성산 혼술
- 혼공단
- 제주도 숙소
- 제주도 혼술
- 제주도 여행
- 명동
- 제주도
- 엽서북
- 혼공파
- 제주도 카페
- PYTHON
- 혼공챌린지
- 제주도 맛집
- 혼공머신
- 맛집
- 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 |
|---|