DMDLL_USBGetStatus_LL

해당하는 USB장치측으로 GetStatus명령어를 전송한다


Description

int DMDLL_USBGetStatus_LL( 
    IN DMHANDLE  MasterHandle,
    IN USHORT    Op,
    IN USHORT    Index,
    OUT USHORT * pStatus
)

Parameters

    MasterHandle
            작업중이던 디바이스 핸들, DMDLL_OpenDeviceForInterfaceDeviceStack( PipeNumber = -1 )함수를 통해서 얻은 핸들(Master)이어야 한다
    Op
            USB.H 에서 정의한 명령어
            #define URB_FUNCTION_GET_STATUS_FROM_DEVICE          0x0013
            #define URB_FUNCTION_GET_STATUS_FROM_INTERFACE       0x0014
            #define URB_FUNCTION_GET_STATUS_FROM_ENDPOINT        0x0015
            #define URB_FUNCTION_GET_STATUS_FROM_OTHER           0x0021
    Index
            USB 표준스팩에서 정의한 값
    pStatus
            USB 표준스팩에서 정의한 Status값. 얻어지는 값이다

Return Values

    return  int
            작업이 성공할 경우 DMSTAT_SUCCESS 리턴

Changelog


Examples

int nRet = 0;
USHORT Status = 0; 
USHORT Index = 0;

nRet = DMDLL_USBGetStatus_LL(
                MasterHandle, 
                URB_FUNCTION_GET_STATUS_FROM_DEVICE,
                Index,
                &Status 
        );

results matching ""

    No results matching ""