|
| int | ltc3220_init (struct ltc3220_dev **device, struct ltc3220_init_param init_param) |
| | Initializes the LTC3220 device structure.
|
| |
| int | ltc3220_remove (struct ltc3220_dev *device) |
| | Deallocates the resources for the device structure.
|
| |
| int | ltc3220_reset (struct ltc3220_dev *device) |
| | Resets the device using the RST pin.
|
| |
| int | ltc3220_reg_write (struct ltc3220_dev *device, uint8_t reg_addr, uint8_t reg_data) |
| | Writes to the selected register on the device.
|
| |
| int | ltc3220_set_uled_mode (struct ltc3220_dev *device, uint8_t uled_number, enum ltc3220_uled_mode mode) |
| | Sets the selected ULED register's operating mode.
|
| |
| int | ltc3220_set_uled_current (struct ltc3220_dev *device, uint8_t uled_number, uint8_t current_level) |
| | Sets the selected ULED register's current strength.
|
| |
| int | ltc3220_update_reg_uled (struct ltc3220_dev *device, uint8_t uled_number, enum ltc3220_uled_mode mode, uint8_t current_level) |
| | Updates the configuration set on the ULED based on the device's config.
|
| |
| int | ltc3220_set_blink_fast (struct ltc3220_dev *device, bool is_fast_on) |
| | Sets the configuration for blinking mode of ULEDs.
|
| |
| int | ltc3220_set_blink_long (struct ltc3220_dev *device, bool is_long_period) |
| | Sets the configuration for blinking mode of ULEDs.
|
| |
| int | ltc3220_set_grad_increasing (struct ltc3220_dev *device, bool is_increasing) |
| | Sets the configuration for the device's direction of gradation.
|
| |
| int | ltc3220_set_grad_speed (struct ltc3220_dev *device, uint8_t speed) |
| | Sets the configuration of the device's speed of gradation.
|
| |
| int | ltc3220_update_reg_blink_grad (struct ltc3220_dev *device, bool is_blink_fast, bool is_blink_long, bool is_grad_inc, uint8_t grad_speed) |
| | Updates the configuration set on the device's Blink/Gradation based on the config.
|
| |
| int | ltc3220_set_quick_write (struct ltc3220_dev *device, bool is_quick_write) |
| | Sets the configuration to perform a quick write to the device.
|
| |
| int | ltc3220_set_cpo_1x (struct ltc3220_dev *device, bool is_force_cpo_1x) |
| | Sets the device's charge pump to output 1x of operating voltage.
|
| |
| int | ltc3220_set_cpo_1p5x (struct ltc3220_dev *device, bool is_force_cpo_1p5x) |
| | Sets the device's charge pump to output 1.5x of operating voltage.
|
| |
| int | ltc3220_set_cpo_2x (struct ltc3220_dev *device, bool is_force_cpo_2x) |
| | Sets the device's charge pump to output 2x of operating voltage.
|
| |
| int | ltc3220_set_shutdown (struct ltc3220_dev *device, bool is_shutdown) |
| | Sets the device to shutdown mode, while retaining the register configurations.
|
| |
| int | ltc3220_update_reg_command (struct ltc3220_dev *device, bool is_shutdown, bool is_force_cpo_2x, bool is_force_cpo_1p5x, bool is_quick_write) |
| | Updates the configuration set on the.
|
| |
Implementation of LTC3220 Driver.
- Author
- Jan Carlo Roleda (Janca.nosp@m.rlo..nosp@m.roled.nosp@m.a@an.nosp@m.alog..nosp@m.com)
Copyright 2025(c) Analog Devices, Inc.
All rights reserved.
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.
- The use of this software may or may not infringe the patent rights of one or more patent holders. This license does not release you from the requirement that you obtain separate licenses from these patent holders to use this software.
- Use of the software either in source or binary form, must be run on or directly connected to an Analog Devices Inc. component.
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, 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.