#define ADM1177_V_FULLSCALE_0
Definition: adm1177.h:81
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:116
@ IIO_VAL_INT
Definition: iio_types.h:50
Struct describing the scan type.
Definition: iio_types.h:168
uint8_t no_of_active_channels
Definition: iio_adm1177.h:45
char sign
Definition: iio_types.h:153
int adm1177_remove(struct adm1177_dev *device)
Free the resources allocated by adm1177_init().
Definition: adm1177.c:79
int adm1177_iio_remove(struct adm1177_iio_dev *desc)
Definition: iio_adm1177.c:248
struct iio_device * iio_dev
Definition: iio_adm1177.h:42
@ IIO_VAL_FRACTIONAL_LOG2
Definition: iio_types.h:56
int adm1177_iio_remove(struct adm1177_iio_dev *desc)
Definition: iio_adm1177.c:248
Structure holding channel attributess.
Definition: iio_types.h:103
adm1177_chan
Definition: iio_adm1177.c:183
@ IIO_VAL_FRACTIONAL
Definition: iio_types.h:55
Definition: iio_adm1177.h:48
Definition: ad9361_util.h:69
int adm1177_write(struct adm1177_dev *device, uint8_t cmd, uint8_t reg_address)
In the write command byte operation, the master device sends a command byte to the slave device.
Definition: adm1177.c:139
uint32_t active_channels
Definition: iio_adm1177.h:44
enum iio_chan_type ch_type
Definition: iio_types.h:172
@ ADM1177_CURRENT
Definition: iio_adm1177.c:185
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 ADM1177_R_SENSE
Definition: adm1177.h:83
const char * name
Definition: iio_types.h:131
struct adm1177_init_param * adm1177_initial
Definition: iio_adm1177.h:49
int adm1177_iio_init(struct adm1177_iio_dev **iio_dev, struct adm1177_iio_init_param *init_param)
Definition: iio_adm1177.c:218
#define ADM1177_CMD_I_CONT
Definition: adm1177.h:48
@ ADM1177_VOLTAGE
Definition: iio_adm1177.c:184
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
@ ADM1177_VRANGE_LOW
Definition: adm1177.h:93
int adm1177_read_conv(struct adm1177_dev *device, uint16_t *conv_voltage, uint16_t *conv_current)
Gets the voltage/current readback from the ADM1177s I2C ADC, if the device is initialized right and t...
Definition: adm1177.c:206
enum adm1177_vrange vrange
Definition: adm1177.h:100
@ ADM1177_VOLTAGE_EN
Definition: adm1177.h:86
@ IIO_CURRENT
Definition: iio_types.h:66
int adm1177_iio_init(struct adm1177_iio_dev **iio_dev, struct adm1177_iio_init_param *init_param)
Definition: iio_adm1177.c:218
@ IIO_VOLTAGE
Definition: iio_types.h:65
#define ADM1177_V_FULLSCALE_1
Definition: adm1177.h:82
Definition: iio_adm1177.h:40
#define ADM1177_CMD_V_CONT
Definition: adm1177.h:46
int iio_format_value(char *buf, uint32_t len, enum iio_val fmt, int32_t size, int32_t *vals)
Definition: iio.c:686
#define ADM1177_RESOLUTION
Definition: adm1177.h:80
Header file for iio_types.
#define NO_OS_BIT(x)
Definition: no_os_util.h:45
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
enum iio_chan_type type
Definition: iio_types.h:109
unsigned int no_os_hweight8(uint8_t word)
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
Structure holding channels and attributes of a device.
Definition: iio_types.h:247
struct adm1177_dev * adm1177_dev
Definition: iio_adm1177.h:41
@ ADM1177_CURRENT_EN
Definition: adm1177.h:87
Definition: iio_types.h:151
Header file of utility functions.
Header file of iio_adm1177.
int adm1177_init(struct adm1177_dev **device, struct adm1177_init_param *init_param)
Initializes I2C.
Definition: adm1177.c:50
#define ADM1177_I_FULLSCALE
Definition: adm1177.h:79
Definition: adm1177.h:103
uint8_t realbits
Definition: iio_types.h:155