• Ready for review
  • GPIO_Get_Pin

    The function GPIO_Get_Pin returns the current level of a gpio.

    int GPIO_Get_Pin( volatile GPIO_REGS *v_pGPIOReg, UCHAR pin) );

    Parameters

    v_pGPIOReg
    Pointer to gpio-registers. Use return value of GPIO_AllocSpace.

    pin
    GPIO pin-number.

    Return Values

    Level of GPIO is returned.

    Remarks

    Requirements

    OS Versions: Windows CE 4.2 and later.
    Header: drvlib_app.h
    Link Library: drvlib_app.lib

    See Also

    GPIO_AllocSpace, GPIO_FreeSpace, GPIO_Set_Pin, GPIO_Set_PWM