moberg_config.h 1.89 KB
Newer Older
Anders Blomdell's avatar
Anders Blomdell committed
1
2
3
#ifndef __MOBERG_CONFIG_H__
#define __MOBERG_CONFIG_H__

4
#include <moberg.h>
Anders Blomdell's avatar
Anders Blomdell committed
5
6
7
8
9
10
11
12
13
14
15
16
#include <moberg_device.h>

struct moberg_config *moberg_config_new();

void moberg_config_free(struct moberg_config *config);

int moberg_config_join(struct moberg_config *dest,
                       struct moberg_config *src);

int moberg_config_add_device(struct moberg_config *config,
                             struct moberg_device *device);

17
18
19
20
int moberg_config_install_channels(struct moberg_config *config,
                                   struct moberg_install_channels *install);

#if 0
Anders Blomdell's avatar
Anders Blomdell committed
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
int moberg_config_add_analog_in(struct moberg_config *config,
                                int index,
                                struct moberg_device* device,
                                struct moberg_device_analog_in *channel);
                            
int moberg_config_add_analog_out(struct moberg_config *config,
                                 int index,
                                 struct moberg_device* device,
                                 struct moberg_device_analog_out *channel);
                            
int moberg_config_add_digital_in(struct moberg_config *config,
                                 int index,
                                 struct moberg_device* device,
                                 struct moberg_device_digital_in *channel);
                            
int moberg_config_add_digital_out(struct moberg_config *config,
                                  int index,
                                  struct moberg_device* device,
                                  struct moberg_device_digital_out *channel);
                            
int moberg_config_add_encoder_in(struct moberg_config *config,
                                 int index,
                                 struct moberg_device* device,
                                 struct moberg_device_encoder_in *channel);
45
# endif
Anders Blomdell's avatar
Anders Blomdell committed
46

Anders Blomdell's avatar
Anders Blomdell committed
47
#endif