MT_SetDioDirection

■Description

Specify the input/output direction of the DIO port.

■Synopsis

int MT_SetDioDirection(int fd, unsigned char ucDioDirection)

■Argument

int fd
  Please specify handle acquired by MT_Open function.

unsigned char ucDioDirection
  This is a variable that specifies the input / output direction of each GPIO.
Setting values bit0-bit5 correspond to GPIO0-GPIO5, respectively.
1: input , 0: output

■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-956S Series, BX-T210 Series, BX-M1500 Series, BX-M2500, BX-T3000 Series BX-T310-J Series and BX-M310-J Series are supported.



Function List