no-OS
Loading...
Searching...
No Matches
adg1736.h
Go to the documentation of this file.
1/***************************************************************************/
33#ifndef ADG1736_H_
34#define ADG1736_H_
35
36#include <stdint.h>
37#include <stdbool.h>
38#include "no_os_gpio.h"
39
44
49
54
59
62 enum adg1736_switch sw,
63 enum adg1736_state state);
64
67 enum adg1736_switch sw,
68 enum adg1736_state *state);
69
73
75int adg1736_remove(struct adg1736_dev *dev);
76
77#endif // ADG1736_H_
struct ad7616_init_param init_param
Definition ad7616_sdz.c:107
int adg1736_get_switch_state(struct adg1736_dev *dev, enum adg1736_switch sw, enum adg1736_state *state)
Get the current state of a specific switch.
Definition adg1736.c:82
int adg1736_init(struct adg1736_dev **device, struct adg1736_init_param *init_param)
Initialize the ADG1736 device.
Definition adg1736.c:122
adg1736_switch
Definition adg1736.h:40
@ ADG1736_SW1
Definition adg1736.h:41
@ ADG1736_SW2
Definition adg1736.h:42
int adg1736_set_switch_state(struct adg1736_dev *dev, enum adg1736_switch sw, enum adg1736_state state)
Set the state of a specific switch.
Definition adg1736.c:46
int adg1736_remove(struct adg1736_dev *dev)
Free resources allocated by adg1736_init().
Definition adg1736.c:170
adg1736_state
Definition adg1736.h:45
@ ADG1736_CONNECT_A
Definition adg1736.h:46
@ ADG1736_CONNECT_B
Definition adg1736.h:47
Header file of GPIO Interface.
Definition adg1736.h:50
struct no_os_gpio_desc * gpio_in1
Definition adg1736.h:51
struct no_os_gpio_desc * gpio_in2
Definition adg1736.h:52
Definition adg1736.h:55
struct no_os_gpio_init_param gpio_in1
Definition adg1736.h:56
struct no_os_gpio_init_param gpio_in2
Definition adg1736.h:57
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