nidas  v1.2-1520
Functions
set_emerald.c File Reference
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <errno.h>
#include <nidas/linux/diamond/emerald.h>

Functions

int printConfig (int fd, const char *devname, int eepromAccess)
 
int setConfig (int fd, const char *devname, int port0Addr, const int *irqs, int eepromAccess)
 
int getNumBoards (int fd, const char *devname)
 
int getISABaseAddr (int fd, const char *devname, unsigned long *baseaddr)
 
int enablePorts (int fd, const char *devname)
 
int getPortMode (int fd, const char *devname, int eepromAccess)
 
int setPortMode (int fd, const char *devname, int eepromAccess, int mode)
 
void usage (const char *argv0)
 
int main (int argc, char **argv)
 

Function Documentation

int enablePorts ( int  fd,
const char *  devname 
)

References EMERALD_IOCPORTENABLE.

Referenced by main().

int getISABaseAddr ( int  fd,
const char *  devname,
unsigned long *  baseaddr 
)

References EMERALD_IOCGISABASE.

Referenced by main().

int getNumBoards ( int  fd,
const char *  devname 
)

References EMERALD_IOCGNBOARD.

Referenced by main().

int getPortMode ( int  fd,
const char *  devname,
int  eepromAccess 
)
int main ( int  argc,
char **  argv 
)
int printConfig ( int  fd,
const char *  devname,
int  eepromAccess 
)
int setConfig ( int  fd,
const char *  devname,
int  port0Addr,
const int *  irqs,
int  eepromAccess 
)
int setPortMode ( int  fd,
const char *  devname,
int  eepromAccess,
int  mode 
)
void usage ( const char *  argv0)