no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
iio_max22200.h
Go to the documentation of this file.
1/***************************************************************************/
33#ifndef IIO_MAX22200_H
34#define IIO_MAX22200_H
35
36#include <stdint.h>
37#include <stdbool.h>
38#include "iio.h"
39#include "max22200.h"
40
41#define MAX22200_HOLD_MAX_VAL 0xFF
42#define MAX22200_HIT_T_MAX_VAL 0xFF
43
53
65
75
76static const char *const max22200_scale_avail[2] = {
77 "fullscale",
78 "half_fullscale"
79};
80
81static const char *const max22200_channel_trig_avail[2] = {
82 "onch_spi",
83 "ext_trig"
84};
85
86static const char *const max22200_ch_drive_avail[2] = {
87 "current_drive",
88 "voltage_dri"
89};
90
91static const char *const max22200_ch_side_avail[2] = {
92 "low_side",
93 "high_side"
94};
95
96static const char *const max22200_ch_op_mode_avail[3] = {
97 "independent_mode",
98 "parallel_mode",
99 "half_bridge_mode",
100};
101
102static const char *const max22200_channel_freq_avail[4] = {
103 "freqmain_div_4",
104 "freqmain_div_3",
105 "freqmain_div_2",
106 "freqmain"
107};
108
109static const char *const max22200_chopping_freq_avail[2] = {
110 "100KHz",
111 "80KHz"
112};
113
121
129
133
136
137#endif
Header file of iio.
max22200_iio_fault_mask
Definition iio_max22200.h:44
@ MAX22200_IIO_COMER_MASK
Definition iio_max22200.h:46
@ MAX22200_IIO_DPM_MASK
Definition iio_max22200.h:47
@ MAX22200_IIO_OCP_MASK
Definition iio_max22200.h:50
@ MAX22200_IIO_HHF_MASK
Definition iio_max22200.h:48
@ MAX22200_IIO_UVM_MASK
Definition iio_max22200.h:45
@ MAX22200_IIO_OVT_MASK
Definition iio_max22200.h:51
@ MAX22200_IIO_OLF_MASK
Definition iio_max22200.h:49
max22200_iio_ch_attrs
Definition iio_max22200.h:54
@ MAX22200_IIO_SCALE
Definition iio_max22200.h:55
@ MAX22200_IIO_CH_SIDE
Definition iio_max22200.h:61
@ MAX22200_IIO_HIT_CURRENT
Definition iio_max22200.h:56
@ MAX22200_IIO_HOLD_CURRENT
Definition iio_max22200.h:58
@ MAX22200_IIO_CH_TRIG
Definition iio_max22200.h:59
@ MAX22200_IIO_CH_DRIVE
Definition iio_max22200.h:60
@ MAX22200_IIO_HIT_TIME
Definition iio_max22200.h:57
@ MAX22200_IIO_CH_OP_MODE
Definition iio_max22200.h:62
@ MAX22200_IIO_CH_FREQ
Definition iio_max22200.h:63
max22200_iio_available
Definition iio_max22200.h:66
@ MAX22200_IIO_CH_DRIVE_AVAILABLE
Definition iio_max22200.h:71
@ MAX22200_IIO_CH_TRIG_AVAILABLE
Definition iio_max22200.h:68
@ MAX22200_IIO_CH_SIDE_AVAILABLE
Definition iio_max22200.h:72
@ MAX22200_IIO_CH_FREQ_AVAILABLE
Definition iio_max22200.h:69
@ MAX22200_IIO_SCALE_AVAILABLE
Definition iio_max22200.h:67
@ MAX22200_IIO_CHOP_FREQ_AVAILABLE
Definition iio_max22200.h:70
@ MAX22200_IIO_CH_OP_MODE_AVAILABLE
Definition iio_max22200.h:73
int max22200_iio_init(struct max22200_iio_desc **, struct max22200_iio_desc_init_param *)
Initializes the MAX22200 IIO descriptor.
Definition iio_max22200.c:1041
int max22200_iio_remove(struct max22200_iio_desc *)
Free resources allocated by the init function.
Definition iio_max22200.c:1080
Header file of MAX22200 Driver.
#define MAX22200_CHANNELS
Definition max22200.h:44
Structure holding channels and attributes of a device.
Definition iio_types.h:238
Initalization parameter fr the MAX22200 IIO descriptor.
Definition iio_max22200.h:125
struct max22200_init_param * max22200_init_param
Definition iio_max22200.h:126
bool ch_enable[MAX22200_CHANNELS]
Definition iio_max22200.h:127
MAX22200 specific IIO descriptor.
Definition iio_max22200.h:117
struct iio_device * iio_dev
Definition iio_max22200.h:119
struct max22200_desc * max22200_desc
Definition iio_max22200.h:118