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

ltc2309_sample_single_ended_bipolar samples channel channel in single-ended mode using COM as the negative terminal. The object pointed to by sample is written to a value between −1 and +1 (inclusive) that represents the value sampled.

Return Value

ltc2309_sample_single_ended_bipolar returns a standard status code.

Thread Safety

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