plgpio_direction_input
ret = plgpio_direction_input(chip, offset);
plgpio->chip.direction_input = plgpio_direction_input;