73 uint16_t timer_count = 0;
81 if (timer_count++>eoc_timeout)
90 *adc_code= 2147483647;
96 *adc_code=-2147483648;
static uint8_t adc_command
int8_t i2c_read_block_data(uint8_t address, uint8_t command, uint8_t length, uint8_t *values)
Read a block of data, starting at register specified by "command" and ending at (command + length - 1...
uint8_t LT_byte[4]
4 bytes (unsigned 8-bit integers) to be converted to a 32-bit signed or unsigned integer ...
LTC2485: 24-Bit Delta Sigma ADC with Easy Drive Input Current Cancellation and I2C Interface...
Header File for Linduino Libraries and Demo Code.
union LT_union_int32_4bytes data
static uint16_t eoc_timeout
timeout in ms
int8_t LTC2485_read(uint8_t i2c_address, uint8_t adc_command, int32_t *adc_code, uint16_t eoc_timeout)
Reads from LTC2485 ADC that accepts an 8 bit configuration and returns a 24 bit result.
int32_t LT_int32
32-bit signed integer to be converted to four bytes
LT_I2C: Routines to communicate with ATmega328P's hardware I2C port.
This union splits one int32_t (32-bit signed integer) or uint32_t (32-bit unsigned integer) four uint...