Get setting information of DIO port input/output direction.
int MT_GetDioDirection(int fd, unsigned char *ucDioDirection)
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.
For BX-M540-J Series, bit 0 to bit 3 correspond to GPIO_0 to GPIO_3, 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, BX-M1500 Series, BX-M2500 Series, BX-T3000 Series, BX-T310-J Series, BX-M310-J Series, BX-T5000-J Series, BX-M4600/BX-M4600P2x/BX-M4600P4 Series and BX-M540-J Series are supported.
Function List