![]() |
no-OS
|
Source file for the LTC7871 IIO Driver. More...
#include <errno.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include "no_os_alloc.h"#include "no_os_error.h"#include "no_os_units.h"#include "no_os_util.h"#include "ltc7871.h"#include "iio_ltc7871.h"Functions | |
| uint32_t | ltc7871_iio_get_mask_mfr_fault (enum ltc7871_iio_mfr_fault_attrs attr) |
| Get the mask for the MFR_FAULT register. | |
| uint32_t | ltc7871_iio_get_mask_mfr_oc_fault (enum ltc7871_iio_mfr_oc_fault_attrs attr) |
| Get the mask for the MFR_OC_FAULT register. | |
| uint32_t | ltc7871_iio_get_mask_mfr_noc_fault (enum ltc7871_iio_mfr_noc_fault_attrs attr) |
| Get the mask for the MFR_NOC_FAULT register. | |
| uint32_t | ltc7871_iio_get_mask_mfr_status (enum ltc7871_iio_mfr_status_attrs attr) |
| Get the mask for the MFR_STATUS register. | |
| uint32_t | ltc7871_iio_get_mask_mfr_config1 (enum ltc7871_iio_mfr_config1_attrs attr) |
| Get the mask for the MFR_CONFIG1 register. | |
| uint32_t | ltc7871_iio_get_mask_mfr_config2 (enum ltc7871_iio_mfr_config2_attrs attr) |
| Get the mask for the MFR_CONFIG2 register. | |
| uint32_t | ltc7871_iio_get_mask_mfr_chip_ctrl (enum ltc7871_iio_mfr_chip_ctrl_attrs attr) |
| Get the mask for the MFR_CHIP_CTRL register. | |
| int | ltc7871_iio_init (struct ltc7871_iio_dev **iio_dev, struct ltc7871_iio_dev_init_param *init_param) |
| Initializes the LTC7871 IIO descriptor. | |
| int | ltc7871_iio_remove (struct ltc7871_iio_dev *desc) |
| Free resources allocated by the init function. | |
Source file for the LTC7871 IIO Driver.
Copyright 2024(c) Analog Devices, Inc.
SPDX-License-Identifier: BSD-3-Clause
| uint32_t ltc7871_iio_get_mask_mfr_chip_ctrl | ( | enum ltc7871_iio_mfr_chip_ctrl_attrs | attr | ) |
Get the mask for the MFR_CHIP_CTRL register.
| attr | - The attribute for which the mask is needed. |
| uint32_t ltc7871_iio_get_mask_mfr_config1 | ( | enum ltc7871_iio_mfr_config1_attrs | attr | ) |
Get the mask for the MFR_CONFIG1 register.
| attr | - The attribute for which the mask is needed. |
| uint32_t ltc7871_iio_get_mask_mfr_config2 | ( | enum ltc7871_iio_mfr_config2_attrs | attr | ) |
Get the mask for the MFR_CONFIG2 register.
| attr | - The attribute for which the mask is needed. |
| uint32_t ltc7871_iio_get_mask_mfr_fault | ( | enum ltc7871_iio_mfr_fault_attrs | attr | ) |
Get the mask for the MFR_FAULT register.
| attr | - The attribute for which the mask is needed. |
| uint32_t ltc7871_iio_get_mask_mfr_noc_fault | ( | enum ltc7871_iio_mfr_noc_fault_attrs | attr | ) |
Get the mask for the MFR_NOC_FAULT register.
| attr | - The attribute for which the mask is needed. |
| uint32_t ltc7871_iio_get_mask_mfr_oc_fault | ( | enum ltc7871_iio_mfr_oc_fault_attrs | attr | ) |
Get the mask for the MFR_OC_FAULT register.
| attr | - The attribute for which the mask is needed. |
| uint32_t ltc7871_iio_get_mask_mfr_status | ( | enum ltc7871_iio_mfr_status_attrs | attr | ) |
Get the mask for the MFR_STATUS register.
| attr | - The attribute for which the mask is needed. |
| int ltc7871_iio_init | ( | struct ltc7871_iio_dev ** | iio_dev, |
| struct ltc7871_iio_dev_init_param * | init_param ) |
Initializes the LTC7871 IIO descriptor.
| iio_dev | - The iio device descriptor. |
| init_param | - The structure that contains the device initial parameters. |
| int ltc7871_iio_remove | ( | struct ltc7871_iio_dev * | desc | ) |
Free resources allocated by the init function.
| desc | - The iio device descriptor. |