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:             dallas.pt
// Destination File:        dallas.h
 
#ifndef _dallas_h_
#define _dallas_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_DS2401P : public TPart {     // silicon serial number in TSOC
 
public:
  port   GND;      
  port   DATA;     // data in, data out, power
  port   NC;       // 4 pins
 
  CP_DS2401P() {
    SetPackage( "TSOC6", 6 );
    SetReferencePrefix( "U" );
  }
 
  virtual void Register() {
    reg(  GND );
          GND.SetPin( "1" );
    reg(  DATA );
          DATA.SetPin( "2" );
    reg(  NC );
          NC.AddPin( "3" );
          NC.AddPin( "4" );
          NC.AddPin( "5" );
          NC.AddPin( "6" );
  }
};
 
class CP_DS1775R : public TPart {     // temperature sensor in SOT23-5
 
public:
  port   SCL;     // serial clock
  port   GND;     
  port   OS;      // thermostat output
  port   VCC;     
  port   SDA;     // serial data I/O
 
  CP_DS1775R() {
    SetPackage( "SOT23_5", 5 );
    SetReferencePrefix( "U" );
  }
 
  virtual void Register() {
    reg(  SCL );
          SCL.SetPin( "1" );
    reg(  GND );
          GND.SetPin( "2" );
    reg(  OS );
          OS.SetPin( "3" );
    reg(  VCC );
          VCC.SetPin( "4" );
    reg(  SDA );
          SDA.SetPin( "5" );
  }
};
 
 
#endif

 

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

Legal Copyright © 2007 by Coolquest, Inc. Contact