Subversion Repositories shark

Rev

Blame | Last modification | View Log | RSS feed

#ifndef __RTDAC4__
#define __RTDAC4__

/* Open the RT-DAC4/PCI card */
int RTDAC4_open(void);

/* Close the RT-DAC4/PCI card */
int RTDAC4_close(void);

/* Reads state information into vector buf.
   Angle address: BASE_ADDRESS + 8   (16 bits)
   Cart address:  BASE_ADDRESS + 12  (16 bits)
*/

int RTDAC4_read_states(char *buf);

/* Control the electric motor.
   Max output when testing: 650.
   Max to motor:            1023.
*/

int RTDAC4_set_motor(const short *buff);

/* IOCTL emulation */
int RTDAC4_ioctl(unsigned int request, unsigned long l);

#endif