CTL_STATUS_t ctl_bus_write_bits(CTL_PARALLEL_BUS_t *self,
                                unsigned mask,
                                unsigned value);

ctl_bus_write_bits writes the bits in value to the bus self. Only the bits that are set to one in mask are written to the bus which allows the client to both set and clear bits in a single operation.

Return Value

ctl_bus_write_bits returns a standard status code.

Thread Safety

ctl_bus_write_bits is thread-safe if a mutex is associated with the bus self.