Rev 1655 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1655 | giacomo | 1 | #ifndef __RTDAC4__ |
2 | #define __RTDAC4__ |
||
3 | |||
4 | /* Open the RT-DAC4/PCI card */ |
||
5 | int RTDAC4_open(void); |
||
6 | |||
7 | /* Close the RT-DAC4/PCI card */ |
||
8 | int RTDAC4_close(void); |
||
9 | |||
10 | /* Reads state information into vector buf. |
||
11 | Angle address: BASE_ADDRESS + 8 (16 bits) |
||
12 | Cart address: BASE_ADDRESS + 12 (16 bits) |
||
13 | */ |
||
14 | int RTDAC4_read_states(char *buf); |
||
15 | |||
16 | /* Control the electric motor. |
||
17 | Max output when testing: 650. |
||
18 | Max to motor: 1023. |
||
19 | */ |
||
20 | int RTDAC4_set_motor(const short *buff); |
||
21 | |||
22 | /* IOCTL emulation */ |
||
23 | int RTDAC4_ioctl(unsigned int request, unsigned long l); |
||
24 | |||
25 | #endif |