LibDriver LM75B
Loading...
Searching...
No Matches
lm75b interrupt driver function

lm75b interrupt driver modules More...

Collaboration diagram for lm75b interrupt driver function:

Functions

uint8_t lm75b_set_fault_queue (lm75b_handle_t *handle, lm75b_fault_queue_t fault_queue)
 set the chip fault queue
uint8_t lm75b_get_fault_queue (lm75b_handle_t *handle, lm75b_fault_queue_t *fault_queue)
 get the chip fault queue
uint8_t lm75b_hysteresis_convert_to_register (lm75b_handle_t *handle, float c, uint16_t *reg)
 convert the hysteresis value to the register data
uint8_t lm75b_hysteresis_convert_to_data (lm75b_handle_t *handle, uint16_t reg, float *c)
 convert the register raw data to the hysteresis value
uint8_t lm75b_set_hysteresis (lm75b_handle_t *handle, uint16_t hysteresis)
 set the hysteresis value
uint8_t lm75b_get_hysteresis (lm75b_handle_t *handle, uint16_t *hysteresis)
 get the hysteresis value
uint8_t lm75b_over_temperature_threshold_convert_to_register (lm75b_handle_t *handle, float c, uint16_t *reg)
 convert the over temperature threshold to the register data
uint8_t lm75b_over_temperature_threshold_convert_to_data (lm75b_handle_t *handle, uint16_t reg, float *c)
 convert the register raw data to the over temperature threshold
uint8_t lm75b_set_over_temperature_threshold (lm75b_handle_t *handle, uint16_t threshold)
 set the over temperature threshold
uint8_t lm75b_get_over_temperature_threshold (lm75b_handle_t *handle, uint16_t *threshold)
 get the over temperature threshold
uint8_t lm75b_set_os_polarity (lm75b_handle_t *handle, lm75b_os_polarity_t polarity)
 set the chip os polarity
uint8_t lm75b_get_os_polarity (lm75b_handle_t *handle, lm75b_os_polarity_t *polarity)
 get the chip os polarity
uint8_t lm75b_set_interrupt_mode (lm75b_handle_t *handle, lm75b_os_operation_mode_t mode)
 set the chip interrupt mode
uint8_t lm75b_get_interrupt_mode (lm75b_handle_t *handle, lm75b_os_operation_mode_t *mode)
 get the chip interrupt mode

Detailed Description

lm75b interrupt driver modules

Function Documentation

◆ lm75b_get_fault_queue()

uint8_t lm75b_get_fault_queue ( lm75b_handle_t * handle,
lm75b_fault_queue_t * fault_queue )

get the chip fault queue

Parameters
[in]*handlepointer to an lm75b handle structure
[out]*fault_queuepointer to a chip fault queue buffer
Returns
status code
  • 0 success
  • 1 get fault queue failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 447 of file driver_lm75b.c.

◆ lm75b_get_hysteresis()

uint8_t lm75b_get_hysteresis ( lm75b_handle_t * handle,
uint16_t * hysteresis )

get the hysteresis value

Parameters
[in]*handlepointer to an lm75b handle structure
[out]*hysteresispointer to a hysteresis value buffer
Returns
status code
  • 0 success
  • 1 get hysteresis failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 221 of file driver_lm75b.c.

◆ lm75b_get_interrupt_mode()

uint8_t lm75b_get_interrupt_mode ( lm75b_handle_t * handle,
lm75b_os_operation_mode_t * mode )

get the chip interrupt mode

Parameters
[in]*handlepointer to an lm75b handle structure
[out]*modepointer to an interrupt mode buffer
Returns
status code
  • 0 success
  • 1 get interrupt mode failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 611 of file driver_lm75b.c.

◆ lm75b_get_os_polarity()

uint8_t lm75b_get_os_polarity ( lm75b_handle_t * handle,
lm75b_os_polarity_t * polarity )

get the chip os polarity

Parameters
[in]*handlepointer to an lm75b handle structure
[out]*polaritypointer to an os polarity buffer
Returns
status code
  • 0 success
  • 1 get os polarity failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 529 of file driver_lm75b.c.

◆ lm75b_get_over_temperature_threshold()

uint8_t lm75b_get_over_temperature_threshold ( lm75b_handle_t * handle,
uint16_t * threshold )

get the over temperature threshold

Parameters
[in]*handlepointer to an lm75b handle structure
[out]*thresholdpointer to an over temperature threshold buffer
Returns
status code
  • 0 success
  • 1 get over temperature threshold failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 365 of file driver_lm75b.c.

◆ lm75b_hysteresis_convert_to_data()

uint8_t lm75b_hysteresis_convert_to_data ( lm75b_handle_t * handle,
uint16_t reg,
float * c )

convert the register raw data to the hysteresis value

Parameters
[in]*handlepointer to an lm75b handle structure
[in]regregister raw data
[out]*cpointer to a converted hysteresis value buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 148 of file driver_lm75b.c.

◆ lm75b_hysteresis_convert_to_register()

uint8_t lm75b_hysteresis_convert_to_register ( lm75b_handle_t * handle,
float c,
uint16_t * reg )

convert the hysteresis value to the register data

Parameters
[in]*handlepointer to an lm75b handle structure
[in]chysteresis value
[out]*regpointer to a register data buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 114 of file driver_lm75b.c.

◆ lm75b_over_temperature_threshold_convert_to_data()

uint8_t lm75b_over_temperature_threshold_convert_to_data ( lm75b_handle_t * handle,
uint16_t reg,
float * c )

convert the register raw data to the over temperature threshold

Parameters
[in]*handlepointer to an lm75b handle structure
[in]regregister raw data
[out]*cpointer to a converted over temperature threshold buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 292 of file driver_lm75b.c.

◆ lm75b_over_temperature_threshold_convert_to_register()

uint8_t lm75b_over_temperature_threshold_convert_to_register ( lm75b_handle_t * handle,
float c,
uint16_t * reg )

convert the over temperature threshold to the register data

Parameters
[in]*handlepointer to an lm75b handle structure
[in]cover temperature threshold
[out]*regpointer to a register data buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 258 of file driver_lm75b.c.

◆ lm75b_set_fault_queue()

uint8_t lm75b_set_fault_queue ( lm75b_handle_t * handle,
lm75b_fault_queue_t fault_queue )

set the chip fault queue

Parameters
[in]*handlepointer to an lm75b handle structure
[in]fault_queuechip fault queue
Returns
status code
  • 0 success
  • 1 set fault queue failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 402 of file driver_lm75b.c.

◆ lm75b_set_hysteresis()

uint8_t lm75b_set_hysteresis ( lm75b_handle_t * handle,
uint16_t hysteresis )

set the hysteresis value

Parameters
[in]*handlepointer to an lm75b handle structure
[in]hysteresishysteresis value
Returns
status code
  • 0 success
  • 1 set hysteresis failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 183 of file driver_lm75b.c.

◆ lm75b_set_interrupt_mode()

uint8_t lm75b_set_interrupt_mode ( lm75b_handle_t * handle,
lm75b_os_operation_mode_t mode )

set the chip interrupt mode

Parameters
[in]*handlepointer to an lm75b handle structure
[in]modeinterrupt mode
Returns
status code
  • 0 success
  • 1 set interrupt mode failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 566 of file driver_lm75b.c.

◆ lm75b_set_os_polarity()

uint8_t lm75b_set_os_polarity ( lm75b_handle_t * handle,
lm75b_os_polarity_t polarity )

set the chip os polarity

Parameters
[in]*handlepointer to an lm75b handle structure
[in]polarityos polarity
Returns
status code
  • 0 success
  • 1 set os polarity failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 484 of file driver_lm75b.c.

◆ lm75b_set_over_temperature_threshold()

uint8_t lm75b_set_over_temperature_threshold ( lm75b_handle_t * handle,
uint16_t threshold )

set the over temperature threshold

Parameters
[in]*handlepointer to an lm75b handle structure
[in]thresholdover temperature threshold
Returns
status code
  • 0 success
  • 1 set over temperature threshold failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 327 of file driver_lm75b.c.