/* Set direction of IO pins in 'reg_bit' to corresponding value in 'data' 0 = output, 1 = input  */
int tca642x_set_dir(uchar chip, uint8_t gpio_bank, uint8_t reg_bit, uint8_t data)
/* Set direction of IO pins in 'reg_bit' to corresponding value in 'data' 0 = output, 1 = input  */
int tca642x_set_dir(uchar chip, uint8_t gpio_bank, uint8_t reg_bit, uint8_t data)
{
	uint8_t config_reg = tca642x_regs[gpio_bank].configuration_reg;
	return tca642x_reg_write(chip, config_reg, reg_bit, data);
}