no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
iio_max14906.h
Go to the documentation of this file.
1/***************************************************************************/
33#ifndef IIO_MAX14906_H
34#define IIO_MAX14906_H
35
36#include <stdint.h>
37#include <stdbool.h>
38#include "iio.h"
39#include "max14906.h"
40
41#define MAX14906_FUNCTION_CNT 3
42
50
54static const char *const max14906_function_avail[MAX14906_FUNCTION_CNT] = {
55 [MAX14906_OUT] = "output",
56 [MAX14906_IN] = "input",
57 [MAX14906_HIGH_Z] = "high_z"
58};
59
63static const char *const max14906_do_mode_avail[4] = {
64 [MAX14906_HIGH_SIDE] = "High_side",
65 [MAX14906_HIGH_SIDE_INRUSH] = "High_side_2x_inrush",
66 [MAX14906_PUSH_PULL_CLAMP] = "Push_pull_clamp",
67 [MAX14906_PUSH_PULL] = "Push_pull",
68};
69
73static const char *const max14906_iec_avail[2] = {
74 "Type_1_3",
75 "Type_2"
76};
77
88
96
100
103
104#endif /* IIO_MAX14906_H */
Header file of iio.
int max14906_iio_remove(struct max14906_iio_desc *)
Free resources allocated by the init function.
Definition iio_max14906.c:622
int max14906_iio_init(struct max14906_iio_desc **, struct max14906_iio_desc_init_param *)
Initializes the MAX14906 IIO descriptor.
Definition iio_max14906.c:579
#define MAX14906_FUNCTION_CNT
Definition iio_max14906.h:41
Header file of MAX14906 Driver.
max14906_function
Channel configuration options.
Definition max14906.h:84
@ MAX14906_HIGH_Z
Definition max14906.h:87
@ MAX14906_IN
Definition max14906.h:86
@ MAX14906_OUT
Definition max14906.h:85
#define MAX14906_CHANNELS
Definition max14906.h:43
@ MAX14906_PUSH_PULL
Definition max14906.h:97
@ MAX14906_PUSH_PULL_CLAMP
Definition max14906.h:96
@ MAX14906_HIGH_SIDE_INRUSH
Definition max14906.h:95
@ MAX14906_HIGH_SIDE
Definition max14906.h:94
Structure holding channels and attributes of a device.
Definition iio_types.h:238
Configuration structure for a MAX14906 channel.
Definition iio_max14906.h:46
bool enabled
Definition iio_max14906.h:47
enum max14906_function function
Definition iio_max14906.h:48
Initialization parameter for the MAX14906 IIO descriptor.
Definition iio_max14906.h:92
struct max149x6_init_param * max14906_init_param
Definition iio_max14906.h:93
struct max14906_ch_config channel_configs[MAX14906_CHANNELS]
Definition iio_max14906.h:94
MAX14906 specific IIO descriptor.
Definition iio_max14906.h:81
uint32_t no_active_channels
Definition iio_max14906.h:85
struct iio_device * iio_dev
Definition iio_max14906.h:83
uint32_t active_channels
Definition iio_max14906.h:84
struct max14906_ch_config channel_configs[MAX14906_CHANNELS]
Definition iio_max14906.h:86
struct max149x6_desc * max14906_desc
Definition iio_max14906.h:82
Device descriptor for MAX149X6.
Definition max149x6-base.h:67
Initialization parameter for the MAX149X6 device.
Definition max149x6-base.h:54