Synopsis
void ctl_bus_lock(CTL_PARALLEL_BUS_t *self);
Description

ctl_bus_lock acquires the bus lock mutex of the bus self. If there is no mutex associated with the bus self, ctl_bus_lock returns immediately indicating success.

All locks of the bus by ctl_bus_lock must be paired with a call to ctl_bus_unlock to release the lock.

Note

Because mutexes can be locked multiple times, you can use ctl_bus_lock to acquire the bus to issue a sequence of transactions to the bus that cannot be interrupted by another task.

See Also

ctl_bus_unlock, ctl_bus_lock_ex