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:             national.pt
// Destination File:        national.h
 
#ifndef _national_h_
#define _national_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_LM83CIMQA : public TPart {     // triple-diode input temperature sensor
 
public:
  port   ANODE;          // AR_BUS(2,0)  // to remote diode anodes
  port   CATHODE;        // to all remote diode cathodes using a star connection to pin
  port   ADD;            // AR_BUS(1,0)  // SMBus address inputs, tri-level
  port   SMBDATA;        // SMBus data in/out, bidirectional, open-drain
  port   SMBCLK;         // SMBus clock input
  port   INT_N;          // interrupt output, open-drain
  port   T_CRIT_A_N;     // critical temperature alarm, open-drain
  port   VCC;            // 3.3V
  port   GND;            // 2 pins
  port   NC;             // 3 pins
 
  CP_LM83CIMQA() {
    SetPackage( "DBQ16", 16 );     // TI's package number -- same as NS's QSOP
    SetReferencePrefix( "U" );
  }
 
  virtual void Register() {
    regb( ANODE, 2, 0 );
          ANODE.AddPin( 2, "5" );
          ANODE.AddPin( 1, "3" );
          ANODE.AddPin( 0, "1" );
    reg(  CATHODE );
          CATHODE.SetPin( "4" );
    regb( ADD, 1, 0 );
          ADD.AddPin( 1, "6" );
          ADD.AddPin( 0, "10" );
    reg(  SMBDATA );
          SMBDATA.SetPin( "12" );
    reg(  SMBCLK );
          SMBCLK.SetPin( "14" );
    reg(  INT_N );
          INT_N.SetPin( "11" );
    reg(  T_CRIT_A_N );
          T_CRIT_A_N.SetPin( "16" );
    reg(  VCC );
          VCC.SetPin( "2" );
    reg(  GND );
          GND.AddPin( "7" );
          GND.AddPin( "8" );
    reg(  NC );
          NC.AddPin( "9" );
          NC.AddPin( "13" );
          NC.AddPin( "15" );
  }
};
 
 
#endif

 

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

Legal Copyright © 2007 by Coolquest, Inc. Contact