100 int8_t threshold_high;
101 int8_t threshold_low;
147 int8_t threshold_high;
148 int8_t threshold_low;
driver ds18b20 alarm header file
uint8_t ds18b20_alarm_convert_to_data(ds18b20_handle_t *handle, int8_t reg, float *temp)
convert the register data to the alarm temperature
uint8_t ds18b20_search_alarm(ds18b20_handle_t *handle, uint8_t(*rom)[8], uint8_t *num)
search the ds18b20 alarm rom
uint8_t ds18b20_scrachpad_get_alarm_threshold(ds18b20_handle_t *handle, int8_t *threshold_high, int8_t *threshold_low)
get the alarm threshold in the scratchpad
uint8_t ds18b20_scratchpad_set_alarm_threshold(ds18b20_handle_t *handle, int8_t threshold_high, int8_t threshold_low)
set the alarm threshold in the scratchpad
uint8_t ds18b20_alarm_convert_to_register(ds18b20_handle_t *handle, float temp, int8_t *reg)
convert the alarm temperature to the register data
uint8_t ds18b20_init(ds18b20_handle_t *handle)
initialize the chip
uint8_t ds18b20_set_rom(ds18b20_handle_t *handle, uint8_t rom[8])
set the handle rom
struct ds18b20_handle_s ds18b20_handle_t
ds18b20 handle structure definition
uint8_t ds18b20_deinit(ds18b20_handle_t *handle)
close the chip
uint8_t ds18b20_set_mode(ds18b20_handle_t *handle, ds18b20_mode_t mode)
set the chip mode
uint8_t ds18b20_alarm_search(uint8_t(*rom)[8], uint8_t *num)
alarm example find
uint8_t ds18b20_alarm_deinit(void)
alarm example deinit
uint8_t ds18b20_alarm_init(void)
alarm example init
uint8_t ds18b20_alarm_set_threshold(uint8_t rom[8], float low, float high)
alarm example set the threshold
uint8_t ds18b20_alarm_get_threshold(uint8_t rom[8], float *low, float *high)
alarm example get the threshold
uint8_t ds18b20_interface_deinit(void)
interface bus deinit
void ds18b20_interface_delay_ms(uint32_t ms)
interface delay ms
uint8_t ds18b20_interface_write(uint8_t value)
interface bus write
uint8_t ds18b20_interface_init(void)
interface bus init
uint8_t ds18b20_interface_read(uint8_t *value)
interface bus read
void ds18b20_interface_debug_print(const char *const fmt,...)
interface print format data
void ds18b20_interface_disable_irq(void)
interface disable the interrupt
void ds18b20_interface_enable_irq(void)
interface enable the interrupt
void ds18b20_interface_delay_us(uint32_t us)
interface delay us
#define DRIVER_DS18B20_LINK_DISABLE_IRQ(HANDLE, FUC)
link disable_irq function
#define DRIVER_DS18B20_LINK_ENABLE_IRQ(HANDLE, FUC)
link enable_irq function
#define DRIVER_DS18B20_LINK_BUS_WRITE(HANDLE, FUC)
link bus_write function
#define DRIVER_DS18B20_LINK_DEBUG_PRINT(HANDLE, FUC)
link debug_print function
#define DRIVER_DS18B20_LINK_BUS_INIT(HANDLE, FUC)
link bus_init function
#define DRIVER_DS18B20_LINK_BUS_READ(HANDLE, FUC)
link bus_read function
#define DRIVER_DS18B20_LINK_DELAY_US(HANDLE, FUC)
link delay_us function
#define DRIVER_DS18B20_LINK_BUS_DEINIT(HANDLE, FUC)
link bus_deinit function
#define DRIVER_DS18B20_LINK_DELAY_MS(HANDLE, FUC)
link delay_ms function
#define DRIVER_DS18B20_LINK_INIT(HANDLE, STRUCTURE)
initialize ds18b20_handle_t structure