• IXJCTL_SET_LED

    ioctl(ixj, IXJCTL_SET_LED, iLEDPattern)

    Return Value

    Returns the LED pattern.

    Parameters

    The pattern in the least significant 4 bits to set the LED's on the Internet LineJACK to.

    Remarks

    In order to flash the LEDs, this call must be made periodically with the LED pattern to display.

    See Also:

    Example:

    void led(char en)
    {
      printf("LED 1 = %d\t", en & 0x1?1:0);
      printf("LED 2 = %d\t", en & 0x2?1:0);
      printf("LED 3 = %d\t", en & 0x4?1:0);
      printf("LED 4 = %d\t", en & 0x8?1:0);
      printf("en = %d\n", en);
      ioctl(ixj, IXJCTL_SET_LED, en);
    }
    


    ©1996-2001 Quicknet Technologies, Inc.