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.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
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. |