Coolquest, Inc. Home Products Support About Contact
cbold_logo_gif C++BOLD Example Parts Library cbold_logo_gif

<<  File View  >> Class View Parts Library Examples Home

 

// This File Generated by:  pt_to_h.exe
// Source File:             transistors.pt
// Destination File:        transistors.h
 
#ifndef _transistors_h_
#define _transistors_h_
 
// AR_OFF -- auto registration is not needed
 
// THIS FILE IS IN THE PUBLIC DOMAIN.
// IT IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT
// NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 
class CP_TIP141_TO220 : public TPart {     // NPN power transistor in TO-220 package
 
public:
  port   B;     
  port   C;     // 2 pins  // tab is pin 4, tied to pin 2
  port   E;     
 
  CP_TIP141_TO220() {
    SetPackage( "TO220", 4 );
    SetReferencePrefix( "Q" );
  }
 
  virtual void Register() {
    reg(  B );
          B.SetPin( "1" );
    reg(  C );
          C.AddPin( "2" );
          C.AddPin( "4" );
    reg(  E );
          E.SetPin( "3" );
  }
};
 
class CP_MMBT3904LT1 : public TPart {     // ON Semiconductor 3904 transistor in SOT-23 package
 
public:
  port   C;     
  port   B;     
  port   E;     
 
  CP_MMBT3904LT1() {
    SetPackage( "SOT23", 3 );
    SetReferencePrefix( "Q" );
  }
 
  virtual void Register() {
    reg(  C );
          C.SetPin( "3" );
    reg(  B );
          B.SetPin( "1" );
    reg(  E );
          E.SetPin( "2" );
  }
};
 
class CP_MMBT3906LT1 : public TPart {     // ON Semiconductor 3906 transistor in SOT-23 package
 
public:
  port   C;     
  port   B;     
  port   E;     
 
  CP_MMBT3906LT1() {
    SetPackage( "SOT23", 3 );
    SetReferencePrefix( "Q" );
  }
 
  virtual void Register() {
    reg(  C );
          C.SetPin( "3" );
    reg(  B );
          B.SetPin( "1" );
    reg(  E );
          E.SetPin( "2" );
  }
};
 
 
#endif

 

<<  File View  >> Class View Parts Library Examples Home

Legal Copyright © 2007 by Coolquest, Inc. Contact