Source file for the LTC7841 Driver. More...
#include "ltc7841.h"
Functions | |
int | ltc7841_remove (struct ltc7841_desc *desc) |
Free the device descriptor. | |
int | ltc7841_init (struct ltc7841_desc **device, struct ltc7841_init_param *init_param) |
Initialize the device structure. | |
int | ltc7841_reg_read (struct ltc7841_desc *desc, uint8_t cmd, uint8_t *data) |
Read a raw value from a register. | |
int | ltc7841_reg_write (struct ltc7841_desc *desc, uint8_t cmd, uint16_t value) |
Write a raw value to a register. | |
int | ltc7841_reset (struct ltc7841_desc *desc) |
Perform a reset to the LTC7841. | |
int | ltc7841_change_rail_address (struct ltc7841_desc *desc, uint8_t addr) |
Perform change of rail address of LTC7841. | |
int | ltc7841_turn_off (struct ltc7841_desc *desc) |
Turn off LTC7841. | |
int | ltc7841_turn_on (struct ltc7841_desc *desc) |
Turn on LTC7841. | |
int | ltc7841_operation_margin_low (struct ltc7841_desc *desc) |
Margin Low for LTC7841 Operation. | |
int | ltc7841_operation_margin_high (struct ltc7841_desc *desc) |
Margin High for LTC7841 Operation. | |
int | ltc7841_change_to_nominal_slew_rate (struct ltc7841_desc *desc) |
Change to Nominal Slew Rate for LTC7841. | |
int | ltc7841_change_to_slow_slew_rate (struct ltc7841_desc *desc) |
Change to Slow Slew Rate for LTC7841. | |
int | ltc7841_change_to_fast_slew_rate (struct ltc7841_desc *desc) |
Change to Fast Slew Rate for LTC7841. | |
int | ltc7841_change_to_internal_die_temperature (struct ltc7841_desc *desc) |
Change to Internal Die Temeperature Reading for LTC7841. | |
int | ltc7841_change_to_tsns_pin_voltage (struct ltc7841_desc *desc) |
Change to TSNS PIN VOLTAGE for LTC7841. | |
int | ltc7841_change_vout_command (struct ltc7841_desc *desc, uint16_t vout_level) |
Change Vout command. | |
int | ltc7841_change_margin_low_command (struct ltc7841_desc *desc, uint16_t vout_level) |
Change margin low command. | |
int | ltc7841_change_margin_high_command (struct ltc7841_desc *desc, uint16_t vout_level) |
Change margin high command. | |
int | ltc7841_mfr_clear_peaks (struct ltc7841_desc *desc) |
This clears the MFR peak data values. | |
int | ltc7841_clear_status_word_bits (struct ltc7841_desc *desc) |
This clears the STATUS_WORD BITS that are clearable. | |
Variables | |
const uint8_t | ltc7841_write_only_registers [WRITE_ONLY_REGISTERS_NUMBER] |
Source file for the LTC7841 Driver.
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:
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.
int ltc7841_change_margin_high_command | ( | struct ltc7841_desc * | desc, |
uint16_t | vout_level ) |
Change margin high command.
desc | - The device structure. |
vout_level | - value is from 0 to 0x1FF |
int ltc7841_change_margin_low_command | ( | struct ltc7841_desc * | desc, |
uint16_t | vout_level ) |
Change margin low command.
desc | - The device structure. |
vout_level | - value is from 0 to 0x1FF |
int ltc7841_change_rail_address | ( | struct ltc7841_desc * | desc, |
uint8_t | addr ) |
Perform change of rail address of LTC7841.
desc | - The device structure. |
addr | - 7 bit address |
int ltc7841_change_to_fast_slew_rate | ( | struct ltc7841_desc * | desc | ) |
Change to Fast Slew Rate for LTC7841.
desc | - The device structure. |
int ltc7841_change_to_internal_die_temperature | ( | struct ltc7841_desc * | desc | ) |
Change to Internal Die Temeperature Reading for LTC7841.
desc | - The device structure. |
int ltc7841_change_to_nominal_slew_rate | ( | struct ltc7841_desc * | desc | ) |
Change to Nominal Slew Rate for LTC7841.
desc | - The device structure. |
int ltc7841_change_to_slow_slew_rate | ( | struct ltc7841_desc * | desc | ) |
Change to Slow Slew Rate for LTC7841.
desc | - The device structure. |
int ltc7841_change_to_tsns_pin_voltage | ( | struct ltc7841_desc * | desc | ) |
Change to TSNS PIN VOLTAGE for LTC7841.
desc | - The device structure. |
int ltc7841_change_vout_command | ( | struct ltc7841_desc * | desc, |
uint16_t | vout_level ) |
Change Vout command.
desc | - The device structure. |
vout_level | - value is from 0 to 0x1FF |
int ltc7841_clear_status_word_bits | ( | struct ltc7841_desc * | desc | ) |
This clears the STATUS_WORD BITS that are clearable.
desc | - The device structure. |
int ltc7841_init | ( | struct ltc7841_desc ** | device, |
struct ltc7841_init_param * | init_param ) |
Initialize the device structure.
device | - The device structure to be initialized. |
init_param | - Initialization parameter for the device descriptor. |
int ltc7841_mfr_clear_peaks | ( | struct ltc7841_desc * | desc | ) |
This clears the MFR peak data values.
desc | - The device structure. |
int ltc7841_operation_margin_high | ( | struct ltc7841_desc * | desc | ) |
Margin High for LTC7841 Operation.
desc | - The device structure. |
int ltc7841_operation_margin_low | ( | struct ltc7841_desc * | desc | ) |
Margin Low for LTC7841 Operation.
desc | - The device structure. |
int ltc7841_reg_read | ( | struct ltc7841_desc * | desc, |
uint8_t | cmd, | ||
uint8_t * | data ) |
Read a raw value from a register.
desc | - The device structure. |
cmd | - PMBus command |
data | - Address of the byte read |
int ltc7841_reg_write | ( | struct ltc7841_desc * | desc, |
uint8_t | cmd, | ||
uint16_t | value ) |
Write a raw value to a register.
desc | - The device structure. |
cmd | - PMBus command |
value | - Byte to be written |
int ltc7841_remove | ( | struct ltc7841_desc * | desc | ) |
Free the device descriptor.
desc | - The device structure. |
int ltc7841_reset | ( | struct ltc7841_desc * | desc | ) |
Perform a reset to the LTC7841.
desc | - The device structure. |
int ltc7841_turn_off | ( | struct ltc7841_desc * | desc | ) |
Turn off LTC7841.
desc | - The device structure. |
int ltc7841_turn_on | ( | struct ltc7841_desc * | desc | ) |
Turn on LTC7841.
desc | - The device structure. |
const uint8_t ltc7841_write_only_registers[WRITE_ONLY_REGISTERS_NUMBER] |