CTL_STATUS_t ctl_transport_write_registers(CTL_TRANSPORT_t *self, int reg, int n, const void *data);
ctl_transport_write_registers wraps a call to the device-specific register write method write_registers of the self instance, passing the parameters through unchanged.
Whilst a client can call the self's write_registers method directly, it's better style to use the wrapper function.
ctl_transport_write_registers returns a standard status code.
ctl_transport_write_registers is thread-safe if the transport self has a mutex associated with it. ctl_transport_write_registers ensures an atomic update of the register by locking the transport before writing the register and unlocking it after writing the register.