Skip to content
Snippets Groups Projects
Commit f6aa76ef authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Initial attempt at documentation

parent 32336c2e
Branches
Tags
No related merge requests found
# Moberg
A library for connecting to various input/output libraries
with a common (very simple interface).
with a common interface. The C api is:
```C
```c
struct moberg_t;
struct moberg_digital_in_t;
......@@ -15,3 +15,21 @@ struct moberg_digital_in_t *moberg_open_digital_in(
int channel);
```
Config files are formatted as
```
comedi = {
device = /dev/comedi0
modprobe = [ comedi 8255 comedi_fc mite ni_tio ni_tiocmd ni_pcimio ]
config = [ ni_pcimio ]
# Moberg mapping[indices] = driver specific[indices]
map digital_in[0:7] = subdevice[4][0:7]
}
serial2002 = {
device = /dev/ttyS0
baud = 115200
# Moberg mapping[indices] = driver specific[indices]
map digital_in[30:37] = digital_in[0:7]
}
```
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment