MEAS TSYS02D XPLAINED PRO BOARD
Digital Temperature DCS Development Tools
SENSOR SOLUTIONS /// MEAS TSYS02D XPLAINED PRO BOARD 05/2016
Drivers & Software
Detailed example software and drivers are available that execute directly without modification on a number of development
boards that support an integrated or synthesized microprocessor. The download contains several source files intended to
accelerate customer evaluation and design. The source code is written in standard ANSI C format, and all development
documentation including theory/operation, register description, and function prototypes are documented in the interface file.
Functions Summary
tsys02d_i2c_master_mode {
tsys02d_i2c_hold,
tsys02d_i2c_no_hold
}
tsys02d_status {
tsys02d_status_ok, tsys02d_status_no_i2c_acknowledge,
tsys02d_status_i2c_transfer_error, tsys02d_status_crc_error
}
tsys02d_resolution_t_14b, tsys02d_resolution_t_13b,
tsys02d_resolution_t_12b, tsys02d_resolution_t_11b
}
tsys02d_battery_status { tsys02d_battery_ok, tsys02d_battery_low }
tsys02d_heater_status { tsys02d_heater_off, tsys02d_heater_on }
Configures the SERCOM I2C master to be used with the TSYS02D device.
tsys02d_is_connected (void)
Check whether TSYS02D device is connected.
Reset the TSYS02D device.
tsys02d_read_serial_number (uint64_t *)
Reads the tsys02d serial number.
tsys02d_set_resolution (enum tsys02d_resolution)
Set temperature ADC resolution.
tsys02d_set_i2c_master_mode (enum tsys02d_i2c_master_mode)
tsys02d_read_temperature (float *)
Reads the temperature ADC value and compute the degree Celsius one.
tsys02d_get_battery_status (enum tsys02d_battery_status *)
tsys02d_enable_heater (void)
tsys02d_disable_heater (void)
tsys02d_get_heater_status (enum tsys02d_heater_status *)