instanceface3
Returns the face of a connector in a placed instance
Synopsys
#include "mph403.h" void ∗instanceface(modelface, symmetry) char modelface, symmetry;
Parameters
modelface
|
Face of a connector in its figure. |
|---|---|
symmetry
|
Geometrical operation applied to the instanciation of the figure. |
Overview
instanceface determines the orientation of a connector in an instance of its model.
Examples
#include "mph403.h"
char channelFace(channelDir, i, c)
char channelDir;
phins_list *i;
phcon_list *c;
{
if (channelDir == VER)
switch (instanceface(c->ORIENT, i->TRANSF)) {
case EAST :
return WEST;
case WEST :
return EAST;
default :
return instanceface(c->ORIENT, i->TRANSF);
}
else
switch (instanceface(c->ORIENT, i->TRANSF)) {
case NORTH :
return SOUTH;
case SOUTH :
return NORTH;
default :
return instanceface(c->ORIENT, i->TRANSF);
}
}
Releases
4 releases since Debian 7 (Wheezy); the text changed 1 time.