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;
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.