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:             powerswitches.pt
// Destination File:        powerswitches.h
 
#ifndef _powerswitches_h_
#define _powerswitches_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_TPS203X : public TPart {     // switch with active-high enable and open-collector overcurrent indicator
 
public:
  port   GND;      
  port   IN;       // 2 pins
  port   EN;       
  port   OC_N;     
  port   OUT;      // 3 pins
 
  CP_TPS203X() {
    SetPackage( "SOIC8", 8 );
    SetReferencePrefix( "U" );
  }
 
  virtual void Register() {
    reg(  GND );
          GND.SetPin( "1" );
    reg(  IN );
          IN.AddPin( "2" );
          IN.AddPin( "3" );
    reg(  EN );
          EN.SetPin( "4" );
    reg(  OC_N );
          OC_N.SetPin( "5" );
    reg(  OUT );
          OUT.AddPin( "6" );
          OUT.AddPin( "7" );
          OUT.AddPin( "8" );
  }
};
 
 
#endif

 

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

Legal Copyright © 2007 by Coolquest, Inc. Contact