Synopsis
typedef struct {
  CTL_STATUS_t (*read_registers)(CTL_TRANSPORT_s *, int , int , void *);
  CTL_STATUS_t (*write_registers)(CTL_TRANSPORT_s *, int , int , const void *);
  unsigned char address;
  unsigned char big_endian;
  CTL_TRANSPORT_BUS_t bus;
  CTL_MUTEX_t *mutex;
} CTL_TRANSPORT_t;
Structure
read_registers
Method to read registers using a transport interface. Clients should not call this directly.
write_registers
Method to write registers using a transport interface. Clients should not call this directly.
bus
Private member which maintains transport-related data for the bus.
big_endian
Defines the register byte order for multi-byte registers read and written over the bus.
mutex
Transport-lock mutex. This is inherited from the I2C or SPI bus when calling ctl_transport_initialize_i2c or ctl_transport_initialize_spi. The transport is locked by read-modify-write functions to ensure that the device register is atomically updated.