CTL_STATUS_t ctl_transport_read_32b_register(CTL_TRANSPORT_t *self,
                                             int reg,
                                             unsigned long *v);

ctl_transport_read_32b_register reads four consecutive 8-bit registers starting at address reg from the device associated with transport self. The four bytes read are combined to form a 24-bit value, according to the register byte set on initialization, and assigned to the long pointed to by v.

Return Value

ctl_transport_read_32b_register returns a standard status code.