97 for (i = 0; i < times; i++)
99 int16_t thermocouple_raw;
100 float thermocouple_temp;
101 int16_t reference_junction_raw;
102 float reference_junction_temp;
105 res =
max31855_read(&gs_handle, &thermocouple_raw, &thermocouple_temp,
106 &reference_junction_raw, &reference_junction_temp);
driver max31855 read test header file
uint8_t max31855_deinit(max31855_handle_t *handle)
close the chip
uint8_t max31855_info(max31855_info_t *info)
get chip's information
uint8_t max31855_read(max31855_handle_t *handle, int16_t *thermocouple_raw, float *thermocouple_temp, int16_t *reference_junction_raw, float *reference_junction_temp)
read the temperature
struct max31855_info_s max31855_info_t
max31855 information structure definition
struct max31855_handle_s max31855_handle_t
max31855 handle structure definition
uint8_t max31855_init(max31855_handle_t *handle)
initialize the chip
uint8_t max31855_interface_spi_read_cmd(uint8_t *buf, uint16_t len)
interface spi bus read command
uint8_t max31855_interface_spi_deinit(void)
interface spi bus deinit
void max31855_interface_debug_print(const char *const fmt,...)
interface print format data
uint8_t max31855_interface_spi_init(void)
interface spi bus init
void max31855_interface_delay_ms(uint32_t ms)
interface delay ms
#define DRIVER_MAX31855_LINK_SPI_DEINIT(HANDLE, FUC)
link spi_deinit function
#define DRIVER_MAX31855_LINK_SPI_READ_COMMAND(HANDLE, FUC)
link spi_read_cmd function
#define DRIVER_MAX31855_LINK_INIT(HANDLE, STRUCTURE)
initialize max31855_handle_t structure
#define DRIVER_MAX31855_LINK_SPI_INIT(HANDLE, FUC)
link spi_init function
#define DRIVER_MAX31855_LINK_DELAY_MS(HANDLE, FUC)
link delay_ms function
#define DRIVER_MAX31855_LINK_DEBUG_PRINT(HANDLE, FUC)
link debug_print function
uint8_t max31855_read_test(uint32_t times)
read test
float supply_voltage_max_v
char manufacturer_name[32]
float supply_voltage_min_v