CTL_STATUS_t ctl_bus_set_input_mode(CTL_PARALLEL_BUS_t *self, unsigned mask);
ctl_bus_set_input_mode sets all corresponding one-bits in mask to input mode for the bus self. If a bit is zero in mask, the input-output direction of that bit is unchanged.
ctl_bus_set_input_mode returns a standard status code.
ctl_bus_set_input_mode is thread-safe if a mutex is associated with the bus self.