restructure and add ipi texs

This commit is contained in:
2019-11-06 18:24:04 +01:00
parent e21da561fc
commit 8fd8d2a485
155 changed files with 129 additions and 0 deletions
@@ -0,0 +1,31 @@
Fork::Fork()
{
a=b=c=0; // nix angschlossen
}
Fork::~Fork() {}
void Fork::ChangeInput (State s, int pin)
{
// Leite Eingang SOFORT an beide Ausgaenge weiter
if (b!=0) b->ChangeState(Sim.GetTime(),s);
if (c!=0) c->ChangeState(Sim.GetTime(),s);
}
void Fork::Action ()
{
// nix zu tun
}
void Fork::ConnectInput (Wire& w, int pin)
{
// Wird von Connect-Funktion des Drahtes aufgerufen
a = &w;
}
void Fork::ConnectOutput (Wire& w, int pin)
{
// Wird von Connect-Funktion des Drahtes aufgerufen
if (pin==0) b = &w;
if (pin==1) c = &w;
}