MT_SetLEDStatus

■Description

Controls the status LED.

■Synopsis

int MT_SetLEDStatus(int fd,PLEDSTATUS pledsts)

■Argument

int fd
  lease specify handle acquired by MT_Open function.

PLEDSTATUS pledsts
  Specify a pointer to a structure that stores the status of the status LED to be controlled.

  If the function succeeds, the status of the target LED is set.
  PLEDSTATUS structure is as follows.

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

  Set the status shown in the table below for the member variable ucSLED.
  ucExt[13] is not used for reservation.

Valiable Support products
ucLED BX-220D Series,BX-830 Series,
BX-956S Series,PT-956S Series,
BX-825 Series,BX-U200 Series,
BX-T1000 Series,BX-T210 Series,
BX-M1500 Series,BX-T3000 Series,
PT-M1xSA-210 Series
ucL1 BX-320 Series
ucL2 BX-320 Series
ucExt[13] Reserved
*CPS-BXC200 Series
* In CPS-BXC200, ucExt[0-2] corresponds to ST1-3.
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, BX-T1000 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, a code other than NO_ERROR is returned.
The other errors : Error code details



Function List