Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: sdp_k1_sdram
ad717x_iio.c File Reference
Source file for the AD717x IIO Application. More...
Go to the source code of this file.
Functions | |
static int32_t | get_adc_attribute (void *device, char *buf, uint32_t len, const struct iio_ch_info *channel, intptr_t id) |
Getter/Setter for the attribute value. | |
static int32_t | iio_ad717x_debug_reg_read (void *dev, uint32_t reg, uint32_t *readval) |
Read the debug register value. | |
static int32_t | iio_ad717x_debug_reg_write (void *dev, uint32_t reg, uint32_t write_val) |
Write value to the debug register. | |
static int32_t | iio_ad717x_pre_enable (void *dev_instance, uint32_t chn_mask) |
Transfer the device data into memory (optional) | |
static int32_t | iio_ad717x_submit_buffer (struct iio_device_data *iio_dev_data) |
Read buffer data corresponding to AD4170 IIO device. | |
static int32_t | iio_ad717x_post_disable (void *dev) |
Perform tasks before end of current data transfer. | |
int32_t | iio_ad717x_init (struct iio_device **desc) |
Init for reading/writing and parameterization of a AD717x IIO device. | |
static int32_t | ad717x_update_attr_parameters (ad717x_dev *device) |
Function to update scale and offset values based on user selection. | |
int32_t | ad717x_iio_initialize (void) |
Initialize the AD717x IIO Interface. | |
void | ad717x_iio_event_handler (void) |
Run the AD717x IIO event handler. |
Detailed Description
Source file for the AD717x IIO Application.
Copyright (c) 2021-22 Analog Devices, Inc. All rights reserved.
This software is proprietary to Analog Devices, Inc. and its licensors. By using this software you agree to the terms of the associated Analog Devices Software License Agreement.
Definition in file ad717x_iio.c.
Function Documentation
void ad717x_iio_event_handler | ( | void | ) |
int32_t ad717x_iio_initialize | ( | void | ) |
Initialize the AD717x IIO Interface.
- Returns:
- 0 in case of success, negative error code otherwise
Definition at line 434 of file ad717x_iio.c.
static int32_t ad717x_update_attr_parameters | ( | ad717x_dev * | device ) | [static] |
Function to update scale and offset values based on user selection.
- Parameters:
-
device[in] AD717x device descriptor
- Returns:
- 0 in case of success, negative error code otherwise
Definition at line 387 of file ad717x_iio.c.
static int32_t get_adc_attribute | ( | void * | device, |
char * | buf, | ||
uint32_t | len, | ||
const struct iio_ch_info * | channel, | ||
intptr_t | id | ||
) | [static] |
Getter/Setter for the attribute value.
- Parameters:
-
device[in]- pointer to IIO device structure buf[in]- pointer to buffer holding attribute value len[in]- length of buffer string data channel[in]- pointer to IIO channel structure id[in]- Attribute ID
- Returns:
- Number of characters read/written in case of success, negative error code otherwise
Definition at line 152 of file ad717x_iio.c.
static int32_t iio_ad717x_debug_reg_read | ( | void * | dev, |
uint32_t | reg, | ||
uint32_t * | readval | ||
) | [static] |
Read the debug register value.
- Parameters:
-
desc[in,out] - Pointer to IIO device descriptor reg[in]- Address of the register to be read readval[out]- Pointer to the register data variable
- Returns:
- 0 in case of success, negative error code
Definition at line 250 of file ad717x_iio.c.
static int32_t iio_ad717x_debug_reg_write | ( | void * | dev, |
uint32_t | reg, | ||
uint32_t | write_val | ||
) | [static] |
Write value to the debug register.
- Parameters:
-
desc[in,out] Pointer to IIO device descriptor reg[in] Address of the register where the data is to be written write_val[out] Pointer to the register data variable
- Returns:
- 0 in case of success, negative error code otherwise
Definition at line 280 of file ad717x_iio.c.
int32_t iio_ad717x_init | ( | struct iio_device ** | desc ) |
Init for reading/writing and parameterization of a AD717x IIO device.
- Parameters:
-
desc[in,out] IIO device descriptor
- Returns:
- 0 in case of success, negative error code otherwise
Definition at line 356 of file ad717x_iio.c.
static int32_t iio_ad717x_post_disable | ( | void * | dev ) | [static] |
Perform tasks before end of current data transfer.
- Parameters:
-
dev[in] - IIO device instance
- Returns:
- 0 in case of success or negative value otherwise
Definition at line 345 of file ad717x_iio.c.
static int32_t iio_ad717x_pre_enable | ( | void * | dev_instance, |
uint32_t | chn_mask | ||
) | [static] |
Transfer the device data into memory (optional)
- Parameters:
-
dev_instance[in] - IIO device instance ch_mask[in] - Channels select mask
- Returns:
- 0 in case of success or negative value otherwise
Definition at line 307 of file ad717x_iio.c.
static int32_t iio_ad717x_submit_buffer | ( | struct iio_device_data * | iio_dev_data ) | [static] |
Read buffer data corresponding to AD4170 IIO device.
- Parameters:
-
iio_dev_data[in] - Pointer to IIO device data structure
- Returns:
- 0 in case of success or negative value otherwise
Definition at line 318 of file ad717x_iio.c.
Generated on Tue Nov 15 2022 11:39:51 by
