|
int32_t | ad7091r5_i2c_reg_read (struct ad7091r5_dev *dev, uint8_t reg_addr, uint16_t *reg_data) |
|
int32_t | ad7091r5_i2c_reg_write (struct ad7091r5_dev *dev, uint8_t reg_addr, uint16_t reg_data) |
|
int32_t | ad7091r5_i2c_read_mask (struct ad7091r5_dev *dev, uint8_t reg_addr, uint8_t mask, uint16_t *data) |
|
int32_t | ad7091r5_i2c_write_mask (struct ad7091r5_dev *dev, uint8_t reg_addr, uint16_t mask, uint16_t data) |
|
int32_t | ad7091r5_sleep_mode (struct ad7091r5_dev *dev, enum ad7091r5_sleep_mode mode) |
|
int32_t | ad7091r5_set_port (struct ad7091r5_dev *dev, enum ad7091r5_port port, bool value) |
|
int32_t | ad7091r5_set_gpo0_mode (struct ad7091r5_dev *dev, enum ad7091r5_gpo0_mode mode, bool is_cmos) |
|
int32_t | ad7091r5_set_cycle_timer (struct ad7091r5_dev *dev, enum ad7091r5_cycle_timer timer) |
|
int32_t | ad7091r5_get_alert (struct ad7091r5_dev *dev, uint8_t channel, enum ad7091r5_alert_type *alert) |
|
int32_t | ad7091r5_set_limit (struct ad7091r5_dev *dev, enum ad7091r5_limit limit, uint8_t channel, uint16_t value) |
|
int32_t | ad7091r5_get_limit (struct ad7091r5_dev *dev, enum ad7091r5_limit limit, uint8_t channel, uint16_t *value) |
|
int32_t | ad7091r5_set_mode (struct ad7091r5_dev *dev, enum ad7091r5_mode mode) |
|
int32_t | ad7091r5_set_channel (struct ad7091r5_dev *dev, uint8_t channel) |
|
int32_t | ad7091r5_reset (struct ad7091r5_dev *dev, bool is_software) |
| Initialize GPIO driver handlers for the GPIOs in the system. ad7091r5_init() helper function. More...
|
|
int32_t | ad7091r5_read_one (struct ad7091r5_dev *dev, uint8_t channel, uint16_t *read_val) |
|
int32_t | ad7091r5_init (struct ad7091r5_dev **device, struct ad7091r5_init_param *init_param) |
|
int32_t | ad7091r5_remove (struct ad7091r5_dev *dev) |
| Free the memory allocated by ad7091r5_init(). More...
|
|
Implementation of ad7091r5 Driver.
- Author
- Cristian Pop (crist.nosp@m.ian..nosp@m.pop@a.nosp@m.nalo.nosp@m.g.com)
Copyright 2020(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.