|
int | max9611_addr_gen (struct max9611_init_param *device_ip, enum max9611_addr_lvls a0, enum max9611_addr_lvls a1) |
| Generates slave address based on A1 and A0 pin values. More...
|
|
int | max9611_init (struct max9611_dev **device, struct max9611_init_param init_param) |
| Initializes the communication peripheral and checks if the device is present. More...
|
|
int | max9611_remove (struct max9611_dev *dev) |
| Free the resources allocated by max538x_init(). More...
|
|
int | max9611_read (struct max9611_dev *dev, uint8_t addr, uint8_t bytes, uint8_t *read_data) |
| Reads data from device register (I2C) More...
|
|
int | max9611_write (struct max9611_dev *dev, uint8_t addr, uint8_t bytes, uint8_t *write_data) |
| Writes data to device register (I2C) More...
|
|
int | max9611_reg_update (struct max9611_dev *dev, uint8_t addr, int update_mask, int update_val) |
| Update selected I2C register contents. More...
|
|
int | max9611_set_mode (struct max9611_dev *dev, enum max9611_mode_conf mode) |
| Configures MAX9611 operating mode. More...
|
|
int | max9611_get_mode (struct max9611_dev *dev, enum max9611_mode_conf *mode) |
| Get the MAX9611 operating mode. More...
|
|
int | max9611_set_mux (struct max9611_dev *dev, enum max9611_mux_conf mux) |
| Configures the internal MUX settings. More...
|
|
int | max9611_get_mux (struct max9611_dev *dev, enum max9611_mux_conf *mux) |
| Get the internal MUX settings. More...
|
|
int | max9611_shutdown (struct max9611_dev *dev, bool is_shdn) |
| Device shutdown or power up. More...
|
|
int | max9611_set_lr (struct max9611_dev *dev, bool is_normal) |
| Configure LR bit operation. More...
|
|
int | max9611_get_lr (struct max9611_dev *dev, bool *lr) |
| Get LR bit value. More...
|
|
int | max9611_set_delay (struct max9611_dev *dev, enum max9611_delay_time dtime) |
| Configures MAX9611 delay time. More...
|
|
int | max9611_get_delay (struct max9611_dev *dev, enum max9611_delay_time *dtime) |
| Get MAX9611 configured delay time. More...
|
|
int | max9611_set_retry (struct max9611_dev *dev, enum max9611_retry_time rtime) |
| Configures MAX9611 retry time. More...
|
|
int | max9611_get_retry (struct max9611_dev *dev, enum max9611_retry_time *rtime) |
| Get MAX9611 configured retry time. More...
|
|
int | max9611_get_raw (struct max9611_dev *dev, uint16_t *raw) |
| Receive data from ADC (single value only). More...
|
|
Implementation of max9611 Family Driver.
- Author
- MSosa (marcp.nosp@m.aolo.nosp@m..sosa.nosp@m.@ana.nosp@m.log.c.nosp@m.om)
-
JSanbuen (jose..nosp@m.sanb.nosp@m.uenav.nosp@m.entu.nosp@m.ra@an.nosp@m.alog.nosp@m..com)
Copyright 2023(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.