@ LT7182S_IIO_VOUT_1_CHAN
Definition: iio_lt7182s.c:65
#define LT7182S_PAGE
Definition: lt7182s.h:51
#define LT7182S_READ_IOUT
Definition: lt7182s.h:117
#define MILLI
Definition: no_os_units.h:48
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:116
lt7182s_iio_pwm_params
Definition: iio_lt7182s.c:58
#define LT7182S_MFR_CONFIG_ALL
Definition: lt7182s.h:138
#define LT7182S_MFR_SPECIAL_ID
Definition: lt7182s.h:153
#define LT7182S_IIN_OC_WARN_LIMIT
Definition: lt7182s.h:95
#define LT7182S_STATUS_WORD
Definition: lt7182s.h:106
@ IIO_VAL_INT
Definition: iio_types.h:50
Struct describing the scan type.
Definition: iio_types.h:168
#define LT7182S_VIN_OFF
Definition: lt7182s.h:78
#define dev_err(dev, format,...)
Definition: ad9361_util.h:63
#define LT7182S_READ_POUT
Definition: lt7182s.h:120
#define LT7182S_STATUS_TEMPERATURE
Definition: lt7182s.h:110
#define LT7182S_WRITE_PROTECT
Definition: lt7182s.h:60
int lt7182s_sync_config(struct lt7182s_dev *dev, bool input_clk, bool output_clk)
Configure SYNC pin for clock synchronization.
Definition: lt7182s.c:1458
#define LT7182S_RESTORE_USER_ALL
Definition: lt7182s.h:63
@ LT7182S_IIO_TEMP_CHAN
Definition: iio_lt7182s.c:72
@ LT7182S_IIO_PWM_FREQUENCY
Definition: iio_lt7182s.c:59
int lt7182s_set_limit(struct lt7182s_dev *dev, int channel, enum lt7182s_limit_type limit, int limit_val)
Set overvalue and undervalue limits.
Definition: lt7182s.c:1403
#define LT7182S_MFR_REVISION
Definition: lt7182s.h:125
#define LT7182S_MFR_ADC_CONTROL
Definition: lt7182s.h:143
@ LT7182S_CHAN_ALL
Definition: lt7182s.h:234
Structure holding channel attributess.
Definition: iio_types.h:103
#define LT7182S_TON_RISE
Definition: lt7182s.h:98
#define LT7182S_MFR_CHANNEL_STATE
Definition: lt7182s.h:161
@ LT7182S_IIO_VOUT_0_CHAN
Definition: iio_lt7182s.c:64
#define LT7182S_READ_FREQUENCY
Definition: lt7182s.h:119
@ IIO_VAL_INT_PLUS_MICRO
Definition: iio_types.h:51
#define LT7182S_STATUS_VOUT
Definition: lt7182s.h:107
int lt7182s_read_block_data(struct lt7182s_dev *dev, int page, uint8_t cmd, uint8_t *data, size_t nbytes)
Perform a PMBus read block operation.
Definition: lt7182s.c:1048
#define LT7182S_VIN_UV_WARN_LIMIT
Definition: lt7182s.h:94
#define LT7182S_MFR_ADDRESS
Definition: lt7182s.h:152
@ IIO_VAL_FRACTIONAL
Definition: iio_types.h:55
#define LT7182S_MFR_FAULT_RESPONSE
Definition: lt7182s.h:141
#define LT7182S_VOUT_MARGIN_HIGH
Definition: lt7182s.h:72
#define LT7182S_PWM_OP_MODE_BIT
Definition: lt7182s.h:215
int lt7182s_init(struct lt7182s_dev **device, struct lt7182s_init_param *init_param)
Initialize the device structure.
Definition: lt7182s.c:523
#define LT7182S_MFR_RAIL_ADDRESS
Definition: lt7182s.h:167
#define LT7182S_CAPABILITY
Definition: lt7182s.h:65
#define LT7182S_VOUT_TRANSITION_RATE
Definition: lt7182s.h:74
@ LT7182S_IIO_IIN_1_CHAN
Definition: iio_lt7182s.c:69
@ LT7182S_IIO_VIN_1_CHAN
Definition: iio_lt7182s.c:67
#define LT7182S_TOFF_FALL
Definition: lt7182s.h:102
#define LT7182S_MFR_COMPARE_USER_ALL
Definition: lt7182s.h:160
@ LT7182S_IIO_PULSE_ENABLE
Definition: iio_lt7182s.c:54
@ LT7182S_IIO_VIN_0_CHAN
Definition: iio_lt7182s.c:66
#define LT7182S_MFR_RETRY_DELAY
Definition: lt7182s.h:144
Definition: lt7182s.h:319
#define LT7182S_STATUS_IOUT
Definition: lt7182s.h:108
#define LT7182S_TOFF_DELAY
Definition: lt7182s.h:101
int lt7182s_pwm_phase(struct lt7182s_dev *dev, int channel, int phase)
Set output PWM phase.
Definition: lt7182s.c:1378
struct lt7182s_dev * lt7182s_dev
Definition: iio_lt7182s.h:44
int lt7182s_switch_freq(struct lt7182s_dev *dev, int freq)
Set switching frequency.
Definition: lt7182s.c:1317
struct iio_device * iio_dev
Definition: iio_lt7182s.h:45
#define LT7182S_REVISION
Definition: lt7182s.h:122
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 LT7182S_VOUT_COMMAND
Definition: lt7182s.h:70
#define LT7182S_MFR_FAULT_LOG_CLEAR
Definition: lt7182s.h:157
#define LT7182S_MFR_READ_ITH
Definition: lt7182s.h:136
#define MICRO
Definition: no_os_units.h:49
#define LT7182S_MFR_TEMPERATURE_1_PEAK
Definition: lt7182s.h:148
@ LT7182S_IIO_VCC_CHAN
Definition: iio_lt7182s.c:73
int lt7182s_write_byte(struct lt7182s_dev *dev, int page, uint8_t cmd, uint8_t value)
Perform a raw PMBus write byte operation.
Definition: lt7182s.c:901
int page
Definition: lt7182s.h:332
#define LT7182S_MFR_USER_DATA_00
Definition: lt7182s.h:131
#define LT7182S_MFR_PWM_MODE
Definition: lt7182s.h:140
int lt7182s_write_word(struct lt7182s_dev *dev, int page, uint8_t cmd, uint16_t word)
Perform a raw PMBus write word operation.
Definition: lt7182s.c:973
int lt7182s_iio_init(struct lt7182s_iio_desc **iio_desc, struct lt7182s_iio_desc_init_param *init_param)
Initializes the LT7182S IIO descriptor.
Definition: iio_lt7182s.c:857
#define LT7182S_PADS_RUN1_BIT
Definition: lt7182s.h:223
@ IIO_SHARED_BY_ALL
Definition: iio_types.h:122
@ LT7182S_FREQUENCY
Definition: lt7182s.h:261
#define LT7182S_TON_MAX_FAULT_RESPONSE
Definition: lt7182s.h:100
#define LT7182S_TON_DELAY
Definition: lt7182s.h:97
#define LT7182S_IIO_CHAN(x)
Definition: iio_lt7182s.c:46
#define LT7182S_TOFF_MAX_WARN_LIMIT
Definition: lt7182s.h:103
#define LT7182S_MFR_SYNC_CONFIG
Definition: lt7182s.h:165
#define LT7182S_OPERATION
Definition: lt7182s.h:52
int lt7182s_iio_init(struct lt7182s_iio_desc **, struct lt7182s_iio_desc_init_param *)
Initializes the LT7182S IIO descriptor.
Definition: iio_lt7182s.c:857
#define LT7182S_SMBALERT_MASK
Definition: lt7182s.h:67
const char * name
Definition: iio_types.h:131
int lt7182s_remove(struct lt7182s_dev *dev)
Free or remove device instance.
Definition: lt7182s.c:716
#define LT7182S_MFR_DISABLE_OUTPUT
Definition: lt7182s.h:168
#define LT7182S_MFR_MODEL
Definition: lt7182s.h:124
const char * name
Definition: iio_types.h:170
#define LT7182S_ON_OFF_CONFIG
Definition: lt7182s.h:53
#define LT7182S_STATUS_CML
Definition: lt7182s.h:111
#define LT7182S_IOUT_OC_FAULT_RESPONSE
Definition: lt7182s.h:86
#define LT7182S_VOUT_UV_WARN_LIMIT
Definition: lt7182s.h:83
#define LT7182S_IOUT_OC_WARN_LIMIT
Definition: lt7182s.h:87
#define LT7182S_VIN_OV_FAULT_RESPONSE
Definition: lt7182s.h:93
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
#define LT7182S_VOUT_UV_FAULT_LIMIT
Definition: lt7182s.h:84
#define LT7182S_OT_FAULT_RESPONSE
Definition: lt7182s.h:90
int lt7182s_read_word(struct lt7182s_dev *dev, int page, uint8_t cmd, uint16_t *word)
Perform a raw PMBus read word operation.
Definition: lt7182s.c:931
#define LT7182S_MFR_ID
Definition: lt7182s.h:123
#define LT7182S_VOUT_OV_WARN_LIMIT
Definition: lt7182s.h:82
#define LT7182S_QUERY
Definition: lt7182s.h:66
#define LT7182S_IIO_REG(x)
Definition: iio_lt7182s.c:45
@ LT7182S_IIO_IIN_0_CHAN
Definition: iio_lt7182s.c:68
Structure holding the LT7182S IIO initialization parameter.
Definition: iio_lt7182s.h:51
#define no_os_clamp(val, min_val, max_val)
Definition: no_os_util.h:69
lt7182s_pwm_mode
Definition: lt7182s.h:314
@ IIO_CURRENT
Definition: iio_types.h:66
int32_t iio_parse_value(char *buf, enum iio_val fmt, int32_t *val, int32_t *val2)
Definition: iio.c:630
#define LT7182S_MFR_PGOOD_DELAY
Definition: lt7182s.h:162
#define LT7182S_VOUT_MAX
Definition: lt7182s.h:71
@ IIO_VOLTAGE
Definition: iio_types.h:65
#define LT7182S_VOUT_MODE
Definition: lt7182s.h:69
int lt7182s_write_word_data(struct lt7182s_dev *dev, int page, uint8_t cmd, int data)
Converts value to register data and do PMBus write word operation.
Definition: lt7182s.c:1025
#define LT7182S_MFR_FAULT_LOG_STORE
Definition: lt7182s.h:156
#define LT7182S_MFR_VIN_PEAK
Definition: lt7182s.h:147
#define LT7182S_MFR_PWM_PHASE
Definition: lt7182s.h:164
#define LT7182S_OT_FAULT_LIMIT
Definition: lt7182s.h:89
#define LT7182S_VIN_ON
Definition: lt7182s.h:77
#define LT7182S_VOUT_OV_FAULT_LIMIT
Definition: lt7182s.h:80
lt7182s_limit_type
Definition: lt7182s.h:271
#define LT7182S_READ_VIN
Definition: lt7182s.h:114
lt7182s_iio_enable_type
Definition: iio_lt7182s.c:52
int lt7182s_read_byte(struct lt7182s_dev *dev, int page, uint8_t cmd, uint8_t *data)
Perform a raw PMBus read byte operation.
Definition: lt7182s.c:862
Header file for the LT7182S IIO Driver.
#define LT7182S_MFR_EE_USER_WP
Definition: lt7182s.h:169
#define LT7182S_MFR_NOT_PGOOD_DELAY
Definition: lt7182s.h:163
int iio_format_value(char *buf, uint32_t len, enum iio_val fmt, int32_t size, int32_t *vals)
Definition: iio.c:686
#define LT7182S_ZONE_CONFIG
Definition: lt7182s.h:57
uint32_t address
Definition: iio_types.h:113
uint32_t no_os_field_get(uint32_t mask, uint32_t word)
#define LT7182S_PAGE_PLUS_READ
Definition: lt7182s.h:56
#define LT7182S_VOUT_OV_FAULT_RESPONSE
Definition: lt7182s.h:81
#define LT7182S_STATUS_INPUT
Definition: lt7182s.h:109
struct iio_attribute * attributes
Definition: iio_types.h:186
#define LT7182S_MFR_CLEAR_PEAKS
Definition: lt7182s.h:149
uint16_t num_ch
Definition: iio_types.h:252
int lt7182s_iio_remove(struct lt7182s_iio_desc *)
Free resources allocated by the init function.
Definition: iio_lt7182s.c:892
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 LT7182S_MFR_COMMON
Definition: lt7182s.h:159
@ IIO_TEMP
Definition: iio_types.h:69
#define LT7182S_ZONE_ACTIVE
Definition: lt7182s.h:58
#define LT7182S_MFR_RESET
Definition: lt7182s.h:170
int lt7182s_read_value(struct lt7182s_dev *dev, int channel, enum lt7182s_value_type value_type, int *value)
Read a value.
Definition: lt7182s.c:1104
#define LT7182S_MFR_USER_DATA_01
Definition: lt7182s.h:132
int lt7182s_set_channel_state(struct lt7182s_dev *dev, int channel, bool state)
Set channel state using the RUN pin.
Definition: lt7182s.c:1437
@ LT7182S_CHAN_1
Definition: lt7182s.h:233
#define LT7182S_MFR_RESTART_DELAY
Definition: lt7182s.h:145
#define LT7182S_IC_DEVICE_REV
Definition: lt7182s.h:129
#define LT7182S_STATUS_MFR_SPECIFIC
Definition: lt7182s.h:112
uint32_t no_os_get_unaligned_be32(uint8_t *buf)
#define LT7182S_STATUS_BYTE
Definition: lt7182s.h:105
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
Structure holding channels and attributes of a device.
Definition: iio_types.h:247
#define LT7182S_MFR_CHAN_CONFIG
Definition: lt7182s.h:137
#define LT7182S_CLEAR_FAULTS
Definition: lt7182s.h:54
#define LT7182S_MFR_PADS
Definition: lt7182s.h:151
Structure holding the LT7182S IIO device descriptor.
Definition: iio_lt7182s.h:43
@ LT7182S_IIO_OUTPUT_ENABLE
Definition: iio_lt7182s.c:53
#define LT7182S_MFR_SERIAL
Definition: lt7182s.h:126
#define LT7182S_TON_MAX_FAULT_LIMIT
Definition: lt7182s.h:99
int lt7182s_send_byte(struct lt7182s_dev *dev, int page, uint8_t cmd)
Send a PMBus command to the device.
Definition: lt7182s.c:835
#define LT7182S_FREQUENCY_SWITCH
Definition: lt7182s.h:76
#define LT7182S_IC_DEVICE_ID
Definition: lt7182s.h:128
@ LT7182S_IIO_SYNC_ENABLE
Definition: iio_lt7182s.c:55
@ LT7182S_CHAN_0
Definition: lt7182s.h:232
#define LT7182S_MFR_FAULT_PROPAGATE
Definition: lt7182s.h:139
#define LT7182S_MFR_USER_DATA_02
Definition: lt7182s.h:133
@ LT7182S_IIO_IOUT_1_CHAN
Definition: iio_lt7182s.c:71
#define LT7182S_VOUT_UV_FAULT_RESPONSE
Definition: lt7182s.h:85
int lt7182s_read_word_data(struct lt7182s_dev *dev, int page, uint8_t cmd, int *data)
Perform a PMBus read word operation and converts to actual value.
Definition: lt7182s.c:1003
#define LT7182S_IIO_REG_CHAN(reg, chan)
Definition: iio_lt7182s.c:44
#define LT7182S_OT_WARN_LIMIT
Definition: lt7182s.h:91
#define LT7182S_READ_TEMPERATURE_1
Definition: lt7182s.h:118
#define LT7182S_SYNC_CLK_OUTPUT_BIT
Definition: lt7182s.h:217
#define LT7182S_READ_VOUT
Definition: lt7182s.h:116
lt7182s_iio_chan_type
Definition: iio_lt7182s.c:63
struct lt7182s_init_param * lt7182s_init_param
Definition: iio_lt7182s.h:52
Header file of utility functions.
int lt7182s_iio_remove(struct lt7182s_iio_desc *iio_desc)
Free resources allocated by the init function.
Definition: iio_lt7182s.c:892
#define LT7182S_MFR_VOUT_PEAK
Definition: lt7182s.h:146
#define LT7182S_MFR_READ_EXTVCC
Definition: lt7182s.h:135
@ LT7182S_IIO_IOUT_0_CHAN
Definition: iio_lt7182s.c:70
#define LT7182S_READ_IIN
Definition: lt7182s.h:115
@ LT7182S_IIO_PWM_PHASE
Definition: iio_lt7182s.c:60
#define LT7182S_VOUT_MARGIN_LOW
Definition: lt7182s.h:73
Definition: lt7182s.h:337
#define LT7182S_MFR_USER_DATA_03
Definition: lt7182s.h:134
#define LT7182S_PADS_RUN0_BIT
Definition: lt7182s.h:222
#define LT7182S_STORE_USER_ALL
Definition: lt7182s.h:62
#define LT7182S_MFR_PIN_CONFIG
Definition: lt7182s.h:166
#define LT7182S_MFR_IOUT_PEAK
Definition: lt7182s.h:142
#define LT7182S_MFR_DISCHARGE_THRESHOLD
Definition: lt7182s.h:150