CTL_STATUS_t ctl_transport_read_24b_register(CTL_TRANSPORT_t *self,
                                             int reg);

ctl_transport_read_24b_register reads three consecutive 8-bit registers starting at address reg from the device associated with transport self. The three bytes read are combined to form a 24-bit value, according to the register byte set on initialization, and is returned as the function result.

Return Value

ctl_transport_read_24b_register returns a standard status code.