* Registration
HANDLE RegisterDevice( LPCWSTR lpszType, DWORD dwIndex, LPCWSTR lpszLib, DWORD dwInfo )
BOOL DeregisterDevice( HANDLE hDevice )
HANDLE ActivateDevice( LPCWSTR lpszDevKey, DWORD dwClientInfo )
HANDLE ActivateDeviceEx( LPCWSTR lpszDevKey, LPPCVOID lpRegEnts,
DWORD cRegEnts, DWORD lpvParam )
BOOL DeactivateDevice( HANDLE hDevice )
* Interface
DWORD xxx_Init( LPCTSTR pContext, DWORD dwBusContenxt )
BOOL xxx_PreDeinit( DWORD hDeviceContext )
BOOL xxx_Deinit( DWORD hDeviceContext )
DWORD xxx_Open( DWORD hDeviceContext, DWORD AccessCode, DWORD ShareMode )
BOOL xxx_PreClose( DWORD hOpenContext )
BOOL xxx_Close( DWORD hOpenContext )
void xxx_PowerUp( DWORD hDeviceContext )
void xxx_PowerDown( DWORD hDeviceContext )
DWORD xxx_Read( DWORD hOpenContext, LPVOID pBuffer, DWORD Count )
DWORD xxx_Seek( DWORD hOpenContext, long Amount, WORD Type )
DWORD xxx_Write( DWORD hOpenContext, LPCVOID pBuffer, DWORD Count )
BOOL xxx_IOControl( DWORD hOpenContext, DWORD dwCode,
PBYTE pBufIn, DWORD dwLenIn,
PBYTE pBufOut, DWORD dwLenOut,
PWORD pdwActualOut )
* IST - InterruptServiceThread
- prepare thread
CreateEvent()
CreateThread()
CeSetThreadPriority()
InterruptDisable()
InterruptInitialilze()
- finish thread
InterruptDisable()
WaitforSingleObject()
CloseHandle()
CloseHandle()
- thread
while ( 1 )
{
WaitforSignelObject()
if ( )
break;
InterruptDone()
}
'프로그래밍 > 시스템' 카테고리의 다른 글
Win32 API 어플리케이션이 시작하고 종료할 때 발생하는 메세지들 (0) | 2010.09.26 |
---|---|
Win32 API로 프로그램을 작성할 때에.. (0) | 2010.09.23 |
[WinCE BSP] 필수적인 구현이 필요한 OAL 함수들 (0) | 2008.02.06 |
윈CE 5.0 PlatformBuilder에서 사용하는 디렉토리 약어 (0) | 2008.02.06 |
WinCE 5.0 BSP, Bootloader, Kernel 의 Startup Sequence (0) | 2008.02.06 |