[ return ]

wire.h



/*
 * file: wire.h
 *
 * [DEFINE DESCRIPTION = Automated network wiring definitions]
 *
 *  Name                Date        Description
 *  --------------      --------    -------------------------------------
 *  Andrew H. Fagg      01/21/95    Original
 *
 *
 *  Define data structures necessary for high-level representation of
 * cell response properties.  This information is used to compute
 * a set of connections for the network.
 *
 */


				/* Description of phasic properties in AIP */
#define AIP_PHASE_SET 0
#define AIP_PHASE_EARLY 1
#define AIP_PHASE_LATE 2

				/*  Number of different grips that can be */
				/* represented.  */
#define NUM_GRIP_TYPE 5
#define GRIP_PAD 0
#define GRIP_PRECISION 1
#define GRIP_PALM 2
#define GRIP_SIDE 3
#define GRIP_FINGER 4


#define NUM_PHASE_TYPE 5	/*  Number of distinct phases in F5*/
#define F5_PHASE_SET 0
#define F5_PHASE_PREMOVEMENT 1
#define F5_PHASE_FLEXION 2
#define F5_PHASE_EXTENSION 3
#define F5_PHASE_HOLD 4
#define F5_PHASE_RELEASE 5

#define BUF_SIZE 100

struct AIP_type
{
  int phase;			/* Type of phasic property */
  float grip_type[NUM_GRIP_TYPE]; 
  float vm_index;		/* Visual (0) or F5 inputs (1) */
  float grip_width;		/* mm, -1 means no width coded */
};


struct F5_type
{
  float phase[NUM_PHASE_TYPE];
  float grip_type[NUM_GRIP_TYPE];
  float grip_width;		/* mm, -1 means no width coded */
};


[ return ]