no-OS
Loading...
Searching...
No Matches
adg1712.h
Go to the documentation of this file.
1/***************************************************************************/
33#ifndef ADG1712_H_
34#define ADG1712_H_
35
36#include <stdint.h>
37#include <stdbool.h>
38#include "no_os_gpio.h"
39
46
53
60
63 enum adg1712_switch sw,
64 bool enable);
65
68 enum adg1712_switch sw,
69 bool *enable);
70
74
76int adg1712_remove(struct adg1712_dev *dev);
77
78#endif // ADG1712_H_
struct ad7616_init_param init_param
Definition ad7616_sdz.c:107
adg1712_switch
Definition adg1712.h:40
@ ADG1712_SW3
Definition adg1712.h:43
@ ADG1712_SW2
Definition adg1712.h:42
@ ADG1712_SW1
Definition adg1712.h:41
@ ADG1712_SW4
Definition adg1712.h:44
int adg1712_init(struct adg1712_dev **device, struct adg1712_init_param *init_param)
Initialize the ADG1712 device.
Definition adg1712.c:132
int adg1712_get_switch_state(struct adg1712_dev *dev, enum adg1712_switch sw, bool *enable)
Get the current state of a specific switch.
Definition adg1712.c:86
int adg1712_set_switch_state(struct adg1712_dev *dev, enum adg1712_switch sw, bool enable)
Set the state of a specific switch.
Definition adg1712.c:46
int adg1712_remove(struct adg1712_dev *dev)
Free resources allocated by adg1712_init().
Definition adg1712.c:200
Header file of GPIO Interface.
Definition adg1712.h:47
struct no_os_gpio_desc * gpio_in1
Definition adg1712.h:48
struct no_os_gpio_desc * gpio_in2
Definition adg1712.h:49
struct no_os_gpio_desc * gpio_in4
Definition adg1712.h:51
struct no_os_gpio_desc * gpio_in3
Definition adg1712.h:50
Definition adg1712.h:54
struct no_os_gpio_init_param gpio_in3
Definition adg1712.h:57
struct no_os_gpio_init_param gpio_in4
Definition adg1712.h:58
struct no_os_gpio_init_param gpio_in1
Definition adg1712.h:55
struct no_os_gpio_init_param gpio_in2
Definition adg1712.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