|
int | ltc2983_init (struct ltc2983_desc **device, struct ltc2983_init_param *init_param) |
| Device and comm init function. More...
|
|
int | ltc2983_remove (struct ltc2983_desc *device) |
| Remove resources allocated by the init function. More...
|
|
int | ltc2983_reg_read (struct ltc2983_desc *device, uint16_t reg_addr, uint8_t *val) |
| Read raw register value. More...
|
|
int | ltc2983_reg_write (struct ltc2983_desc *device, uint16_t reg_addr, uint8_t val) |
| Write raw register value. More...
|
|
int | ltc2983_reg_update_bits (struct ltc2983_desc *device, uint16_t reg_addr, uint8_t mask, uint8_t val) |
| Update register value. More...
|
|
int | ltc2983_setup (struct ltc2983_desc *device) |
| Device setup. More...
|
|
int | ltc2983_chan_read (struct ltc2983_desc *device, const int chan, int *val) |
| Read channel data / temperature. More...
|
|
int | ltc2983_chan_read_raw (struct ltc2983_desc *device, const int chan, uint32_t *val) |
| Read raw channel data / temperature. More...
|
|
int | ltc2983_chan_read_scale (struct ltc2983_desc *device, const int chan, uint32_t *val, uint32_t *val2) |
| Set scale of raw channel data / temperature. More...
|
|
int | ltc2983_thermocouple_assign_chan (struct ltc2983_desc *device, const struct ltc2983_sensor *sensor) |
| Channel assignment for thermocouple sensors. More...
|
|
int | ltc2983_rtd_assign_chan (struct ltc2983_desc *device, const struct ltc2983_sensor *sensor) |
| Channel assignment for RTD sensors. More...
|
|
int | ltc2983_thermistor_assign_chan (struct ltc2983_desc *device, const struct ltc2983_sensor *sensor) |
| Channel assignment for thermistor sensors. More...
|
|
int | ltc2983_diode_assign_chan (struct ltc2983_desc *device, const struct ltc2983_sensor *sensor) |
| Channel assignment for diode sensors. More...
|
|
int | ltc2983_r_sense_assign_chan (struct ltc2983_desc *device, const struct ltc2983_sensor *sensor) |
| Channel assignment for rsense. More...
|
|
int | ltc2983_adc_assign_chan (struct ltc2983_desc *device, const struct ltc2983_sensor *sensor) |
| Channel assignment for direct ADC. More...
|
|
int | ltc2983_temp_assign_chan (struct ltc2983_desc *device, const struct ltc2983_sensor *sensor) |
|
int | ltc2983_thermocouple_fault_handler (const uint32_t result) |
| Fault handling of thermocouple sensors. More...
|
|
int | ltc2983_common_fault_handler (const uint32_t result) |
| Fault handling of sensors other than thermocouple. More...
|
|
Implementation of LTC2983 Driver.
- Author
- John Erasmus Mari Geronimo (johne.nosp@m.rasm.nosp@m.usmar.nosp@m.i.ge.nosp@m.ronim.nosp@m.o@an.nosp@m.alog..nosp@m.com)
Copyright 2024(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.