#define LTM4686_READ_VIN
Definition: ltm4686.h:106
#define LTM4686_STATUS_MFR_SPECIFIC
Definition: ltm4686.h:104
#define MILLI
Definition: no_os_units.h:48
#define LTM4686_CHAN_1
Definition: ltm4686.h:206
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:116
struct iio_device * iio_dev
Definition: iio_ltm4686.h:45
@ IIO_VAL_INT
Definition: iio_types.h:50
Struct describing the scan type.
Definition: iio_types.h:168
#define dev_err(dev, format,...)
Definition: ad9361_util.h:63
int ltm4686_write_byte(struct ltm4686_dev *dev, int page, uint8_t cmd, uint8_t value)
Perform a raw PMBus write byte operation.
Definition: ltm4686.c:743
#define LTM4686_MFR_FAULT_LOG_CLEAR
Definition: ltm4686.h:152
#define LTM4673_MFR_FAULT_LOG_RESTORE
Definition: ltm4686.h:181
int ltm4686_iio_remove(struct ltm4686_iio_desc *)
Free resources allocated by the init function.
Definition: iio_ltm4686.c:719
enum ltm4686_chip_id id
Definition: ltm4686.h:318
int ltm4686_send_byte(struct ltm4686_dev *dev, int page, uint8_t cmd)
Send a PMBus command to the device.
Definition: ltm4686.c:682
int ltm4686_read_value(struct ltm4686_dev *dev, uint8_t channel, enum ltm4686_value_type value_type, int *value)
Read a value.
Definition: ltm4686.c:946
#define LTM4686_MFR_VIN_PEAK
Definition: ltm4686.h:144
int ltm4686_read_word_data(struct ltm4686_dev *dev, int page, uint8_t cmd, int *data)
Perform a PMBus read word operation and converts to actual value.
Definition: ltm4686.c:845
#define LTM4686_STATUS_VOUT
Definition: ltm4686.h:99
#define LTM4686_OT_FAULT_LIMIT
Definition: ltm4686.h:78
Structure holding channel attributess.
Definition: iio_types.h:103
#define LTM4686_CHAN_0
Definition: ltm4686.h:205
#define LTM4686_STATUS_IOUT
Definition: ltm4686.h:100
#define LTM4686_MFR_RESTART_DELAY
Definition: ltm4686.h:142
#define LTM4686_MFR_VOUT_PEAK
Definition: ltm4686.h:143
#define LTM4686_STORE_USER_ALL
Definition: ltm4686.h:50
@ IIO_VAL_INT_PLUS_MICRO
Definition: iio_types.h:51
#define LTM4686_VOUT_MARGIN_HIGH
Definition: ltm4686.h:59
#define LTM4686_READ_TEMPERATURE_2
Definition: ltm4686.h:111
#define LTM4686_MFR_USER_DATA_03
Definition: ltm4686.h:124
#define LTM4686_IIO_LIM(_name, _reg, _chan)
Definition: iio_ltm4686.c:789
#define LTM4686_MFR_PWM_MODE
Definition: ltm4686.h:135
@ IIO_VAL_FRACTIONAL
Definition: iio_types.h:55
#define LTM4686_IIO_VOUT_CHAN_GROUP(inst)
Definition: iio_ltm4686.c:48
#define LTM4686_STATUS_TEMPERATURE
Definition: ltm4686.h:102
int ltm4686_read_word(struct ltm4686_dev *dev, int page, uint8_t cmd, uint16_t *word)
Perform a raw PMBus read word operation.
Definition: ltm4686.c:773
Definition: ltm4686.h:325
int ltm4686_write_word(struct ltm4686_dev *dev, int page, uint8_t cmd, uint16_t word)
Perform a raw PMBus write word operation.
Definition: ltm4686.c:815
#define LTM4686_MFR_FAULT_LOG_STORE
Definition: ltm4686.h:151
#define LTM4686_TON_RISE
Definition: ltm4686.h:90
#define LTM4686_MFR_PADS
Definition: ltm4686.h:147
#define LTM4686_READ_VOUT
Definition: ltm4686.h:108
Structure holding the LTM4686 IIO initialization parameter.
Definition: iio_ltm4686.h:51
#define LTM4686_SMBALERT_MASK
Definition: ltm4686.h:54
#define LTM4686_CHAN_ALL
Definition: ltm4686.h:209
void * no_os_calloc(size_t nitems, size_t size)
Allocate memory and return a pointer to it, set memory to 0.
Definition: chibios_alloc.c:54
#define NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:49
#define LTM4686_MFR_CONFIG_ALL
Definition: ltm4686.h:133
#define LTM4686_TON_DELAY
Definition: ltm4686.h:89
#define LTM4686_MFR_MODEL
Definition: ltm4686.h:117
#define MICRO
Definition: no_os_units.h:49
#define LTM4686_STATUS_INPUT
Definition: ltm4686.h:101
@ IIO_SHARED_BY_ALL
Definition: iio_types.h:122
#define LTM4686_MFR_USER_DATA_00
Definition: ltm4686.h:121
#define LTM4686_IOUT_OC_WARN_LIMIT
Definition: ltm4686.h:76
uint8_t num_channels
Definition: ltm4686.h:322
#define LTM4686_VIN_UV_WARN_LIMIT
Definition: ltm4686.h:86
struct ltm4686_init_param * ltm4686_init_param
Definition: iio_ltm4686.h:52
#define LTM4686_TOFF_DELAY
Definition: ltm4686.h:93
#define LTM4673_MFR_WATCHDOG_T
Definition: ltm4686.h:177
#define LTM4686_MFR_IOUT_PEAK
Definition: ltm4686.h:138
#define LTM4686_CHAN_3
Definition: ltm4686.h:208
#define LTM4673_MFR_DAC
Definition: ltm4686.h:174
const char * name
Definition: iio_types.h:131
#define LTM4686_VOUT_MARGIN_LOW
Definition: ltm4686.h:60
#define LTM4686_CLEAR_FAULTS
Definition: ltm4686.h:45
#define LTM4686_MFR_IIN_OFFSET
Definition: ltm4686.h:150
#define LTM4686_READ_TEMPERATURE_1
Definition: ltm4686.h:110
const char * name
Definition: iio_types.h:170
#define LTM4686_MFR_RETRY_DELAY
Definition: ltm4686.h:141
#define LTM4686_MFR_ID
Definition: ltm4686.h:116
@ LT7182S_IIO_OUTPUT_ENABLE
Definition: iio_ltm4686.c:56
int ltm4686_iio_init(struct ltm4686_iio_desc **iio_desc, struct ltm4686_iio_desc_init_param *init_param)
Initializes the LTM4686 IIO descriptor.
Definition: iio_ltm4686.c:681
int ltm4686_read_block_data(struct ltm4686_dev *dev, int page, uint8_t cmd, uint8_t *data, size_t nbytes)
Perform a PMBus read block operation.
Definition: ltm4686.c:890
Header file for the LTM4686 IIO Driver.
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
#define LTM4686_MFR_ADDRESS
Definition: ltm4686.h:148
#define LTM4686_RESTORE_USER_ALL
Definition: ltm4686.h:51
@ LTM4686_IIO_TEMP_CHAN
Definition: iio_ltm4686.c:68
@ LT7182S_IIO_SYNC_ENABLE
Definition: iio_ltm4686.c:58
#define LTM4686_CHAN_2
Definition: ltm4686.h:207
@ LT7182S_IIO_PULSE_ENABLE
Definition: iio_ltm4686.c:57
#define LTM4686_TOFF_MAX_WARN_LIMIT
Definition: ltm4686.h:95
#define LTM4686_IIO_CHAN(x)
Definition: iio_ltm4686.c:46
#define no_os_clamp(val, min_val, max_val)
Definition: no_os_util.h:69
@ IIO_CURRENT
Definition: iio_types.h:66
#define LTM4686_TON_MAX_FAULT_LIMIT
Definition: ltm4686.h:91
int32_t iio_parse_value(char *buf, enum iio_val fmt, int32_t *val, int32_t *val2)
Definition: iio.c:630
#define LTM4686_FREQUENCY_SWITCH
Definition: ltm4686.h:63
#define LTM4686_VOUT_OV_FAULT_LIMIT
Definition: ltm4686.h:68
@ IIO_VOLTAGE
Definition: iio_types.h:65
int ltm4686_iio_remove(struct ltm4686_iio_desc *iio_desc)
Free resources allocated by the init function.
Definition: iio_ltm4686.c:719
#define LTM4686_MFR_TEMPERATURE_1_PEAK
Definition: ltm4686.h:145
#define LTM4686_MFR_SPECIAL_ID
Definition: ltm4686.h:149
#define LTM4686_MFR_CHAN_CONFIG
Definition: ltm4686.h:132
Structure holding the LTM4686 IIO device descriptor.
Definition: iio_ltm4686.h:43
#define LTM4686_MFR_COMPARE_USER_ALL
Definition: ltm4686.h:156
#define LTM4686_STATUS_CML
Definition: ltm4686.h:103
lt7182s_iio_enable_type
Definition: iio_lt7182s.c:52
int ltm4686_read_byte(struct ltm4686_dev *dev, int page, uint8_t cmd, uint8_t *data)
Perform a raw PMBus read byte operation.
Definition: ltm4686.c:704
#define LTM4686_TOFF_FALL
Definition: ltm4686.h:94
#define LTM4686_OT_WARN_LIMIT
Definition: ltm4686.h:80
int ltm4686_set_operation(struct ltm4686_dev *dev, uint8_t channel, enum ltm4686_operation_type operation)
Set channel operation.
Definition: ltm4686.c:1213
int iio_format_value(char *buf, uint32_t len, enum iio_val fmt, int32_t size, int32_t *vals)
Definition: iio.c:686
#define LTM4686_IIO_STATUS(_name, _reg, _chan)
Definition: iio_ltm4686.c:828
uint32_t address
Definition: iio_types.h:113
#define LTM4686_IOUT_OC_FAULT_LIMIT
Definition: ltm4686.h:74
struct iio_attribute * attributes
Definition: iio_types.h:186
uint16_t num_ch
Definition: iio_types.h:252
#define LTM4686_READ_IIN
Definition: ltm4686.h:107
void no_os_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:69
#define LTM4686_MFR_USER_DATA_01
Definition: ltm4686.h:122
#define LTM4686_IIO_REG(x)
Definition: iio_ltm4686.c:45
#define LTM4686_VOUT_TRANSITION_RATE
Definition: ltm4686.h:61
#define LTM4686_VOUT_MAX
Definition: ltm4686.h:58
struct ltm4686_dev * ltm4686_dev
Definition: iio_ltm4686.h:44
@ IIO_TEMP
Definition: iio_types.h:69
@ LTM4686_OPERATION_ON
Definition: ltm4686.h:246
#define LTM4673_MFR_IIN_CAL_GAIN
Definition: ltm4686.h:179
#define LTM4673_MFR_PGD_ASSERTION_DELAY
Definition: ltm4686.h:175
uint32_t no_os_get_unaligned_be32(uint8_t *buf)
#define LTM4686_VOUT_COMMAND
Definition: ltm4686.h:57
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
#define LTM4686_READ_IOUT
Definition: ltm4686.h:109
Structure holding channels and attributes of a device.
Definition: iio_types.h:247
@ LTM4686_IIO_VIN_CHAN
Definition: iio_ltm4686.c:66
@ LTM4686_IIO_IIN_CHAN
Definition: iio_ltm4686.c:67
#define LTM4686_VIN_OFF
Definition: ltm4686.h:65
#define LTM4686_VIN_ON
Definition: ltm4686.h:64
#define LTM4686_MFR_GPIO_PROPAGATE
Definition: ltm4686.h:134
#define LTM4686_VOUT_UV_FAULT_LIMIT
Definition: ltm4686.h:72
#define LTM4686_IIN_OC_WARN_LIMIT
Definition: ltm4686.h:87
Header file of the LTM4686 driver.
#define LTM4686_MFR_USER_DATA_02
Definition: ltm4686.h:123
Definition: ltm4686.h:311
@ LTM4686_OPERATION_OFF
Definition: ltm4686.h:245
ltm4686_iio_chan_type
Definition: iio_ltm4686.c:61
#define LTM4686_VIN_OV_FAULT_LIMIT
Definition: ltm4686.h:84
#define LTM4686_MFR_SERIAL
Definition: ltm4686.h:118
int ltm4686_write_word_data(struct ltm4686_dev *dev, int page, uint8_t cmd, int data)
Converts value to register data and do PMBus write word operation.
Definition: ltm4686.c:867
int ltm4686_iio_init(struct ltm4686_iio_desc **, struct ltm4686_iio_desc_init_param *)
Initializes the LTM4686 IIO descriptor.
Definition: iio_ltm4686.c:681
#define LTM4673_MFR_WATCHDOG_T_FIRST
Definition: ltm4686.h:176
Header file of utility functions.
#define LTM4686_MFR_RESET
Definition: ltm4686.h:163
#define LTM4686_OPERATION
Definition: ltm4686.h:43
#define LTM4686_MFR_CLEAR_PEAKS
Definition: ltm4686.h:146
#define LTM4686_VOUT_UV_WARN_LIMIT
Definition: ltm4686.h:71
#define LTM4686_READ_POUT
Definition: ltm4686.h:113
@ ID_LTM4673
Definition: ltm4686.h:236
#define LTM4686_STATUS_WORD
Definition: ltm4686.h:98
int page
Definition: ltm4686.h:319
#define LTM4686_MFR_ADC_CONTROL
Definition: ltm4686.h:139
#define LTM4686_VOUT_OV_WARN_LIMIT
Definition: ltm4686.h:70
#define LTM4686_PAGE_PLUS_READ
Definition: ltm4686.h:47
int ltm4686_init(struct ltm4686_dev **device, struct ltm4686_init_param *init_param)
Initialize the device structure.
Definition: ltm4686.c:460
int ltm4686_remove(struct ltm4686_dev *dev)
Free or remove device instance.
Definition: ltm4686.c:592