Defines | Functions | Variables

flatline.c File Reference

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
shortbuffer
const char * fname

Detailed Description

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 Documentation

#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.


Function Documentation

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.


Variable Documentation

Definition at line 22 of file flatline.c.

Referenced by find_flatline(), and main().

Definition at line 21 of file flatline.c.

Referenced by main().

const char* fname
unsigned short last_value

Definition at line 17 of file flatline.c.

Referenced by find_flatline().

Definition at line 18 of file flatline.c.

Referenced by find_flatline().