#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <sys/time.h>
#include <time.h>
#include <errno.h>
Go to the source code of this file.
Defines |
#define | BLACK 0 |
#define | WHITE 1 |
#define | RED 2 |
#define | GREEN 3 |
#define | BLUE 4 |
#define | YELLOW 5 |
#define | CYAN 6 |
#define | GREY 7 |
#define | MAX_FIELDS 10 |
#define | L_SIDE 0 |
#define | R_SIDE 1 |
#define | B_SIDE 2 |
#define | T_SIDE 3 |
#define | LINE_SHAPE 0 |
#define | DOT_SHAPE 1 |
#define | CLOCK_SHAPE 2 |
#define | PINTYPE_IN "IN" |
#define | PINTYPE_OUT "OUT" |
#define | PINTYPE_IO "IO" |
#define | PINTYPE_OC "OC" |
#define | PINTYPE_OE "OE" |
#define | PINTYPE_PAS "PAS" |
#define | PINTYPE_TP "TP" |
#define | PINTYPE_TRI "TRI" |
#define | PINTYPE_CLK "CLK" |
#define | PINTYPE_PWR "PWR" |
Functions |
int | GetStringDisplayLength (char *str, int font_size) |
int | line2fields (char *pBuf, int field_cnt, char *pField[]) |
int | fields_free (char *pField[]) |
int | make_pin (int fldcnt, char *pFields[]) |
int | make_box (int fldcnt, char *pFields[]) |
static char * | strLabel (char *p, char *pTemp) |
void | strtrail (char *wrk) |
int | line_chk (char *pBuf) |
int | main (int argc, char **argv) |
void | cross (int pos_x, int pos_y, int color) |
void | pin_add (int pos_x, int pos_y, char *pin, int shape, int dir, char *name, char *type) |
Variables |
char * | optarg |
int | optind |
int | opterr |
int | optopt |
int | pin_len = 300 |
int | pin_spacing = 300 |
int | pin_0_x |
int | pin_0_y |
int | BoxHeight |
int | BoxWidth |
int | net_pin = 0 |
char | pin_used [300][5] |
int | pin_counter = 0 |
Define Documentation
#define PINTYPE_OUT "OUT" |
#define PINTYPE_PAS "PAS" |
#define PINTYPE_TRI "TRI" |
#define PINTYPE_CLK "CLK" |
#define PINTYPE_PWR "PWR" |
Function Documentation
int GetStringDisplayLength |
( |
char * |
str, |
|
|
int |
font_size |
|
) |
| |
int line2fields |
( |
char * |
pBuf, |
|
|
int |
field_cnt, |
|
|
char * |
pField[] |
|
) |
| |
int fields_free |
( |
char * |
pField[] | ) |
|
int make_pin |
( |
int |
fldcnt, |
|
|
char * |
pFields[] |
|
) |
| |
int make_box |
( |
int |
fldcnt, |
|
|
char * |
pFields[] |
|
) |
| |
static char * strLabel |
( |
char * |
p, |
|
|
char * |
pTemp |
|
) |
| [static] |
void strtrail |
( |
char * |
wrk | ) |
|
int line_chk |
( |
char * |
pBuf | ) |
|
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
void cross |
( |
int |
pos_x, |
|
|
int |
pos_y, |
|
|
int |
color |
|
) |
| |
void pin_add |
( |
int |
pos_x, |
|
|
int |
pos_y, |
|
|
char * |
pin, |
|
|
int |
shape, |
|
|
int |
dir, |
|
|
char * |
name, |
|
|
char * |
type |
|
) |
| |
Variable Documentation