Hi Shica,
For example;
/* Set DIO lines to inputs with buttons connected */
vAHI_DioSetDirection(APP_BUTTONS_DIO_MASK, 0);
APP_BUTTONS_DIO_MASK = (1 << APP_BUTTONS_BUTTON_1) and the APP_BUTTONS_BUTTON_1 is equal to 8.
So, for setting the direction in this case 1 is to set.
Please let me if you have more questions.
Mario