|
| int | lm75_init (struct lm75_dev **devpp, struct lm75_init_param *ip) |
| | Initialize LM75 device driver.
|
| |
| int | lm75_remove (struct lm75_dev *dev) |
| | Uninitialize LM75 device driver.
|
| |
| int | lm75_read_temperature (struct lm75_dev *dev, enum lm75_temperature_type whence, uint16_t *val) |
| | Read temperature data.
|
| |
| int | lm75_write_temperature (struct lm75_dev *dev, enum lm75_temperature_type whence, uint16_t val) |
| | Write temperature data.
|
| |
| int | lm75_raw_to_millicelsius (const uint16_t raw_temp) |
| | Convert a raw sensor data to milliCelsius value.
|
| |
| uint16_t | lm75_millicelsius_to_raw (const int millicelsius) |
| | Convert a milliCelsius value to raw sensor data that can be written to an LM75 device.
|
| |
| int | lm75_is_shutdown (struct lm75_dev *dev, bool *flag) |
| | Read if LM75 is in shutdown or normal operation.
|
| |
| int | lm75_shutdown (struct lm75_dev *dev, bool flag) |
| | Put the LM75 into normal or shutdown operation.
|
| |
| int | lm75_read_mode (struct lm75_dev *dev, enum lm75_mode *mode) |
| | Read the event mode of LM75, whether interrupt based or comparator.
|
| |
| int | lm75_write_mode (struct lm75_dev *dev, enum lm75_mode mode) |
| | Change the event mode of LM75, whether interrupt based or comparator.
|
| |
| int | lm75_read_os_polarity (struct lm75_dev *dev, enum lm75_os_polarity *pol) |
| | Read the over temperature line polarity setting.
|
| |
| int | lm75_write_os_polarity (struct lm75_dev *dev, enum lm75_os_polarity pol) |
| | Write the polarity of the over temperature line.
|
| |
| int | lm75_read_fault_queue (struct lm75_dev *dev, enum lm75_fault_queue *fq) |
| | Read fault count.
|
| |
| int | lm75_write_fault_queue (struct lm75_dev *dev, enum lm75_fault_queue fq) |
| | Write fault count.
|
| |
Source file of LM75 Driver.
- Author
- Niel Acuna (niel..nosp@m.acun.nosp@m.a@ana.nosp@m.log..nosp@m.com)
Copyright 2025(c) Analog Devices, Inc.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.