no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
adp1055.h File Reference

Header file for the ADP1055 Driver. More...

#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
#include "no_os_gpio.h"
#include "no_os_i2c.h"
#include "no_os_pwm.h"
#include "no_os_util.h"
#include "no_os_units.h"
Include dependency graph for adp1055.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  adp1055_init_param
 Initialization parameter for the ADP1055 device. More...
 
struct  adp1055_desc
 Device descriptor for ADP1055. More...
 

Macros

#define ADP1055_WR_FRAME_SIZE   4
 
#define ADP1055_RD_FRAME_SIZE   5
 
#define ADP1055_SC_FRAME_SIZE   3
 
#define ADP1055_LSB_MASK   NO_OS_GENMASK(7, 0)
 
#define ADP1055_MSB_MASK   NO_OS_GENMASK(15, 8)
 
#define ADP1055_EXTENDED_COMMAND   0xFF
 
#define ADP1055_OPERATION_ON   0x80
 
#define ADP1055_OPERATION_OFF   0x00
 
#define ADP1055_OPERATION_SOFT_OFF   0x40
 
#define ADP1055_EXP_MASK   NO_OS_GENMASK(15, 11)
 
#define ADP1055_MANT_MASK   NO_OS_GENMASK(10, 0)
 
#define ADP1055_VOUT_MODE_MASK   NO_OS_GENMASK(4, 0)
 
#define ADP1055_PWM_TIMING_MASK   NO_OS_GENMASK(15, 4)
 
#define ADP1055_PWM_MODEN_MASK   3
 
#define ADP1055_PWM_SIGN_MASK   2
 
#define ADP1055_OUTA_ON   0x3E
 
#define ADP1055_OUTB_ON   0x3D
 
#define ADP1055_OUTC_ON   0x3B
 
#define ADP1055_OUTD_ON   0x37
 
#define ADP1055_SR1_ON   0x2F
 
#define ADP1055_SR2_ON   0x1F
 
#define ADP1055_PWM_OFF   0x3F
 
#define ADP1055_ON_OFF_DEFAULT_CFG   0x00
 
#define ADP1055_DEFAULT_FREQ_MANT   -4
 
#define ADP1055_DEFAULT_FREQ_EXP   782
 
#define ADP1055_CTRL_PIN_ENABLE   NO_OS_BIT(4)
 
#define ADP1055_VOLT_REF_GO   0x01
 
#define ADP1055_PWM_GO   0x02
 
#define ADP1055_FREQ_GO   0x04
 
#define ADP1055_FILTER_GO   0x08
 
#define ADP1055_VS_BAL_GO   0x10
 
#define ADP1055_VFF_GO   0x20
 
#define ADP1055_SYNC_GO   0x40
 
#define ADP1055_ON_OFF_MASK   NO_OS_GENMASK(7, 6)
 
#define ADP1055_FREQ_PLL_MASK   NO_OS_BIT(6)
 
#define ADP1055_FREQ_JITT_MASK   NO_OS_BIT(1)
 
#define ADP1055_FREQ_RESO_MASK   NO_OS_BIT(0)
 
#define ADP1055_FREQ_JITT_VAL   0x02
 
#define ADP1055_OPERATION   0x01
 
#define ADP1055_ON_OFF_CONFIG   0x02
 
#define ADP1055_CLEAR_FAULTS   0x03
 
#define ADP1055_WRITE_PROTECT   0x10
 
#define ADP1055_RESTORE_DEFAULT_ALL   0x12
 
#define ADP1055_STORE_USER_ALL   0x15
 
#define ADP1055_RESTORE_USER_ALL   0x16
 
#define ADP1055_CAPABILITY   0x19
 
#define ADP1055_SMBALERT_MASK   0x1B
 
#define ADP1055_VOUT_MODE   0x20
 
#define ADP1055_VOUT_COMMAND   0x21
 
#define ADP1055_VOUT_TRIM   0x22
 
#define ADP1055_VOUT_CAL_OFFSET   0x23
 
#define ADP1055_VOUT_MAX   0x24
 
#define ADP1055_VOUT_TRANSITION_RATE   0x27
 
#define ADP1055_VOUT_DROOP   0x28
 
#define ADP1055_VOUT_SCALE_LOOP   0x29
 
#define ADP1055_VOUT_SCALE_MONITOR   0x2A
 
#define ADP1055_FREQUENCY_SWITCH   0x33
 
#define ADP1055_VIN_ON   0x35
 
#define ADP1055_VIN_OFF   0x36
 
#define ADP1055_INTERLEAVE   0x37
 
#define ADP1055_IOUT_CAL_GAIN   0x38
 
#define ADP1055_IOUT_CAL_OFFSET   0x39
 
#define ADP1055_VOUT_OV_FAULT_LIMIT   0x40
 
#define ADP1055_VOUT_OV_FAULT_RESPONSE   0x41
 
#define ADP1055_VOUT_OV_WARN_LIMIT   0x42
 
#define ADP1055_VOUT_UV_WARN_LIMIT   0x43
 
#define ADP1055_VOUT_UV_FAULT_LIMIT   0x44
 
#define ADP1055_VOUT_UV_FAULT_RESPONSE   0x45
 
#define ADP1055_IOUT_OC_FAULT_LIMIT   0x46
 
#define ADP1055_IOUT_OC_FAULT_RES   0x47
 
#define ADP1055_IOUT_OC_LV_FAULT_LIMIT   0x48
 
#define ADP1055_IOUT_OC_LV_FAULT_RESPONSE   0x49
 
#define ADP1055_IOUT_OC_WARN_LIMIT   0x4A
 
#define ADP1055_IOUT_UC_FAULT_LIMIT   0x4B
 
#define ADP1055_IOUT_UC_FAULT_RESPONSE   0x4C
 
#define ADP1055_OT_FAULT_LIMIT   0x4F
 
#define ADP1055_OT_FAULT_RESPONSE   0x50
 
#define ADP1055_OT_WARN_LIMIT   0x51
 
#define ADP1055_VIN_OV_FAULT_LIMIT   0x55
 
#define ADP1055_VIN_OV_FAULT_RESPONSE   0x56
 
#define ADP1055_VIN_UV_FAULT_LIMIT   0x59
 
#define ADP1055_VIN_UV_FAULT_RESPONSE   0x5A
 
#define ADP1055_IIN_OC_FAULT_LIMIT   0x5B
 
#define ADP1055_IIN_OC_FAULT_RESPOSNE   0x5C
 
#define ADP1055_POWER_GOOD_ON   0x5E
 
#define ADP1055_POWER_GOOD_OFF   0x5F
 
#define ADP1055_TON_DELAY   0x60
 
#define ADP1055_TON_RISE   0x61
 
#define ADP1055_TON_MAX_FAULT_LIMIT   0x62
 
#define ADP1055_TON_MAX_FAULT_RESPOSNE   0x63
 
#define ADP1055_TOFF_DELAY   0x64
 
#define ADP1055_TOFF_FALL   0x65
 
#define ADP1055_TOFF_MAX_WARN_LIMIT   0x66
 
#define ADP1055_POUT_OP_FAULT_LIMIT   0x68
 
#define ADP1055_POUT_OP_FAULT_RESPONSE   0x69
 
#define ADP1055_STATUS_BYTE   0x78
 
#define ADP1055_STATUS_WORD   0x79
 
#define ADP1055_STATUS_VOUT   0x7A
 
#define ADP1055_STATUS_IOUT   0x7B
 
#define ADP1055_STATUS_INPUT   0x7C
 
#define ADP1055_STATUS_TEMPERATURE   0x7D
 
#define ADP1055_STATUS_CML   0x7E
 
#define ADP1055_STATUS_OTHER   0x7F
 
#define ADP1055_STATUS_MFR_SPECIFIC   0x80
 
#define ADP1055_READ_VIN   0x88
 
#define ADP1055_READ_IIN   0x89
 
#define ADP1055_READ_VOUT   0x8B
 
#define ADP1055_READ_IOUT   0x8C
 
#define ADP1055_READ_TEMPERATURE_2   0x8E
 
#define ADP1055_READ_TEMPERATURE_3   0x8F
 
#define ADP1055_READ_DUTY_CYCLE   0x94
 
#define ADP1055_READ_FREQUENCY   0x95
 
#define ADP1055_READ_POUT   0x96
 
#define ADP1055_READ_PMBUS_REVISION   0x98
 
#define ADP1055_MFR_ID   0x99
 
#define ADP1055_MFR_MODEL   0x9A
 
#define ADP1055_MFR_REVISION   0x9B
 
#define ADP1055_MFR_LOCATION   0x9C
 
#define ADP1055_MFR_DATE   0x9D
 
#define ADP1055_IC_DEVICE_ID   0xAD
 
#define ADP1055_IC_DEVICE_REV   0xAE
 
#define ADP1055_EEPROM_DATA_00   0xB0
 
#define ADP1055_EEPROM_DATA_01   0xB1
 
#define ADP1055_EEPROM_DATA_02   0xB2
 
#define ADP1055_EEPROM_DATA_03   0xB3
 
#define ADP1055_EEPROM_DATA_04   0xB4
 
#define ADP1055_EEPROM_DATA_05   0xB5
 
#define ADP1055_EEPROM_DATA_06   0xB6
 
#define ADP1055_EEPROM_DATA_07   0xB7
 
#define ADP1055_EEPROM_DATA_08   0xB8
 
#define ADP1055_EEPROM_DATA_09   0xB9
 
#define ADP1055_EEPROM_DATA_10   0xBA
 
#define ADP1055_EEPROM_DATA_11   0xBB
 
#define ADP1055_EEPROM_DATA_12   0xBC
 
#define ADP1055_EEPROM_DATA_13   0xBD
 
#define ADP1055_EEPROM_DATA_14   0xBE
 
#define ADP1055_EEPROM_DATA_15   0xBF
 
#define ADP1055_EEPROM_CRC_CHKSUM   0xD1
 
#define ADP1055_EEPROM_NUM_RD_BYTES   0xD2
 
#define ADP1055_EEPROM_ADDR_OFFSET   0xD3
 
#define ADP1055_EEPROM_PAGE_ERASE   0xD4
 
#define ADP1055_EEPROM_PASSWORD   0xD5
 
#define ADP1055_TRIM_PASSWORD   0xD6
 
#define ADP1055_CHIP_PASSWORD   0xD7
 
#define ADP1055_IIN_SCALE_MONITOR   0xD9
 
#define ADP1055_EEPROM_INFO   0xF1
 
#define ADP1055_READ_BLACKBOX_CURR   0xF2
 
#define ADP1055_READ_BLACKBOX_PREV   0xF3
 
#define ADP1055_CMD_MASK   0xF4
 
#define ADP1055_EXTCMD_MASK   0xF5
 
#define ADP1055_MFR_SPECIFIC_1   0xFA
 
#define ADP1055_MFR_SPECIFIC_2   0xFB
 
#define ADP1055_GO_CMD   0xFE00
 
#define ADP1055_NM_DIGFILT_LF_GAIN_SETTING   0xFE01
 
#define ADP1055_NM_DIGFILT_ZERO_SETTING   0xFE02
 
#define ADP1055_NM_DIGFILT_POLE_SETTING   0xFE03
 
#define ADP1055_NM_DIGFILT_HF_GAIN_SETTING   0xFE04
 
#define ADP1055_LLM_DIGFILT_LF_GAIN_SETTING   0xFE05
 
#define ADP1055_LLM_DIGFILT_ZERO_SETTING   0xFE06
 
#define ADP1055_LLM_DIGFILT_POLE_SETTING   0xFE07
 
#define ADP1055_LLM_DIGFILT_HF_GAIN_SETTING   0xFE08
 
#define ADP1055_SS_DIGFILT_LF_GAIN_SETTING   0xFE09
 
#define ADP1055_SS_DIGFILT_ZERO_SETTING   0xFE0A
 
#define ADP1055_SS_DIGFILT_POLE_SETTING   0xFE0B
 
#define ADP1055_SS_DIGFILT_HF_GAIN_SETTING   0xFE0C
 
#define ADP1055_OUTA_REDGE_SETTING   0xFE0D
 
#define ADP1055_OUTA_FEDGE_SETTING   0xFE0E
 
#define ADP1055_OUTB_REDGE_SETTING   0xFE0F
 
#define ADP1055_OUTB_FEDGE_SETTING   0xFE10
 
#define ADP1055_OUTC_REDGE_SETTING   0xFE11
 
#define ADP1055_OUTC_FEDGE_SETTING   0xFE12
 
#define ADP1055_OUTD_REDGE_SETTING   0xFE13
 
#define ADP1055_OUTD_FEDGE_SETTING   0xFE14
 
#define ADP1055_SR1_REDGE_SETTING   0xFE15
 
#define ADP1055_SR1_FEDGE_SETTING   0xFE16
 
#define ADP1055_SR2_REDGE_SETTING   0xFE17
 
#define ADP1055_SR2_FEDGE_SETTING   0xFE18
 
#define ADP1055_SR1_REDGE_LLM_SETTING   0xFE19
 
#define ADP1055_SR1_FEDGE_LLM_SETTING   0xFE1A
 
#define ADP1055_SR2_REDGE_LLM_SETTING   0xFE1B
 
#define ADP1055_SR2_FEDGE_LLM_SETTING   0xFE1C
 
#define ADP1055_ADT_CONFIG   0xFE1D
 
#define ADP1055_ADT_THRESHOLD   0xFE1E
 
#define ADP1055_OUTA_DEAD_TIME   0xFE1F
 
#define ADP1055_OUTB_DEAD_TIME   0xFE20
 
#define ADP1055_OUTC_DEAD_TIME   0xFE21
 
#define ADP1055_OUTD_DEAD_TIME   0xFE22
 
#define ADP1055_SR1_DEAD_TIME   0xFE23
 
#define ADP1055_SR2_DEAD_TIME   0xFE24
 
#define ADP1055_VSBAL_SETTING   0xFE25
 
#define ADP1055_VSBAL_OUTA_B   0xFE26
 
#define ADP1055_VSBAL_OUTC_D   0xFE27
 
#define ADP1055_VSBAL_SR1_2   0xFE28
 
#define ADP1055_FFWD_SETTING   0xFE29
 
#define ADP1055_ISHARE_SETTING   0xFE2A
 
#define ADP1055_ISHARE_BANDWIDTH   0xFE2B
 
#define ADP1055_IIN_OC_FAST_SETTING   0xFE2C
 
#define ADP1055_IOUT_OC_FAST_SETTING   0xFE2D
 
#define ADP1055_IOUT_UC_FAST_SETTING   0xFE2E
 
#define ADP1055_VOUT_OV_FAST_SETTING   0xFE2F
 
#define ADP1055_DEBOUNCE_SETTING_1   0xFE30
 
#define ADP1055_DEBOUNCE_SETTING_2   0xFE31
 
#define ADP1055_DEBOUNCE_SETTING_3   0xFE32
 
#define ADP1055_DEBOUNCE_SETTING_4   0xFE33
 
#define ADP1055_VOUT_OV_FAST_FAULT_RESPONSE   0xFE34
 
#define ADP1055_IOUT_OC_FAST_FAULT_RESPONSE   0xFE35
 
#define ADP1055_IOUT_UC_FAST_FAULT_RESPONSE   0xFE36
 
#define ADP1055_IIN_OC_FAST_FAULT_RESPONSE   0xFE37
 
#define ADP1055ISHARE_FAULT_RESPONSE   0xFE38
 
#define ADP1055_GPIO1_FAULT_RESPONSE   0xFE39
 
#define ADP1055_GPIO2_FAULT_RESPONSE   0xFE3A
 
#define ADP1055_GPIO3_FAULT_RESPONSE   0xFE3B
 
#define ADP1055_GPIO4_FAULT_RESPONSE   0xFE3C
 
#define ADP1055_PWM_FAULT_MASK   0xFE3D
 
#define ADP1055_DELAY_TIME_UNIT   0xFE3E
 
#define ADP1055_WDT_SETTING   0xFE3F
 
#define ADP1055_GPIO_SETTING   0xFE40
 
#define ADP1055GPIO1_2_KARNAUGH_MAP   0xFE41
 
#define ADP1055_GPIO3_4_KARNAUGH_MAP   0xFE42
 
#define ADP1055_PGOOD_FAULT_DEB   0xFE43
 
#define ADP1055_PGOOD1_FAULT_SELECT   0xFE44
 
#define ADP1055_PGOOD2_FAULT_SELECT   0xFE45
 
#define ADP1055_SOFT_START_BLANKING   0xFE46
 
#define ADP1055_SOFT_STOP_BLANKING   0xFE47
 
#define ADP1055_BLACKBOX_SETTING   0xFE48
 
#define ADP1055_PWM_DISABLE_SETTING   0xFE49
 
#define ADP1055_FILTER_TRANSITION   0xFE4A
 
#define ADP1055_DEEP_LLM_SETTING   0xFE4B
 
#define ADP1055_DEEP_LLM_DISABLE_SETTING   0xFE4C
 
#define ADP1055_OVP_FAULT_CONFIG   0xFE4D
 
#define ADP1055_CS1_SETTING   0xFE4E
 
#define ADP1055_CS2_SETTING   0xFE4F
 
#define ADP1055_PULSE_SKIP_AND_SHUTDOWN   0xFE50
 
#define ADP1055_SOFT_START_SETTING   0xFE51
 
#define ADP1055_SR_DELAY   0xFE52
 
#define ADP1055_MODULATION_LIMIT   0xFE53
 
#define ADP1055_SYNC   0xFE55
 
#define ADP1055_DUTY_BAL_EDGESEL   0xFE56
 
#define ADP1055_DOUBLE_UPD_RATE   0xFE57
 
#define ADP1055_VIN_SCALE_MONITOR   0xFE58
 
#define ADP1055_IIN_CAL_GAIN   0xFE59
 
#define ADP1055_TSNS_SETTING   0xFE5A
 
#define ADP1055_AUTO_GO_CMD   0xFE5B
 
#define ADP1055_DIODE_EMULATION   0xFE5C
 
#define ADP1055_CS2_CONST_CUR_MODE   0xFE5D
 
#define ADP1055_NL_ERR_GAIN_FACTOR   0xFE5E
 
#define ADP1055_SR_SETTING   0xFE5F
 
#define ADP1055_NOMINAL_TEMP_POLE   0xFE60
 
#define ADP1055_LOW_TEMP_POLE   0xFE61
 
#define ADP1055_LOW_TEMP_SETTING   0xFE62
 
#define ADP1055_GPIO3_4_SNUBBER_ON_TIME   0xFE63
 
#define ADP1055_GPIO3_4_SNUBBER_DELAY   0xFE64
 
#define ADP1055_VOUT_DROOP_SETTING   0xFE65
 
#define ADP1055_NL_BURST_MODE   0xFE66
 
#define ADP1055_HF_ADC_CONFIG   0xFE67
 
#define ADP1055_VS_TRIM   0xFE80
 
#define ADP1055_VFF_GAIN_TRIM   0xFE81
 
#define ADP1055_CS1_GAIN_TRIM   0xFE82
 
#define ADP1055_TSNS_EXTFWD_GAIN_TRIM   0xFE86
 
#define ADP1055_TSNS_EXTFWD_OFFSET_TRIM   0xFE87
 
#define ADP1055_TSNS_EXTREV_GAIN_TRIM   0xFE88
 
#define ADP1055_TSNS_EXTREV_OFFSET_TRIM   0xFE89
 
#define ADP1055_FAULT_VOUT   0xFE8C
 
#define ADP1055_FAULT_IOUT   0xFE8D
 
#define ADP1055_FAULT_INPUT   0xFE8E
 
#define ADP1055_FAULT_TEMPERATURE   0xFE8F
 
#define ADP1055_FAULT_CML   0xFE90
 
#define ADP1055_FAULT_OTHER   0xFE91
 
#define ADP1055_FAULT_MFR_SPECIFIC   0xFE92
 
#define ADP1055_FAULT_UNKNOWN   0xFE93
 
#define ADP1055_STATUS_UNKNOWN   0xFE94
 
#define ADP1055_FIRST_FAULT_ID   0xFE95
 
#define ADP1055_VFF_VALUE   0xFE96
 
#define ADP1055_VS_VALUE   0xFE97
 
#define ADP1055_CS1_VALUE   0xFE98
 
#define ADP1055_CS2_VALUE   0xFE99
 
#define ADP1055_POUT_VALUE   0xFE9A
 
#define ADP1055_TSNS_EXTFWD_VALUE   0xFE9C
 
#define ADP1055_TSNS_EXTREV_VALUE   0xFE9D
 
#define ADP1055_MODULATION_VALUE   0xFE9F
 
#define ADP1055_ISHARE_VALUE   0xFEA0
 
#define ADP1055_ADD_ADC_VALUE   0xFEA3
 

Enumerations

enum  adp1055_status_type {
  ADP1055_STATUS_VOUT_TYPE = ADP1055_STATUS_VOUT ,
  ADP1055_STATUS_IOUT_TYPE = ADP1055_STATUS_IOUT ,
  ADP1055_STATUS_INPUT_TYPE = ADP1055_STATUS_INPUT ,
  ADP1055_STATUS_TEMP_TYPE = ADP1055_STATUS_TEMPERATURE ,
  ADP1055_STATUS_CML_TYPE = ADP1055_STATUS_CML ,
  ADP1055_STATUS_OTHER_TYPE = ADP1055_STATUS_OTHER ,
  ADP1055_STATUS_WORD_TYPE = ADP1055_STATUS_WORD ,
  ADP1055_STATUS_MFR_TYPE = ADP1055_STATUS_MFR_SPECIFIC
}
 
enum  adp1055_value_type {
  ADP1055_VALUE_VIN = ADP1055_READ_VIN ,
  ADP1055_VALUE_IIN = ADP1055_READ_IIN ,
  ADP1055_VALUE_IOUT = ADP1055_READ_IOUT ,
  ADP1055_VALUE_TEMP2 = ADP1055_READ_TEMPERATURE_2 ,
  ADP1055_VALUE_TEMP3 = ADP1055_READ_TEMPERATURE_3 ,
  ADP1055_VALUE_DUTY_CYCLE = ADP1055_READ_DUTY_CYCLE ,
  ADP1055_VALUE_FREQUENCY = ADP1055_READ_FREQUENCY ,
  ADP1055_VALUE_POUT = ADP1055_READ_POUT
}
 
enum  adp1055_channel {
  ADP1055_OUTA ,
  ADP1055_OUTB ,
  ADP1055_OUTC ,
  ADP1055_OUTD ,
  ADP1055_SR1 ,
  ADP1055_SR2 ,
  ADP1055_DISABLE_ALL
}
 

Functions

int adp1055_send_command (struct adp1055_desc *desc, uint16_t command)
 Send command byte/word to ADP1055.
 
int adp1055_write (struct adp1055_desc *desc, uint16_t command, uint16_t data, uint8_t byte_num)
 
  • Write data to ADP1055

 
int adp1055_read (struct adp1055_desc *desc, uint16_t command, uint8_t *data, uint8_t bytes_number)
 Read data from ADP1055.
 
int adp1055_init (struct adp1055_desc **desc, struct adp1055_init_param *init_param)
 Initialize the ADP1055 device.
 
int adp1055_remove (struct adp1055_desc *desc)
 Free the resources allocated by the adp1055_init()
 
int adp1055_read_status (struct adp1055_desc *desc, enum adp1055_status_type status, uint16_t *status_val)
 Send statuses.
 
int adp1055_read_value (struct adp1055_desc *desc, enum adp1055_value_type value, uint16_t *mant, uint8_t *exp)
 Read VIN/IIN/VOUT/TEMP2/TEMP3/DUTY_CYCLE_FREQ/POUT raw value from the ADP1055.
 
int adp1055_read_vsense (struct adp1055_desc *desc, uint16_t *vsense)
 Read Voltage Sense output raw value from the ADP1055.
 
int adp1055_vout_value (struct adp1055_desc *desc, uint16_t vout_command, uint16_t vout_max)
 Set VOUT_COMMAND and VOUT_MAX values.
 
int adp1055_vout_offset (struct adp1055_desc *desc, int16_t vout_offset)
 Set output voltage offset.
 
int adp1055_vout_tr (struct adp1055_desc *desc, uint8_t exp, uint16_t mant)
 Set ADP1055 VOUT transition rate.
 
int adp1055_vout_droop (struct adp1055_desc *desc, uint8_t exp, uint16_t mant)
 Set ADP1055 Vout Droop.
 
int adp1055_vout_scale_loop (struct adp1055_desc *desc, uint8_t exp, uint16_t mant)
 Set ADP1055 vout scale loop.
 
int adp1055_vout_scale (struct adp1055_desc *desc, uint8_t exp, uint16_t mant)
 Set ADP1055 VOUT_SCALE_MONITOR.
 
int adp1055_set_vin (struct adp1055_desc *desc, int16_t mant, int8_t exp, bool state_on)
 Set ADP1055 VIN on/off raw value for input voltage limiting.
 
int adp1055_iout_cal_gain (struct adp1055_desc *desc, int16_t mant, int8_t exp)
 Set ADP1055 IOUT calibration gain.
 
int adp1055_iout_cal_offset (struct adp1055_desc *desc, int16_t mant, int8_t exp)
 Set ADP1055 IOUT calibration offset.
 
int adp1055_normal_mode_df (struct adp1055_desc *desc, uint8_t zero, uint8_t pole, uint8_t lf, uint8_t hf)
 Set ADP1055 Normal Mode Digital Filter.
 
int adp1055_lightload_mode_df (struct adp1055_desc *desc, uint8_t zero, uint8_t pole, uint8_t lf, uint8_t hf)
 Set ADP1055 Light Load Mode Digital Filter.
 
int adp1055_singleshot_mode_df (struct adp1055_desc *desc, uint8_t zero, uint8_t pole, uint8_t lf, uint8_t hf)
 Set ADP1055 Single Shot Digital Filter.
 
int adp1055_pwm_config (struct adp1055_desc *desc, uint16_t pulse_width, uint16_t pulse_start, bool mod_en, bool mod_sign, enum adp1055_channel chan)
 PWM modulation configuration for the ADP1055.
 
int adp1055_set_pwm (struct adp1055_desc *desc, enum adp1055_channel chan, int8_t exp, uint16_t mant)
 Set PWM channel and frequency.
 
int adp1055_freq_sync (struct adp1055_desc *desc, bool pll, bool reso)
 Frequency synchronization of the PWM clock with an external clock Requires syni_desc to be initialized.
 

Detailed Description

Header file for the ADP1055 Driver.

Author
Ivangil Mercano (Ivang.nosp@m.il.m.nosp@m.ercan.nosp@m.o@an.nosp@m.alog..nosp@m.com)

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:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. 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.
  3. 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.

Macro Definition Documentation

◆ ADP1055_ADD_ADC_VALUE

#define ADP1055_ADD_ADC_VALUE   0xFEA3

◆ ADP1055_ADT_CONFIG

#define ADP1055_ADT_CONFIG   0xFE1D

ADT Setting

◆ ADP1055_ADT_THRESHOLD

#define ADP1055_ADT_THRESHOLD   0xFE1E

◆ ADP1055_AUTO_GO_CMD

#define ADP1055_AUTO_GO_CMD   0xFE5B

◆ ADP1055_BLACKBOX_SETTING

#define ADP1055_BLACKBOX_SETTING   0xFE48

Blackbox Setting

◆ ADP1055_CAPABILITY

#define ADP1055_CAPABILITY   0x19

◆ ADP1055_CHIP_PASSWORD

#define ADP1055_CHIP_PASSWORD   0xD7

◆ ADP1055_CLEAR_FAULTS

#define ADP1055_CLEAR_FAULTS   0x03

◆ ADP1055_CMD_MASK

#define ADP1055_CMD_MASK   0xF4

◆ ADP1055_CS1_GAIN_TRIM

#define ADP1055_CS1_GAIN_TRIM   0xFE82

CS1 Gain Trim

◆ ADP1055_CS1_SETTING

#define ADP1055_CS1_SETTING   0xFE4E

CS1 and CS2

◆ ADP1055_CS1_VALUE

#define ADP1055_CS1_VALUE   0xFE98

◆ ADP1055_CS2_CONST_CUR_MODE

#define ADP1055_CS2_CONST_CUR_MODE   0xFE5D

CS2 Constant Current Mode

◆ ADP1055_CS2_SETTING

#define ADP1055_CS2_SETTING   0xFE4F

◆ ADP1055_CS2_VALUE

#define ADP1055_CS2_VALUE   0xFE99

◆ ADP1055_CTRL_PIN_ENABLE

#define ADP1055_CTRL_PIN_ENABLE   NO_OS_BIT(4)

◆ ADP1055_DEBOUNCE_SETTING_1

#define ADP1055_DEBOUNCE_SETTING_1   0xFE30

◆ ADP1055_DEBOUNCE_SETTING_2

#define ADP1055_DEBOUNCE_SETTING_2   0xFE31

◆ ADP1055_DEBOUNCE_SETTING_3

#define ADP1055_DEBOUNCE_SETTING_3   0xFE32

◆ ADP1055_DEBOUNCE_SETTING_4

#define ADP1055_DEBOUNCE_SETTING_4   0xFE33

◆ ADP1055_DEEP_LLM_DISABLE_SETTING

#define ADP1055_DEEP_LLM_DISABLE_SETTING   0xFE4C

◆ ADP1055_DEEP_LLM_SETTING

#define ADP1055_DEEP_LLM_SETTING   0xFE4B

Deep Light Load Mode Setting

◆ ADP1055_DEFAULT_FREQ_EXP

#define ADP1055_DEFAULT_FREQ_EXP   782

◆ ADP1055_DEFAULT_FREQ_MANT

#define ADP1055_DEFAULT_FREQ_MANT   -4

◆ ADP1055_DELAY_TIME_UNIT

#define ADP1055_DELAY_TIME_UNIT   0xFE3E

Delay Time Unit

◆ ADP1055_DIODE_EMULATION

#define ADP1055_DIODE_EMULATION   0xFE5C

Diode Emulation

◆ ADP1055_DOUBLE_UPD_RATE

#define ADP1055_DOUBLE_UPD_RATE   0xFE57

Double UPD Rate

◆ ADP1055_DUTY_BAL_EDGESEL

#define ADP1055_DUTY_BAL_EDGESEL   0xFE56

Duty Balance Edgesel

◆ ADP1055_EEPROM_ADDR_OFFSET

#define ADP1055_EEPROM_ADDR_OFFSET   0xD3

◆ ADP1055_EEPROM_CRC_CHKSUM

#define ADP1055_EEPROM_CRC_CHKSUM   0xD1

◆ ADP1055_EEPROM_DATA_00

#define ADP1055_EEPROM_DATA_00   0xB0

◆ ADP1055_EEPROM_DATA_01

#define ADP1055_EEPROM_DATA_01   0xB1

◆ ADP1055_EEPROM_DATA_02

#define ADP1055_EEPROM_DATA_02   0xB2

◆ ADP1055_EEPROM_DATA_03

#define ADP1055_EEPROM_DATA_03   0xB3

◆ ADP1055_EEPROM_DATA_04

#define ADP1055_EEPROM_DATA_04   0xB4

◆ ADP1055_EEPROM_DATA_05

#define ADP1055_EEPROM_DATA_05   0xB5

◆ ADP1055_EEPROM_DATA_06

#define ADP1055_EEPROM_DATA_06   0xB6

◆ ADP1055_EEPROM_DATA_07

#define ADP1055_EEPROM_DATA_07   0xB7

◆ ADP1055_EEPROM_DATA_08

#define ADP1055_EEPROM_DATA_08   0xB8

◆ ADP1055_EEPROM_DATA_09

#define ADP1055_EEPROM_DATA_09   0xB9

◆ ADP1055_EEPROM_DATA_10

#define ADP1055_EEPROM_DATA_10   0xBA

◆ ADP1055_EEPROM_DATA_11

#define ADP1055_EEPROM_DATA_11   0xBB

◆ ADP1055_EEPROM_DATA_12

#define ADP1055_EEPROM_DATA_12   0xBC

◆ ADP1055_EEPROM_DATA_13

#define ADP1055_EEPROM_DATA_13   0xBD

◆ ADP1055_EEPROM_DATA_14

#define ADP1055_EEPROM_DATA_14   0xBE

◆ ADP1055_EEPROM_DATA_15

#define ADP1055_EEPROM_DATA_15   0xBF

◆ ADP1055_EEPROM_INFO

#define ADP1055_EEPROM_INFO   0xF1

◆ ADP1055_EEPROM_NUM_RD_BYTES

#define ADP1055_EEPROM_NUM_RD_BYTES   0xD2

◆ ADP1055_EEPROM_PAGE_ERASE

#define ADP1055_EEPROM_PAGE_ERASE   0xD4

◆ ADP1055_EEPROM_PASSWORD

#define ADP1055_EEPROM_PASSWORD   0xD5

◆ ADP1055_EXP_MASK

#define ADP1055_EXP_MASK   NO_OS_GENMASK(15, 11)

◆ ADP1055_EXTCMD_MASK

#define ADP1055_EXTCMD_MASK   0xF5

◆ ADP1055_EXTENDED_COMMAND

#define ADP1055_EXTENDED_COMMAND   0xFF

◆ ADP1055_FAULT_CML

#define ADP1055_FAULT_CML   0xFE90

◆ ADP1055_FAULT_INPUT

#define ADP1055_FAULT_INPUT   0xFE8E

◆ ADP1055_FAULT_IOUT

#define ADP1055_FAULT_IOUT   0xFE8D

◆ ADP1055_FAULT_MFR_SPECIFIC

#define ADP1055_FAULT_MFR_SPECIFIC   0xFE92

◆ ADP1055_FAULT_OTHER

#define ADP1055_FAULT_OTHER   0xFE91

◆ ADP1055_FAULT_TEMPERATURE

#define ADP1055_FAULT_TEMPERATURE   0xFE8F

◆ ADP1055_FAULT_UNKNOWN

#define ADP1055_FAULT_UNKNOWN   0xFE93

◆ ADP1055_FAULT_VOUT

#define ADP1055_FAULT_VOUT   0xFE8C

Faults

◆ ADP1055_FFWD_SETTING

#define ADP1055_FFWD_SETTING   0xFE29

FFWD Setting

◆ ADP1055_FILTER_GO

#define ADP1055_FILTER_GO   0x08

◆ ADP1055_FILTER_TRANSITION

#define ADP1055_FILTER_TRANSITION   0xFE4A

Filter Transition

◆ ADP1055_FIRST_FAULT_ID

#define ADP1055_FIRST_FAULT_ID   0xFE95

◆ ADP1055_FREQ_GO

#define ADP1055_FREQ_GO   0x04

◆ ADP1055_FREQ_JITT_MASK

#define ADP1055_FREQ_JITT_MASK   NO_OS_BIT(1)

◆ ADP1055_FREQ_JITT_VAL

#define ADP1055_FREQ_JITT_VAL   0x02

◆ ADP1055_FREQ_PLL_MASK

#define ADP1055_FREQ_PLL_MASK   NO_OS_BIT(6)

◆ ADP1055_FREQ_RESO_MASK

#define ADP1055_FREQ_RESO_MASK   NO_OS_BIT(0)

◆ ADP1055_FREQUENCY_SWITCH

#define ADP1055_FREQUENCY_SWITCH   0x33

◆ ADP1055_GO_CMD

#define ADP1055_GO_CMD   0xFE00

Go Command

◆ ADP1055_GPIO1_FAULT_RESPONSE

#define ADP1055_GPIO1_FAULT_RESPONSE   0xFE39

◆ ADP1055_GPIO2_FAULT_RESPONSE

#define ADP1055_GPIO2_FAULT_RESPONSE   0xFE3A

◆ ADP1055_GPIO3_4_KARNAUGH_MAP

#define ADP1055_GPIO3_4_KARNAUGH_MAP   0xFE42

◆ ADP1055_GPIO3_4_SNUBBER_DELAY

#define ADP1055_GPIO3_4_SNUBBER_DELAY   0xFE64

◆ ADP1055_GPIO3_4_SNUBBER_ON_TIME

#define ADP1055_GPIO3_4_SNUBBER_ON_TIME   0xFE63

GPIO3 Snubber

◆ ADP1055_GPIO3_FAULT_RESPONSE

#define ADP1055_GPIO3_FAULT_RESPONSE   0xFE3B

◆ ADP1055_GPIO4_FAULT_RESPONSE

#define ADP1055_GPIO4_FAULT_RESPONSE   0xFE3C

◆ ADP1055_GPIO_SETTING

#define ADP1055_GPIO_SETTING   0xFE40

GPIO Setting

◆ ADP1055_HF_ADC_CONFIG

#define ADP1055_HF_ADC_CONFIG   0xFE67

HF ADC Config

◆ ADP1055_IC_DEVICE_ID

#define ADP1055_IC_DEVICE_ID   0xAD

◆ ADP1055_IC_DEVICE_REV

#define ADP1055_IC_DEVICE_REV   0xAE

◆ ADP1055_IIN_CAL_GAIN

#define ADP1055_IIN_CAL_GAIN   0xFE59

◆ ADP1055_IIN_OC_FAST_FAULT_RESPONSE

#define ADP1055_IIN_OC_FAST_FAULT_RESPONSE   0xFE37

◆ ADP1055_IIN_OC_FAST_SETTING

#define ADP1055_IIN_OC_FAST_SETTING   0xFE2C

Fast Setting

◆ ADP1055_IIN_OC_FAULT_LIMIT

#define ADP1055_IIN_OC_FAULT_LIMIT   0x5B

◆ ADP1055_IIN_OC_FAULT_RESPOSNE

#define ADP1055_IIN_OC_FAULT_RESPOSNE   0x5C

◆ ADP1055_IIN_SCALE_MONITOR

#define ADP1055_IIN_SCALE_MONITOR   0xD9

◆ ADP1055_INTERLEAVE

#define ADP1055_INTERLEAVE   0x37

◆ ADP1055_IOUT_CAL_GAIN

#define ADP1055_IOUT_CAL_GAIN   0x38

◆ ADP1055_IOUT_CAL_OFFSET

#define ADP1055_IOUT_CAL_OFFSET   0x39

◆ ADP1055_IOUT_OC_FAST_FAULT_RESPONSE

#define ADP1055_IOUT_OC_FAST_FAULT_RESPONSE   0xFE35

◆ ADP1055_IOUT_OC_FAST_SETTING

#define ADP1055_IOUT_OC_FAST_SETTING   0xFE2D

◆ ADP1055_IOUT_OC_FAULT_LIMIT

#define ADP1055_IOUT_OC_FAULT_LIMIT   0x46

◆ ADP1055_IOUT_OC_FAULT_RES

#define ADP1055_IOUT_OC_FAULT_RES   0x47

◆ ADP1055_IOUT_OC_LV_FAULT_LIMIT

#define ADP1055_IOUT_OC_LV_FAULT_LIMIT   0x48

◆ ADP1055_IOUT_OC_LV_FAULT_RESPONSE

#define ADP1055_IOUT_OC_LV_FAULT_RESPONSE   0x49

◆ ADP1055_IOUT_OC_WARN_LIMIT

#define ADP1055_IOUT_OC_WARN_LIMIT   0x4A

◆ ADP1055_IOUT_UC_FAST_FAULT_RESPONSE

#define ADP1055_IOUT_UC_FAST_FAULT_RESPONSE   0xFE36

◆ ADP1055_IOUT_UC_FAST_SETTING

#define ADP1055_IOUT_UC_FAST_SETTING   0xFE2E

◆ ADP1055_IOUT_UC_FAULT_LIMIT

#define ADP1055_IOUT_UC_FAULT_LIMIT   0x4B

◆ ADP1055_IOUT_UC_FAULT_RESPONSE

#define ADP1055_IOUT_UC_FAULT_RESPONSE   0x4C

◆ ADP1055_ISHARE_BANDWIDTH

#define ADP1055_ISHARE_BANDWIDTH   0xFE2B

◆ ADP1055_ISHARE_SETTING

#define ADP1055_ISHARE_SETTING   0xFE2A

◆ ADP1055_ISHARE_VALUE

#define ADP1055_ISHARE_VALUE   0xFEA0

◆ ADP1055_LLM_DIGFILT_HF_GAIN_SETTING

#define ADP1055_LLM_DIGFILT_HF_GAIN_SETTING   0xFE08

◆ ADP1055_LLM_DIGFILT_LF_GAIN_SETTING

#define ADP1055_LLM_DIGFILT_LF_GAIN_SETTING   0xFE05

◆ ADP1055_LLM_DIGFILT_POLE_SETTING

#define ADP1055_LLM_DIGFILT_POLE_SETTING   0xFE07

◆ ADP1055_LLM_DIGFILT_ZERO_SETTING

#define ADP1055_LLM_DIGFILT_ZERO_SETTING   0xFE06

◆ ADP1055_LOW_TEMP_POLE

#define ADP1055_LOW_TEMP_POLE   0xFE61

◆ ADP1055_LOW_TEMP_SETTING

#define ADP1055_LOW_TEMP_SETTING   0xFE62

◆ ADP1055_LSB_MASK

#define ADP1055_LSB_MASK   NO_OS_GENMASK(7, 0)

◆ ADP1055_MANT_MASK

#define ADP1055_MANT_MASK   NO_OS_GENMASK(10, 0)

◆ ADP1055_MFR_DATE

#define ADP1055_MFR_DATE   0x9D

◆ ADP1055_MFR_ID

#define ADP1055_MFR_ID   0x99

◆ ADP1055_MFR_LOCATION

#define ADP1055_MFR_LOCATION   0x9C

◆ ADP1055_MFR_MODEL

#define ADP1055_MFR_MODEL   0x9A

◆ ADP1055_MFR_REVISION

#define ADP1055_MFR_REVISION   0x9B

◆ ADP1055_MFR_SPECIFIC_1

#define ADP1055_MFR_SPECIFIC_1   0xFA

◆ ADP1055_MFR_SPECIFIC_2

#define ADP1055_MFR_SPECIFIC_2   0xFB

◆ ADP1055_MODULATION_LIMIT

#define ADP1055_MODULATION_LIMIT   0xFE53

Modulation Limit

◆ ADP1055_MODULATION_VALUE

#define ADP1055_MODULATION_VALUE   0xFE9F

◆ ADP1055_MSB_MASK

#define ADP1055_MSB_MASK   NO_OS_GENMASK(15, 8)

◆ ADP1055_NL_BURST_MODE

#define ADP1055_NL_BURST_MODE   0xFE66

NL Burst Mode

◆ ADP1055_NL_ERR_GAIN_FACTOR

#define ADP1055_NL_ERR_GAIN_FACTOR   0xFE5E

NL ERR Gain Factor

◆ ADP1055_NM_DIGFILT_HF_GAIN_SETTING

#define ADP1055_NM_DIGFILT_HF_GAIN_SETTING   0xFE04

◆ ADP1055_NM_DIGFILT_LF_GAIN_SETTING

#define ADP1055_NM_DIGFILT_LF_GAIN_SETTING   0xFE01

NM LLM and SS Digfilt

◆ ADP1055_NM_DIGFILT_POLE_SETTING

#define ADP1055_NM_DIGFILT_POLE_SETTING   0xFE03

◆ ADP1055_NM_DIGFILT_ZERO_SETTING

#define ADP1055_NM_DIGFILT_ZERO_SETTING   0xFE02

◆ ADP1055_NOMINAL_TEMP_POLE

#define ADP1055_NOMINAL_TEMP_POLE   0xFE60

Temperature Polarity

◆ ADP1055_ON_OFF_CONFIG

#define ADP1055_ON_OFF_CONFIG   0x02

◆ ADP1055_ON_OFF_DEFAULT_CFG

#define ADP1055_ON_OFF_DEFAULT_CFG   0x00

◆ ADP1055_ON_OFF_MASK

#define ADP1055_ON_OFF_MASK   NO_OS_GENMASK(7, 6)

◆ ADP1055_OPERATION

#define ADP1055_OPERATION   0x01

◆ ADP1055_OPERATION_OFF

#define ADP1055_OPERATION_OFF   0x00

◆ ADP1055_OPERATION_ON

#define ADP1055_OPERATION_ON   0x80

◆ ADP1055_OPERATION_SOFT_OFF

#define ADP1055_OPERATION_SOFT_OFF   0x40

◆ ADP1055_OT_FAULT_LIMIT

#define ADP1055_OT_FAULT_LIMIT   0x4F

◆ ADP1055_OT_FAULT_RESPONSE

#define ADP1055_OT_FAULT_RESPONSE   0x50

◆ ADP1055_OT_WARN_LIMIT

#define ADP1055_OT_WARN_LIMIT   0x51

◆ ADP1055_OUTA_DEAD_TIME

#define ADP1055_OUTA_DEAD_TIME   0xFE1F

PWM Output Dead Time

◆ ADP1055_OUTA_FEDGE_SETTING

#define ADP1055_OUTA_FEDGE_SETTING   0xFE0E

◆ ADP1055_OUTA_ON

#define ADP1055_OUTA_ON   0x3E

◆ ADP1055_OUTA_REDGE_SETTING

#define ADP1055_OUTA_REDGE_SETTING   0xFE0D

OUTA, OUTB, OUTC, OUTC, SR1, and SR2 Settings

◆ ADP1055_OUTB_DEAD_TIME

#define ADP1055_OUTB_DEAD_TIME   0xFE20

◆ ADP1055_OUTB_FEDGE_SETTING

#define ADP1055_OUTB_FEDGE_SETTING   0xFE10

◆ ADP1055_OUTB_ON

#define ADP1055_OUTB_ON   0x3D

◆ ADP1055_OUTB_REDGE_SETTING

#define ADP1055_OUTB_REDGE_SETTING   0xFE0F

◆ ADP1055_OUTC_DEAD_TIME

#define ADP1055_OUTC_DEAD_TIME   0xFE21

◆ ADP1055_OUTC_FEDGE_SETTING

#define ADP1055_OUTC_FEDGE_SETTING   0xFE12

◆ ADP1055_OUTC_ON

#define ADP1055_OUTC_ON   0x3B

◆ ADP1055_OUTC_REDGE_SETTING

#define ADP1055_OUTC_REDGE_SETTING   0xFE11

◆ ADP1055_OUTD_DEAD_TIME

#define ADP1055_OUTD_DEAD_TIME   0xFE22

◆ ADP1055_OUTD_FEDGE_SETTING

#define ADP1055_OUTD_FEDGE_SETTING   0xFE14

◆ ADP1055_OUTD_ON

#define ADP1055_OUTD_ON   0x37

◆ ADP1055_OUTD_REDGE_SETTING

#define ADP1055_OUTD_REDGE_SETTING   0xFE13

◆ ADP1055_OVP_FAULT_CONFIG

#define ADP1055_OVP_FAULT_CONFIG   0xFE4D

OVP Fault Config

◆ ADP1055_PGOOD1_FAULT_SELECT

#define ADP1055_PGOOD1_FAULT_SELECT   0xFE44

◆ ADP1055_PGOOD2_FAULT_SELECT

#define ADP1055_PGOOD2_FAULT_SELECT   0xFE45

◆ ADP1055_PGOOD_FAULT_DEB

#define ADP1055_PGOOD_FAULT_DEB   0xFE43

PGOOD Fault Setting

◆ ADP1055_POUT_OP_FAULT_LIMIT

#define ADP1055_POUT_OP_FAULT_LIMIT   0x68

◆ ADP1055_POUT_OP_FAULT_RESPONSE

#define ADP1055_POUT_OP_FAULT_RESPONSE   0x69

◆ ADP1055_POUT_VALUE

#define ADP1055_POUT_VALUE   0xFE9A

◆ ADP1055_POWER_GOOD_OFF

#define ADP1055_POWER_GOOD_OFF   0x5F

◆ ADP1055_POWER_GOOD_ON

#define ADP1055_POWER_GOOD_ON   0x5E

◆ ADP1055_PULSE_SKIP_AND_SHUTDOWN

#define ADP1055_PULSE_SKIP_AND_SHUTDOWN   0xFE50

Pulse Skiping and Shutdown

◆ ADP1055_PWM_DISABLE_SETTING

#define ADP1055_PWM_DISABLE_SETTING   0xFE49

PWM Disable Setting

◆ ADP1055_PWM_FAULT_MASK

#define ADP1055_PWM_FAULT_MASK   0xFE3D

PWM Fault Mask

◆ ADP1055_PWM_GO

#define ADP1055_PWM_GO   0x02

◆ ADP1055_PWM_MODEN_MASK

#define ADP1055_PWM_MODEN_MASK   3

◆ ADP1055_PWM_OFF

#define ADP1055_PWM_OFF   0x3F

◆ ADP1055_PWM_SIGN_MASK

#define ADP1055_PWM_SIGN_MASK   2

◆ ADP1055_PWM_TIMING_MASK

#define ADP1055_PWM_TIMING_MASK   NO_OS_GENMASK(15, 4)

◆ ADP1055_RD_FRAME_SIZE

#define ADP1055_RD_FRAME_SIZE   5

◆ ADP1055_READ_BLACKBOX_CURR

#define ADP1055_READ_BLACKBOX_CURR   0xF2

◆ ADP1055_READ_BLACKBOX_PREV

#define ADP1055_READ_BLACKBOX_PREV   0xF3

◆ ADP1055_READ_DUTY_CYCLE

#define ADP1055_READ_DUTY_CYCLE   0x94

◆ ADP1055_READ_FREQUENCY

#define ADP1055_READ_FREQUENCY   0x95

◆ ADP1055_READ_IIN

#define ADP1055_READ_IIN   0x89

◆ ADP1055_READ_IOUT

#define ADP1055_READ_IOUT   0x8C

◆ ADP1055_READ_PMBUS_REVISION

#define ADP1055_READ_PMBUS_REVISION   0x98

◆ ADP1055_READ_POUT

#define ADP1055_READ_POUT   0x96

◆ ADP1055_READ_TEMPERATURE_2

#define ADP1055_READ_TEMPERATURE_2   0x8E

◆ ADP1055_READ_TEMPERATURE_3

#define ADP1055_READ_TEMPERATURE_3   0x8F

◆ ADP1055_READ_VIN

#define ADP1055_READ_VIN   0x88

READ

◆ ADP1055_READ_VOUT

#define ADP1055_READ_VOUT   0x8B

◆ ADP1055_RESTORE_DEFAULT_ALL

#define ADP1055_RESTORE_DEFAULT_ALL   0x12

◆ ADP1055_RESTORE_USER_ALL

#define ADP1055_RESTORE_USER_ALL   0x16

◆ ADP1055_SC_FRAME_SIZE

#define ADP1055_SC_FRAME_SIZE   3

◆ ADP1055_SMBALERT_MASK

#define ADP1055_SMBALERT_MASK   0x1B

◆ ADP1055_SOFT_START_BLANKING

#define ADP1055_SOFT_START_BLANKING   0xFE46

Soft Start

◆ ADP1055_SOFT_START_SETTING

#define ADP1055_SOFT_START_SETTING   0xFE51

Soft Start Setting

◆ ADP1055_SOFT_STOP_BLANKING

#define ADP1055_SOFT_STOP_BLANKING   0xFE47

◆ ADP1055_SR1_DEAD_TIME

#define ADP1055_SR1_DEAD_TIME   0xFE23

◆ ADP1055_SR1_FEDGE_LLM_SETTING

#define ADP1055_SR1_FEDGE_LLM_SETTING   0xFE1A

◆ ADP1055_SR1_FEDGE_SETTING

#define ADP1055_SR1_FEDGE_SETTING   0xFE16

◆ ADP1055_SR1_ON

#define ADP1055_SR1_ON   0x2F

◆ ADP1055_SR1_REDGE_LLM_SETTING

#define ADP1055_SR1_REDGE_LLM_SETTING   0xFE19

◆ ADP1055_SR1_REDGE_SETTING

#define ADP1055_SR1_REDGE_SETTING   0xFE15

◆ ADP1055_SR2_DEAD_TIME

#define ADP1055_SR2_DEAD_TIME   0xFE24

◆ ADP1055_SR2_FEDGE_LLM_SETTING

#define ADP1055_SR2_FEDGE_LLM_SETTING   0xFE1C

◆ ADP1055_SR2_FEDGE_SETTING

#define ADP1055_SR2_FEDGE_SETTING   0xFE18

◆ ADP1055_SR2_ON

#define ADP1055_SR2_ON   0x1F

◆ ADP1055_SR2_REDGE_LLM_SETTING

#define ADP1055_SR2_REDGE_LLM_SETTING   0xFE1B

◆ ADP1055_SR2_REDGE_SETTING

#define ADP1055_SR2_REDGE_SETTING   0xFE17

◆ ADP1055_SR_DELAY

#define ADP1055_SR_DELAY   0xFE52

SR Delay

◆ ADP1055_SR_SETTING

#define ADP1055_SR_SETTING   0xFE5F

SR Setting

◆ ADP1055_SS_DIGFILT_HF_GAIN_SETTING

#define ADP1055_SS_DIGFILT_HF_GAIN_SETTING   0xFE0C

◆ ADP1055_SS_DIGFILT_LF_GAIN_SETTING

#define ADP1055_SS_DIGFILT_LF_GAIN_SETTING   0xFE09

◆ ADP1055_SS_DIGFILT_POLE_SETTING

#define ADP1055_SS_DIGFILT_POLE_SETTING   0xFE0B

◆ ADP1055_SS_DIGFILT_ZERO_SETTING

#define ADP1055_SS_DIGFILT_ZERO_SETTING   0xFE0A

◆ ADP1055_STATUS_BYTE

#define ADP1055_STATUS_BYTE   0x78

STATUS

◆ ADP1055_STATUS_CML

#define ADP1055_STATUS_CML   0x7E

◆ ADP1055_STATUS_INPUT

#define ADP1055_STATUS_INPUT   0x7C

◆ ADP1055_STATUS_IOUT

#define ADP1055_STATUS_IOUT   0x7B

◆ ADP1055_STATUS_MFR_SPECIFIC

#define ADP1055_STATUS_MFR_SPECIFIC   0x80

◆ ADP1055_STATUS_OTHER

#define ADP1055_STATUS_OTHER   0x7F

◆ ADP1055_STATUS_TEMPERATURE

#define ADP1055_STATUS_TEMPERATURE   0x7D

◆ ADP1055_STATUS_UNKNOWN

#define ADP1055_STATUS_UNKNOWN   0xFE94

◆ ADP1055_STATUS_VOUT

#define ADP1055_STATUS_VOUT   0x7A

◆ ADP1055_STATUS_WORD

#define ADP1055_STATUS_WORD   0x79

◆ ADP1055_STORE_USER_ALL

#define ADP1055_STORE_USER_ALL   0x15

◆ ADP1055_SYNC

#define ADP1055_SYNC   0xFE55

SYNC

◆ ADP1055_SYNC_GO

#define ADP1055_SYNC_GO   0x40

◆ ADP1055_TOFF_DELAY

#define ADP1055_TOFF_DELAY   0x64

◆ ADP1055_TOFF_FALL

#define ADP1055_TOFF_FALL   0x65

◆ ADP1055_TOFF_MAX_WARN_LIMIT

#define ADP1055_TOFF_MAX_WARN_LIMIT   0x66

◆ ADP1055_TON_DELAY

#define ADP1055_TON_DELAY   0x60

◆ ADP1055_TON_MAX_FAULT_LIMIT

#define ADP1055_TON_MAX_FAULT_LIMIT   0x62

◆ ADP1055_TON_MAX_FAULT_RESPOSNE

#define ADP1055_TON_MAX_FAULT_RESPOSNE   0x63

◆ ADP1055_TON_RISE

#define ADP1055_TON_RISE   0x61

◆ ADP1055_TRIM_PASSWORD

#define ADP1055_TRIM_PASSWORD   0xD6

◆ ADP1055_TSNS_EXTFWD_GAIN_TRIM

#define ADP1055_TSNS_EXTFWD_GAIN_TRIM   0xFE86

TSNS Settings

◆ ADP1055_TSNS_EXTFWD_OFFSET_TRIM

#define ADP1055_TSNS_EXTFWD_OFFSET_TRIM   0xFE87

◆ ADP1055_TSNS_EXTFWD_VALUE

#define ADP1055_TSNS_EXTFWD_VALUE   0xFE9C

◆ ADP1055_TSNS_EXTREV_GAIN_TRIM

#define ADP1055_TSNS_EXTREV_GAIN_TRIM   0xFE88

◆ ADP1055_TSNS_EXTREV_OFFSET_TRIM

#define ADP1055_TSNS_EXTREV_OFFSET_TRIM   0xFE89

◆ ADP1055_TSNS_EXTREV_VALUE

#define ADP1055_TSNS_EXTREV_VALUE   0xFE9D

◆ ADP1055_TSNS_SETTING

#define ADP1055_TSNS_SETTING   0xFE5A

TSNS Setting

◆ ADP1055_VFF_GAIN_TRIM

#define ADP1055_VFF_GAIN_TRIM   0xFE81

VFF Gain Trim

◆ ADP1055_VFF_GO

#define ADP1055_VFF_GO   0x20

◆ ADP1055_VFF_VALUE

#define ADP1055_VFF_VALUE   0xFE96

Values

◆ ADP1055_VIN_OFF

#define ADP1055_VIN_OFF   0x36

◆ ADP1055_VIN_ON

#define ADP1055_VIN_ON   0x35

VIN ON OFF

◆ ADP1055_VIN_OV_FAULT_LIMIT

#define ADP1055_VIN_OV_FAULT_LIMIT   0x55

◆ ADP1055_VIN_OV_FAULT_RESPONSE

#define ADP1055_VIN_OV_FAULT_RESPONSE   0x56

◆ ADP1055_VIN_SCALE_MONITOR

#define ADP1055_VIN_SCALE_MONITOR   0xFE58

Vin Scale Monitor

◆ ADP1055_VIN_UV_FAULT_LIMIT

#define ADP1055_VIN_UV_FAULT_LIMIT   0x59

◆ ADP1055_VIN_UV_FAULT_RESPONSE

#define ADP1055_VIN_UV_FAULT_RESPONSE   0x5A

◆ ADP1055_VOLT_REF_GO

#define ADP1055_VOLT_REF_GO   0x01

CMD GO

◆ ADP1055_VOUT_CAL_OFFSET

#define ADP1055_VOUT_CAL_OFFSET   0x23

◆ ADP1055_VOUT_COMMAND

#define ADP1055_VOUT_COMMAND   0x21

◆ ADP1055_VOUT_DROOP

#define ADP1055_VOUT_DROOP   0x28

◆ ADP1055_VOUT_DROOP_SETTING

#define ADP1055_VOUT_DROOP_SETTING   0xFE65

VOUT Droop Setting

◆ ADP1055_VOUT_MAX

#define ADP1055_VOUT_MAX   0x24

◆ ADP1055_VOUT_MODE

#define ADP1055_VOUT_MODE   0x20

◆ ADP1055_VOUT_MODE_MASK

#define ADP1055_VOUT_MODE_MASK   NO_OS_GENMASK(4, 0)

◆ ADP1055_VOUT_OV_FAST_FAULT_RESPONSE

#define ADP1055_VOUT_OV_FAST_FAULT_RESPONSE   0xFE34

Fault Response

◆ ADP1055_VOUT_OV_FAST_SETTING

#define ADP1055_VOUT_OV_FAST_SETTING   0xFE2F

◆ ADP1055_VOUT_OV_FAULT_LIMIT

#define ADP1055_VOUT_OV_FAULT_LIMIT   0x40

Fault, Reponse, Limit, and Warn

◆ ADP1055_VOUT_OV_FAULT_RESPONSE

#define ADP1055_VOUT_OV_FAULT_RESPONSE   0x41

◆ ADP1055_VOUT_OV_WARN_LIMIT

#define ADP1055_VOUT_OV_WARN_LIMIT   0x42

◆ ADP1055_VOUT_SCALE_LOOP

#define ADP1055_VOUT_SCALE_LOOP   0x29

◆ ADP1055_VOUT_SCALE_MONITOR

#define ADP1055_VOUT_SCALE_MONITOR   0x2A

◆ ADP1055_VOUT_TRANSITION_RATE

#define ADP1055_VOUT_TRANSITION_RATE   0x27

◆ ADP1055_VOUT_TRIM

#define ADP1055_VOUT_TRIM   0x22

◆ ADP1055_VOUT_UV_FAULT_LIMIT

#define ADP1055_VOUT_UV_FAULT_LIMIT   0x44

◆ ADP1055_VOUT_UV_FAULT_RESPONSE

#define ADP1055_VOUT_UV_FAULT_RESPONSE   0x45

◆ ADP1055_VOUT_UV_WARN_LIMIT

#define ADP1055_VOUT_UV_WARN_LIMIT   0x43

◆ ADP1055_VS_BAL_GO

#define ADP1055_VS_BAL_GO   0x10

◆ ADP1055_VS_TRIM

#define ADP1055_VS_TRIM   0xFE80

VS Trim

◆ ADP1055_VS_VALUE

#define ADP1055_VS_VALUE   0xFE97

◆ ADP1055_VSBAL_OUTA_B

#define ADP1055_VSBAL_OUTA_B   0xFE26

◆ ADP1055_VSBAL_OUTC_D

#define ADP1055_VSBAL_OUTC_D   0xFE27

◆ ADP1055_VSBAL_SETTING

#define ADP1055_VSBAL_SETTING   0xFE25

VSBAL Settings

◆ ADP1055_VSBAL_SR1_2

#define ADP1055_VSBAL_SR1_2   0xFE28

◆ ADP1055_WDT_SETTING

#define ADP1055_WDT_SETTING   0xFE3F

WDT Setting

◆ ADP1055_WR_FRAME_SIZE

#define ADP1055_WR_FRAME_SIZE   4

◆ ADP1055_WRITE_PROTECT

#define ADP1055_WRITE_PROTECT   0x10

◆ ADP1055GPIO1_2_KARNAUGH_MAP

#define ADP1055GPIO1_2_KARNAUGH_MAP   0xFE41

◆ ADP1055ISHARE_FAULT_RESPONSE

#define ADP1055ISHARE_FAULT_RESPONSE   0xFE38

Enumeration Type Documentation

◆ adp1055_channel

Enumerator
ADP1055_OUTA 
ADP1055_OUTB 
ADP1055_OUTC 
ADP1055_OUTD 
ADP1055_SR1 
ADP1055_SR2 
ADP1055_DISABLE_ALL 

◆ adp1055_status_type

Enumerator
ADP1055_STATUS_VOUT_TYPE 
ADP1055_STATUS_IOUT_TYPE 
ADP1055_STATUS_INPUT_TYPE 
ADP1055_STATUS_TEMP_TYPE 
ADP1055_STATUS_CML_TYPE 
ADP1055_STATUS_OTHER_TYPE 
ADP1055_STATUS_WORD_TYPE 
ADP1055_STATUS_MFR_TYPE 

◆ adp1055_value_type

Enumerator
ADP1055_VALUE_VIN 
ADP1055_VALUE_IIN 
ADP1055_VALUE_IOUT 
ADP1055_VALUE_TEMP2 
ADP1055_VALUE_TEMP3 
ADP1055_VALUE_DUTY_CYCLE 
ADP1055_VALUE_FREQUENCY 
ADP1055_VALUE_POUT 

Function Documentation

◆ adp1055_freq_sync()

int adp1055_freq_sync ( struct adp1055_desc * desc,
bool pll,
bool reso )

Frequency synchronization of the PWM clock with an external clock Requires syni_desc to be initialized.

Set Frequency Synchronization

Parameters
desc- ADP1055 device descriptor
pll- pll disable and enable
reso- 5ns resolution enable
Returns
0 in case of success, negative error otherwise

◆ adp1055_init()

int adp1055_init ( struct adp1055_desc ** desc,
struct adp1055_init_param * init_param )

Initialize the ADP1055 device.

Initialize the ADP1055 device.

Parameters
desc- ADP1055 device descriptor
init_param- Initialization parameter containing information about the ADP1055 device to be initialized.
Returns
0 in case of succes, negative error code otherwise
Here is the caller graph for this function:

◆ adp1055_iout_cal_gain()

int adp1055_iout_cal_gain ( struct adp1055_desc * desc,
int16_t mant,
int8_t exp )

Set ADP1055 IOUT calibration gain.

Set ADP1055 IOUT calibration gain

Parameters
desc- ADP1055 deveice descriptor
mant- Mantissa value to be transmitted, 11-bit twos compliment
exp- Exponent value to be transmitted, 5-bit twos compliment
Returns
0 in case of success, negative error otherwise

◆ adp1055_iout_cal_offset()

int adp1055_iout_cal_offset ( struct adp1055_desc * desc,
int16_t mant,
int8_t exp )

Set ADP1055 IOUT calibration offset.

Set ADP1055 IOUT calibration offset

Parameters
desc- ADP1055 deveice descriptor
mant- Mantissa value to be transmitted, 11-bit twos compliment
exp- Exponent value to be transmitted, 5-bit twos compliment
Returns
0 in case of success, negative error otherwise

◆ adp1055_lightload_mode_df()

int adp1055_lightload_mode_df ( struct adp1055_desc * desc,
uint8_t zero,
uint8_t pole,
uint8_t lf,
uint8_t hf )

Set ADP1055 Light Load Mode Digital Filter.

Set ADP1055 Light Load Mode Digital Filter

Parameters
desc- ADP1055 device descriptor
zero- light mode zero settings.
pole- light mode pole settings.
lf- light mode low filter gain settings.
hf- light mode high filter gain settings.
Returns
0 in case of success, negative error otherwise

◆ adp1055_normal_mode_df()

int adp1055_normal_mode_df ( struct adp1055_desc * desc,
uint8_t zero,
uint8_t pole,
uint8_t lf,
uint8_t hf )

Set ADP1055 Normal Mode Digital Filter.

Set ADP1055 Normal Mode Digital Filter

Parameters
desc- ADP1055 device descriptor
zero- light mode zero settings.
pole- light mode pole settings.
lf- light mode low filter gain settings.
hf- light mode high filter gain settings.
Returns
0 in case of success, negative error otherwise

◆ adp1055_pwm_config()

int adp1055_pwm_config ( struct adp1055_desc * desc,
uint16_t pulse_width,
uint16_t pulse_start,
bool mod_en,
bool mod_sign,
enum adp1055_channel chan )

PWM modulation configuration for the ADP1055.

PWM modulation configuration for the ADP1055

Parameters
desc- ADP1055 device descriptor
pulse_width- Width of the pulse wanted for the signal (used for calculation of the 12-bit rising and falling edge timings for the requested channels, it depends on each channel how the falling and rising edges are calculated using this value). Each LSB corresponds to a 5ns resolution.
pulse_start- Start of the pulse wanted for the signal (used for calculation of the 12-bit rising and falling edge timings for the requested channels, it depends on each channel how the falling and rising edges are calculated using this value). Each LSB corresponds to a 5ns resolution.
mod_en- boolian for modulation enable
mod_sign- bolian for modulation sign
chan- requested channel
Returns
0 in case of success, negative error otherwise
Here is the caller graph for this function:

◆ adp1055_read()

int adp1055_read ( struct adp1055_desc * desc,
uint16_t command,
uint8_t * data,
uint8_t byte_num )

Read data from ADP1055.

Read data from ADP1055

Parameters
desc- ADP1055 device descriptor
command- Command value
data- Buffer with received data
byte_num- Number of bytes of received data
Returns
0 if success, negative error otherwise
Here is the caller graph for this function:

◆ adp1055_read_status()

int adp1055_read_status ( struct adp1055_desc * desc,
enum adp1055_status_type status,
uint16_t * status_val )

Send statuses.

Send statuses

Parameters
desc- ADP1055 device descriptor
status- Status type
status_val- Status value to be returned
Returns
0 in case of success, negative error otherwise

◆ adp1055_read_value()

int adp1055_read_value ( struct adp1055_desc * desc,
enum adp1055_value_type value,
uint16_t * mant,
uint8_t * exp )

Read VIN/IIN/VOUT/TEMP2/TEMP3/DUTY_CYCLE_FREQ/POUT raw value from the ADP1055.

Read VIN/IIN/VOUT/TEMP2/TEMP3/DUTY_CYCLE_FREQ/POUT raw value from the ADP1055

Parameters
desc- AP1055 device descriptor
value- value type
mant- Raw mantissa value to be received
exp- Raw exponent value to be received
Returns
0 in case of success, negative error otherwise
Here is the caller graph for this function:

◆ adp1055_read_vsense()

int adp1055_read_vsense ( struct adp1055_desc * desc,
uint16_t * vsense )

Read Voltage Sense output raw value from the ADP1055.

Read Voltage Sense output raw value from the ADP1055

Parameters
desc- ADP1055 device descriptor
vsense- VS(VOUT) raw value to be received of the parallel circuit.
Returns
0 in case of succes, negative error code otherwise

◆ adp1055_remove()

int adp1055_remove ( struct adp1055_desc * desc)

Free the resources allocated by the adp1055_init()

Free the resources allocated by the adp1055_init()

Parameters
desc- ADP1055 device descriptor
Returns
0 in case of success, negative error otherwise
Here is the caller graph for this function:

◆ adp1055_send_command()

int adp1055_send_command ( struct adp1055_desc * desc,
uint16_t command )

Send command byte/word to ADP1055.

Send command byte/word to ADP1055

Parameters
desc- ADP1055 device descriptor
command- Value of the command
Returns
0 in case of sucess, negative error code otherwise
Here is the caller graph for this function:

◆ adp1055_set_pwm()

int adp1055_set_pwm ( struct adp1055_desc * desc,
enum adp1055_channel chan,
int8_t exp,
uint16_t mant )

Set PWM channel and frequency.

Set PWM channel and frequency

Parameters
desc- ADP1055 device descriptor
chan- Selected channel
exp- 5-bit twos compliment (-4 to 0)
mant- 11-bit twos compliment
Returns
0 in case of success, negative error otherwise
Here is the caller graph for this function:

◆ adp1055_set_vin()

int adp1055_set_vin ( struct adp1055_desc * desc,
int16_t mant,
int8_t exp,
bool state_on )

Set ADP1055 VIN on/off raw value for input voltage limiting.

Set ADP1055 VIN on/off raw value for input voltage limiting.

Parameters
desc- ADP1055 device descriptor
mant- Mantissa value to be transmitted, 11 bit twos complement.
exp- Exponent value to be transmitted, 5 bit twos complement.
state_on- true - Set VIN_ON. false - Set VIN_OFF.
Returns
0 in case of succes, negative error code otherwise

◆ adp1055_singleshot_mode_df()

int adp1055_singleshot_mode_df ( struct adp1055_desc * desc,
uint8_t zero,
uint8_t pole,
uint8_t lf,
uint8_t hf )

Set ADP1055 Single Shot Digital Filter.

Set ADP1055 Single Shot Digital Filter

Parameters
desc- ADP1055 device descriptor
zero- light mode zero settings.
pole- light mode pole settings.
lf- light mode low filter gain settings.
hf- light mode high filter gain settings.
Returns
0 in case of success, negative error otherwise

◆ adp1055_vout_droop()

int adp1055_vout_droop ( struct adp1055_desc * desc,
uint8_t exp,
uint16_t mant )

Set ADP1055 Vout Droop.

Set ADP1055 Vout Droop

Parameters
desc- ADP1055 device descriptor
exp- Exponent 5-bit two's compliment
mant- Mantissa 11-bit two's compliment
Returns
0 in case of success, negative error code otherwise

◆ adp1055_vout_offset()

int adp1055_vout_offset ( struct adp1055_desc * desc,
int16_t vout_offset )

Set output voltage offset.

Set output voltage offset

Parameters
desc- ADP1055 device descriptor
vout_offset- VOUT offset value.
Returns
0 in case of succes, negative error code otherwise

◆ adp1055_vout_scale()

int adp1055_vout_scale ( struct adp1055_desc * desc,
uint8_t exp,
uint16_t mant )

Set ADP1055 VOUT_SCALE_MONITOR.

Set ADP1055 VOUT_SCALE_MONITOR

Parameters
desc- ADP1055 device descriptor
exp- Exponent - 5-bit twos complement
mant- Mantissa - 11-bit twos complement
Returns
0 in case of succes, negative error code otherwise
Here is the caller graph for this function:

◆ adp1055_vout_scale_loop()

int adp1055_vout_scale_loop ( struct adp1055_desc * desc,
uint8_t exp,
uint16_t mant )

Set ADP1055 vout scale loop.

Set ADP1055 vout scale loop

Parameters
desc- ADP1055 device descriptor
exp- Exponent 5-bit two's compliment
mant- Mantissa 11-bit two's compliment
Returns
0 in case of success, negative error code otherwise

◆ adp1055_vout_tr()

int adp1055_vout_tr ( struct adp1055_desc * desc,
uint8_t exp,
uint16_t mant )

Set ADP1055 VOUT transition rate.

Set ADP1055 VOUT transition rate

Parameters
desc- ADP1055 device descriptor
exp- Exponent - 5-bit twos complement
mant- Mantissa - 11-bit twos complement
Returns
0 in case of succes, negative error code otherwise

◆ adp1055_vout_value()

int adp1055_vout_value ( struct adp1055_desc * desc,
uint16_t vout_command,
uint16_t vout_max )

Set VOUT_COMMAND and VOUT_MAX values.

Set VOUT_COMMAND and VOUT_MAX values

Parameters
desc- ADP1055 descriptor
vout_command- VOUT_COMMAND value
vout_max- VOUT_MAX value
Returns
0 in case of success, negative error code otherwise
Here is the caller graph for this function:

◆ adp1055_write()

int adp1055_write ( struct adp1055_desc * desc,
uint16_t command,
uint16_t data,
uint8_t byte_num )

  • Write data to ADP1055

Write data to ADP1055

Parameters
desc- ADP1055 device structure
command- Command value
data- Data value to write in ADP1055
byte_num- Number of bytes to write.
Returns
0 in case of success, negative error code otherwise
Here is the caller graph for this function: