Specify the input/output direction of the DIO port.
int MT_SetDioDirection(int fd, unsigned char ucDioDirection)
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
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
Only BX-956SD series, BX-T210 series and BX-M1500 series are supported.
Function List