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:             max396.pt
// Destination File:        max396.h
 
#ifndef _max396_h_
#define _max396_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_MAX396CAI : public TPart {     // MAX396 in SSOP
 
public:
  port   VPP;     
  port   VNN;     
  port   GND;     
  port   EN;      
  port   A;       // AR_BUS(3,0)
  port   COM;     
  port   NO;      // AR_BUS(15,0)  // data sheet labels these NO16-NO1
  port   NC;      // 3 pins
 
  CP_MAX396CAI() {
    SetPackage( "SSOP28", 28 );
    SetReferencePrefix( "U" );
  }
 
  virtual void Register() {
    reg(  VPP );
          VPP.SetPin( "1" );
    reg(  VNN );
          VNN.SetPin( "27" );
    reg(  GND );
          GND.SetPin( "12" );
    reg(  EN );
          EN.SetPin( "18" );
    regb( A, 3, 0 );
          A.AddPin( 3, "14" );
          A.AddPin( 2, "15" );
          A.AddPin( 1, "16" );
          A.AddPin( 0, "17" );
    reg(  COM );
          COM.SetPin( "28" );
    regb( NO, 15, 0 );
          NO.AddPin( 15, "4" );
          NO.AddPin( 14, "5" );
          NO.AddPin( 13, "6" );
          NO.AddPin( 12, "7" );
          NO.AddPin( 11, "8" );
          NO.AddPin( 10, "9" );
          NO.AddPin( 9, "10" );
          NO.AddPin( 8, "11" );
          NO.AddPin( 7, "26" );
          NO.AddPin( 6, "25" );
          NO.AddPin( 5, "24" );
          NO.AddPin( 4, "23" );
          NO.AddPin( 3, "22" );
          NO.AddPin( 2, "21" );
          NO.AddPin( 1, "20" );
          NO.AddPin( 0, "19" );
    reg(  NC );
          NC.AddPin( "2" );
          NC.AddPin( "3" );
          NC.AddPin( "13" );
  }
};
 
 
#endif

 

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

Legal Copyright © 2007 by Coolquest, Inc. Contact