![]() |
no-OS
|
Implementation of IIO LT8491 Driver. More...
#include <errno.h>#include "iio_lt8491.h"#include "lt8491.h"#include "no_os_alloc.h"#include "no_os_error.h"Macros | |
| #define | LT8491_IIO_CH_ATTR_RW(_name, _priv) |
| #define | LT8491_IIO_CH_ATTR_RO(_name, _priv) |
| #define | LT8491_IIO_CH_ATTR_WO(_name, _priv) |
| #define | LT8491_IIO_CH_ATTR_READ_RAW(_name, _priv) |
| #define | LT8491_IIO_CH_ATTR_READ_SCALE(_name, _priv) |
Enumerations | |
| enum | lt8491_attr_priv { LT8491_TBAT , LT8491_POUT , LT8491_PIN , LT8491_EFF , LT8491_IOUT , LT8491_IIN , LT8491_VBAT , LT8491_VIN , LT8491_CHARGING_STAGE , LT8491_CHARGING_STATUS , LT8491_ENABLE , LT8491_RESTART , LT8491_SCRATCH , LT8491_SERIAL_ID } |
Functions | |
| int | lt8491_iio_init (struct lt8491_iio_device **iio_device, struct lt8491_iio_init_param *iio_init_param) |
| Initializes the LT8491 IIO driver. | |
| int | lt8491_iio_remove (struct lt8491_iio_device *iio_device) |
| Free resources allocated by the init function. | |
Implementation of IIO LT8491 Driver.
Copyright 2024(c) Analog Devices, Inc.
SPDX-License-Identifier: BSD-3-Clause
| #define LT8491_IIO_CH_ATTR_READ_RAW | ( | _name, | |
| _priv ) |
| #define LT8491_IIO_CH_ATTR_READ_SCALE | ( | _name, | |
| _priv ) |
| #define LT8491_IIO_CH_ATTR_RO | ( | _name, | |
| _priv ) |
| #define LT8491_IIO_CH_ATTR_RW | ( | _name, | |
| _priv ) |
| #define LT8491_IIO_CH_ATTR_WO | ( | _name, | |
| _priv ) |
| enum lt8491_attr_priv |
| int lt8491_iio_init | ( | struct lt8491_iio_device ** | iio_device, |
| struct lt8491_iio_init_param * | iio_init_param ) |
Initializes the LT8491 IIO driver.
| iio_device | - The iio device structure. |
| iio_init_param | - Parameters for the initialization of iio_dev |
| int lt8491_iio_remove | ( | struct lt8491_iio_device * | iio_device | ) |
Free resources allocated by the init function.
| iio_device | - The iio device structure. |