MT_GetLEDStatus

■Description

Get status-LED status.

■Synopsis

int MT_GetLEDStatus(int fd, PLEDSTATUS pledsts)

■Argument

int fd
  Please specify handle acquired by MT_Open function.

PLEDSTATUS pledsts
  Specify the Pointer to the structure that stores the status LED status
PLEDSTATUS structure is as follows.

  typedef struct {
    unsigned char	ucSLED;
    unsigned char	ucL1;
    unsigned char	ucL2;
    unsigned char	ucExt[13];
  } LEDSTATUS, *PLEDSTATUS;

  The status shown in the table below is stored for the member variable ucSLED.
  ucExt[13] is not used for reservation. Depending on the model, the member variable that stores the LED status information is different.
  Ignore the value of the member variable of the machine not compatible.
  
Variable Support products
ucSLED BX-956S Series, PT-956S Series,
BX-825 Series, BX-U200 Series
BX-T210 Series, BX-M1500 Series,
BX-M2500 Series, BX-T3000 Series,
PT-M1xSA-210 Series BX-T310-J Series,
BX-M310-J Series,
PT-MxxWA-310/PT-FxxSA-320 Series,
BX-T5000-J Series,
BX-M4600/BX-M4600P2x/BX-M4600P4 Series
ucL1 BX-320 Series
ucL2 BX-320 Series
ucExt[13] Reserved
*CPS-BXC200 Series
The above member variable indicates the status of the STATUS LED. * For CPS-BXC200, ST1-3 LED status is stored in ucExt [0-2].
Definition (mtdll.h) description
SLED_OFF turning off LED
SLED_ON turning on LED
SLED_BLINK1* blinking LED
* SLED_BLINK1 is supported only for BX-220 Series, BX-830 Series and BX-U200 Series. For the supported models of this function, please refer to "Function List".

■RETURN VALUE

If the function succeeds, NO_ERROR is returned.
If the function fails, DRIVER_FAIL is returned.
The other errors : Error code details



Function List