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
44
51
59
67
70 enum adg1712_switch sw,
71 bool enable);
72
75 enum adg1712_switch sw,
76 bool *enable);
77
81
83int adg1712_remove(struct adg1712_dev *dev);
84
85#endif // ADG1712_H_
struct ad7616_init_param init_param
Definition ad7616_sdz.c:107
adg1712_switch
Definition adg1712.h:45
@ ADG1712_SW3
Definition adg1712.h:48
@ ADG1712_SW2
Definition adg1712.h:47
@ ADG1712_SW1
Definition adg1712.h:46
@ ADG1712_SW4
Definition adg1712.h:49
int adg1712_init(struct adg1712_dev **device, struct adg1712_init_param *init_param)
Initialize the ADG1712 device.
Definition adg1712.c:131
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:85
adg1712_chip_id
Definition adg1712.h:40
@ ID_ADG1712
Definition adg1712.h:41
@ ID_ADG2712
Definition adg1712.h:42
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:201
Header file of GPIO Interface.
Definition adg1712.h:52
struct no_os_gpio_desc * gpio_in1
Definition adg1712.h:54
enum adg1712_chip_id chip_id
Definition adg1712.h:53
struct no_os_gpio_desc * gpio_in2
Definition adg1712.h:55
struct no_os_gpio_desc * gpio_in4
Definition adg1712.h:57
struct no_os_gpio_desc * gpio_in3
Definition adg1712.h:56
Definition adg1712.h:60
struct no_os_gpio_init_param gpio_in3
Definition adg1712.h:64
enum adg1712_chip_id chip_id
Definition adg1712.h:61
struct no_os_gpio_init_param gpio_in4
Definition adg1712.h:65
struct no_os_gpio_init_param gpio_in1
Definition adg1712.h:62
struct no_os_gpio_init_param gpio_in2
Definition adg1712.h:63
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