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