CTL_STATUS_t ltc2309_sample_differential_unipolar(LTC2309_ADC_t *self,
                                                  int channel,
                                                  float *sample);

ltc2309_sample_differential_unipolar samples channel channel and channel xor 1 in unipolar differential mode with channel channel as the positive input and channel channel xor 1 as the negative input.

The object pointed to by sample is written to a value between 0 and +1 (inclusive) that represents the value sampled.

Return Value

ltc2309_sample_differential_unipolar returns a standard status code.

Thread Safety

ltc2309_sample_differential_unipolar is thread-safe if a mutex is associated with the I2C bus bus.