56 uint16_t threshold_in;
57 uint16_t threshold_out;
259 resistor_in = (float)(rand()%65536)/100.0f;
395 threshold_in = rand() % 32768;
417 threshold_in = rand() % 32768;
driver max31865 register test header file
uint8_t max31865_set_low_fault_threshold(max31865_handle_t *handle, uint16_t threshold)
set the low fault threshold
uint8_t max31865_get_wire(max31865_handle_t *handle, max31865_wire_t *wire)
get the pt resistor wire
max31865_bool_t
max31865 bool enumeration definition
uint8_t max31865_set_vbias(max31865_handle_t *handle, max31865_bool_t enable)
set the chip vbias
uint8_t max31865_set_wire(max31865_handle_t *handle, max31865_wire_t wire)
set the pt resistor wire
uint8_t max31865_get_reference_resistor(max31865_handle_t *handle, float *value)
get the reference resistor
struct max31865_info_s max31865_info_t
max31865 information structure definition
max31865_resistor_t
max31865 resistor type enumeration definition
uint8_t max31865_init(max31865_handle_t *handle)
initialize the chip
uint8_t max31865_set_resistor(max31865_handle_t *handle, max31865_resistor_t resistor)
set the pt resistor
max31865_wire_t
max31865 wire type enumeration definition
uint8_t max31865_get_resistor(max31865_handle_t *handle, max31865_resistor_t *resistor)
get the pt resistor
uint8_t max31865_set_reference_resistor(max31865_handle_t *handle, float value)
set the reference resistor
uint8_t max31865_set_fault_detection_cycle_control(max31865_handle_t *handle, max31865_fault_detection_cycle_control_t control)
set the fault detection cycle control
uint8_t max31865_set_filter_select(max31865_handle_t *handle, max31865_filter_select_t filter)
set the filter type
uint8_t max31865_get_filter_select(max31865_handle_t *handle, max31865_filter_select_t *filter)
get the filter type
max31865_fault_detection_cycle_control_status_t
max31865 fault detection cycle control status enumeration definition
uint8_t max31865_get_low_fault_threshold(max31865_handle_t *handle, uint16_t *threshold)
get the low fault threshold
uint8_t max31865_get_fault_detection_cycle_control(max31865_handle_t *handle, max31865_fault_detection_cycle_control_status_t *status)
get the fault detection cycle control
uint8_t max31865_clear_fault_status(max31865_handle_t *handle)
clear all fault status
uint8_t max31865_get_vbias(max31865_handle_t *handle, max31865_bool_t *enable)
get the chip vbias
struct max31865_handle_s max31865_handle_t
max31865 handle structure definition
uint8_t max31865_info(max31865_info_t *info)
get chip's information
uint8_t max31865_set_high_fault_threshold(max31865_handle_t *handle, uint16_t threshold)
set the high fault threshold
uint8_t max31865_get_high_fault_threshold(max31865_handle_t *handle, uint16_t *threshold)
get the high fault threshold
max31865_filter_select_t
max31865 filter select enumeration definition
uint8_t max31865_deinit(max31865_handle_t *handle)
close the chip
@ MAX31865_RESISTOR_1000PT
@ MAX31865_RESISTOR_100PT
@ MAX31865_FAULT_DETECTION_CYCLE_CONTROL_MANUAL_DELAY_CYCLE_1
@ MAX31865_FAULT_DETECTION_CYCLE_CONTROL_NO_ACTION
@ MAX31865_FAULT_DETECTION_CYCLE_CONTROL_MANUAL_DELAY_CYCLE_2
@ MAX31865_FAULT_DETECTION_CYCLE_CONTROL_AUTOMATIC_DELAY
@ MAX31865_FILTER_SELECT_60HZ
@ MAX31865_FILTER_SELECT_50HZ
uint8_t max31865_interface_spi_init(void)
interface spi bus init
void max31865_interface_delay_ms(uint32_t ms)
interface delay ms
uint8_t max31865_interface_spi_write(uint8_t reg, uint8_t *buf, uint16_t len)
interface spi bus write
uint8_t max31865_interface_spi_read(uint8_t reg, uint8_t *buf, uint16_t len)
interface spi bus read
uint8_t max31865_interface_spi_deinit(void)
interface spi bus deinit
void max31865_interface_debug_print(const char *const fmt,...)
interface print format data
#define DRIVER_MAX31865_LINK_SPI_WRITE(HANDLE, FUC)
link spi_write function
#define DRIVER_MAX31865_LINK_INIT(HANDLE, STRUCTURE)
initialize max31865_handle_t structure
#define DRIVER_MAX31865_LINK_DELAY_MS(HANDLE, FUC)
link delay_ms function
#define DRIVER_MAX31865_LINK_SPI_READ(HANDLE, FUC)
link spi_read function
#define DRIVER_MAX31865_LINK_SPI_DEINIT(HANDLE, FUC)
link spi_deinit function
#define DRIVER_MAX31865_LINK_DEBUG_PRINT(HANDLE, FUC)
link debug_print function
#define DRIVER_MAX31865_LINK_SPI_INIT(HANDLE, FUC)
link spi_init function
uint8_t max31865_register_test(void)
register test
float supply_voltage_max_v
char manufacturer_name[32]
float supply_voltage_min_v