MT_GetDioDirection

■Description

Get setting information of DIO port input/output direction.

■Synopsis

int MT_GetDioDirection(int fd, unsigned char *ucDioDirection)

■Argument

int fd
  Please specify handle acquired by MT_Open function.

unsigned char *ucDioDirection
  Specify a variable pointer to store data in read I/O direction.
  Bit 0 to bit 5 of the acquired value correspond to GPIO 0 to GPIO 5, respectively.
    1: input , 0: Outout

■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

■Note

Only BX-956SD series, BX-T210 series and BX-M1500 series are supported.



Function List