Source file for the LT7182S IIO Driver.
More...
#include <stdlib.h>
#include <stdio.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 "lt7182s.h"
#include "iio_lt7182s.h"
|
| enum | lt7182s_iio_enable_type {
LT7182S_IIO_OUTPUT_ENABLE
,
LT7182S_IIO_PULSE_ENABLE
,
LT7182S_IIO_SYNC_ENABLE
} |
| |
| enum | lt7182s_iio_pwm_params {
LT7182S_IIO_PWM_FREQUENCY
,
LT7182S_IIO_PWM_PHASE
} |
| |
| enum | lt7182s_iio_chan_type {
LT7182S_IIO_VOUT_0_CHAN
,
LT7182S_IIO_VOUT_1_CHAN
,
LT7182S_IIO_VIN_0_CHAN
,
LT7182S_IIO_VIN_1_CHAN
,
LT7182S_IIO_IIN_0_CHAN
,
LT7182S_IIO_IIN_1_CHAN
,
LT7182S_IIO_IOUT_0_CHAN
,
LT7182S_IIO_IOUT_1_CHAN
,
LT7182S_IIO_TEMP_CHAN
,
LT7182S_IIO_VCC_CHAN
} |
| |
Source file for the LT7182S IIO Driver.
- Author
- Cedric Justine Encarnacion (cedri.nosp@m.cjus.nosp@m.tine..nosp@m.enca.nosp@m.rnaci.nosp@m.on@a.nosp@m.nalog.nosp@m..com)
Copyright 2024(c) Analog Devices, Inc.
SPDX-License-Identifier: BSD-3-Clause
◆ LT7182S_IIO_CHAN
| #define LT7182S_IIO_CHAN |
( |
| x | ) |
|
◆ LT7182S_IIO_REG
| #define LT7182S_IIO_REG |
( |
| x | ) |
|
◆ LT7182S_IIO_REG_CHAN
| #define LT7182S_IIO_REG_CHAN |
( |
| reg, |
|
|
| chan ) |
◆ lt7182s_iio_chan_type
| Enumerator |
|---|
| LT7182S_IIO_VOUT_0_CHAN | |
| LT7182S_IIO_VOUT_1_CHAN | |
| LT7182S_IIO_VIN_0_CHAN | |
| LT7182S_IIO_VIN_1_CHAN | |
| LT7182S_IIO_IIN_0_CHAN | |
| LT7182S_IIO_IIN_1_CHAN | |
| LT7182S_IIO_IOUT_0_CHAN | |
| LT7182S_IIO_IOUT_1_CHAN | |
| LT7182S_IIO_TEMP_CHAN | |
| LT7182S_IIO_VCC_CHAN | |
◆ lt7182s_iio_enable_type
| Enumerator |
|---|
| LT7182S_IIO_OUTPUT_ENABLE | |
| LT7182S_IIO_PULSE_ENABLE | |
| LT7182S_IIO_SYNC_ENABLE | |
◆ lt7182s_iio_pwm_params
| Enumerator |
|---|
| LT7182S_IIO_PWM_FREQUENCY | |
| LT7182S_IIO_PWM_PHASE | |
◆ lt7182s_iio_init()
Initializes the LT7182S IIO descriptor.
- Parameters
-
| iio_desc | - The iio device descriptor. |
| init_param | - The structure that contains the device initial parameters. |
- Returns
- 0 in case of success, an error code otherwise.
◆ lt7182s_iio_remove()
Free resources allocated by the init function.
- Parameters
-
- Returns
- 0 in case of success, an error code otherwise.