ad-hoc test file looking for an error condition. More...
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
Go to the source code of this file.
Defines | |
#define | NFLATS 32 |
#define | MAXBUF 0x10000 |
#define | FLATFMT "FLATLINE %s %5d 0x%04x %6s at %d\n" |
#define | HEXIBLE(v) ((v)&0x0000ffff) |
Functions | |
void | find_flatline (int fd) |
int | main (int argc, const char *argv[]) |
Variables | |
unsigned short | last_value |
int | repeat_count |
int | error_count |
short * | buffer |
const char * | fname |
ad-hoc test file looking for an error condition.
test files for flatline condition input files are channelized shorts
Definition in file flatline.c.
#define FLATFMT "FLATLINE %s %5d 0x%04x %6s at %d\n" |
Referenced by find_flatline().
#define HEXIBLE | ( | v | ) | ((v)&0x0000ffff) |
Referenced by find_flatline().
#define MAXBUF 0x10000 |
Definition at line 15 of file flatline.c.
Referenced by find_flatline(), and main().
#define NFLATS 32 |
Definition at line 14 of file flatline.c.
void find_flatline | ( | int | fd | ) |
Definition at line 25 of file flatline.c.
References buffer, FLATFMT, fname, HEXIBLE, last_value, MAXBUF, and repeat_count.
Referenced by main().
int main | ( | int | argc, | |
const char * | argv[] | |||
) |
Definition at line 69 of file flatline.c.
References buffer, error_count, find_flatline(), fname, and MAXBUF.
Definition at line 22 of file flatline.c.
Referenced by find_flatline(), and main().
int error_count |
Definition at line 21 of file flatline.c.
Referenced by main().
const char* fname |
Definition at line 23 of file flatline.c.
Referenced by find_flatline(), getSlavePa(), host_len(), host_pa(), main(), mmapBigBuffer(), mmapDmaBuffer(), and mmapMbox().
unsigned short last_value |
Definition at line 17 of file flatline.c.
Referenced by find_flatline().
int repeat_count |
Definition at line 18 of file flatline.c.
Referenced by find_flatline().