|
AFHBA404
AFHBA404 connects ACQ2106 to PCI-Express
|
device driver memory mapping interface. More...
#include <sched.h>#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <string.h>#include <errno.h>#include <fcntl.h>#include <sys/ioctl.h>#include <sys/mman.h>#include <sys/types.h>#include "afhba-llcontrol.h"#include <time.h>Go to the source code of this file.
Macros | |
| #define | _GNU_SOURCE |
| #define | HB_FILE "/dev/rtm-t.%lu" |
| #define | LOG_FILE "afhba.%d.log" |
| #define | HB1 "/dev/rtm-t.%d.data/hb01" |
| #define | HB_LEN 0x100000 /* 1MB HOST BUFFERSW */ |
| #define | NS 1000000000 |
| #define | US 1000000 |
| #define | NSUS (NS/US) |
| #define | DEF_NCHAN 16 |
Functions | |
| unsigned | difftime_us (void) |
| void * | get_mapping (dev_t devnum, int *pfd) |
| void | clear_mapping (int fd, void *hb) |
| void | setAffinity (unsigned cpu_mask) |
| void | goRealTime (void) |
Variables | |
| int | nchan = DEF_NCHAN |
| int | spadlongs = 16 |
| int | sched_fifo_priority |
device driver memory mapping interface.
Definition in file afhba-llcontrol.c.
| #define _GNU_SOURCE |
Definition at line 29 of file afhba-llcontrol.c.
| #define DEF_NCHAN 16 |
Definition at line 58 of file afhba-llcontrol.c.
| #define HB1 "/dev/rtm-t.%d.data/hb01" |
Definition at line 47 of file afhba-llcontrol.c.
| #define HB_FILE "/dev/rtm-t.%lu" |
Definition at line 44 of file afhba-llcontrol.c.
| #define HB_LEN 0x100000 /* 1MB HOST BUFFERSW */ |
Definition at line 49 of file afhba-llcontrol.c.
| #define LOG_FILE "afhba.%d.log" |
Definition at line 45 of file afhba-llcontrol.c.
| #define NS 1000000000 |
Definition at line 53 of file afhba-llcontrol.c.
Definition at line 55 of file afhba-llcontrol.c.
| #define US 1000000 |
Definition at line 54 of file afhba-llcontrol.c.
| void clear_mapping | ( | int | fd, |
| void * | hb | ||
| ) |
Definition at line 108 of file afhba-llcontrol.c.
| unsigned difftime_us | ( | void | ) |
Definition at line 63 of file afhba-llcontrol.c.
| void* get_mapping | ( | dev_t | devnum, |
| int * | pfd | ||
| ) |
Definition at line 86 of file afhba-llcontrol.c.
| void goRealTime | ( | void | ) |
Definition at line 138 of file afhba-llcontrol.c.
| void setAffinity | ( | unsigned | cpu_mask | ) |
Definition at line 113 of file afhba-llcontrol.c.
| int nchan = DEF_NCHAN |
Definition at line 59 of file afhba-llcontrol.c.
| int sched_fifo_priority |
Definition at line 136 of file afhba-llcontrol.c.
| int spadlongs = 16 |
Definition at line 60 of file afhba-llcontrol.c.
1.8.18