Synopsis
typedef struct {
  CTL_TRANSPORT_t transport;
  CTL_STATUS_t (*set_direction)(CTL_PARALLEL_BUS_s *, unsigned);
  CTL_STATUS_t (*write)(CTL_PARALLEL_BUS_s *, unsigned);
  CTL_STATUS_t (*read)(CTL_PARALLEL_BUS_s *);
  CTL_MUTEX_t *mutex;
  unsigned __width;
  unsigned __output;
  unsigned __direction;
  unsigned __mask;
} CTL_PARALLEL_BUS_t;
Description

CTL_PARALLEL_BUS_t contains the bus state and methods that implement a parallel bus. Clients that use the parallel bus should consider all data in this structure private.

Structure
transport
Underlying transport for parallel buses realized by I2C or SPI devices.
set_direction
Method to set the bus direction.
write
Method to set the bus pins.
read
Method to read the bus pins.
__width
The bus width, in bits.
__output
The bus output state.
__direction
The bus direction.
__mask
The bus mask corresponding to __width.