no-OS
Loading...
Searching...
No Matches
adg2404.h
Go to the documentation of this file.
1/***************************************************************************/
33#ifndef ADG2404_H_
34#define ADG2404_H_
35
36#include <stdint.h>
37#include <stdbool.h>
38#include "no_os_gpio.h"
39
47
48
54
60
61/* Select the multiplexer channel. */
63 enum adg2404_channel channel);
64/* Enable/disable the multiplexer. */
65int adg2404_enable(struct adg2404_dev *dev, bool enable);
66/* Initialize the device. */
69/* Free the resources allocated by adg2404_init(). */
70int adg2404_remove(struct adg2404_dev *dev);
71
72#endif // ADG2404_H_
struct ad7616_init_param init_param
Definition ad7616_sdz.c:107
int adg2404_enable(struct adg2404_dev *dev, bool enable)
Definition adg2404.c:77
int adg2404_init(struct adg2404_dev **device, struct adg2404_init_param *init_param)
Definition adg2404.c:92
int adg2404_select_channel(struct adg2404_dev *dev, enum adg2404_channel channel)
Definition adg2404.c:46
int adg2404_remove(struct adg2404_dev *dev)
Definition adg2404.c:151
adg2404_channel
Definition adg2404.h:40
@ ADG2404_S1
Definition adg2404.h:42
@ ADG2404_CH_OFF
Definition adg2404.h:41
@ ADG2404_S4
Definition adg2404.h:45
@ ADG2404_S3
Definition adg2404.h:44
@ ADG2404_S2
Definition adg2404.h:43
Header file of GPIO Interface.
Definition adg2404.h:49
struct no_os_gpio_desc * gpio_a1
Definition adg2404.h:51
struct no_os_gpio_desc * gpio_a0
Definition adg2404.h:50
struct no_os_gpio_desc * gpio_en
Definition adg2404.h:52
Definition adg2404.h:55
struct no_os_gpio_init_param gpio_en
Definition adg2404.h:58
struct no_os_gpio_init_param gpio_a1
Definition adg2404.h:57
struct no_os_gpio_init_param gpio_a0
Definition adg2404.h:56
Definition ad9361_util.h:63
Structure holding the GPIO descriptor.
Definition no_os_gpio.h:84
Structure holding the parameters for GPIO initialization.
Definition no_os_gpio.h:67