Coolquest, Inc. | Home | Products | Support | About | Contact | |||
|
<< File View >> | Class View | Parts Library | Examples Home |
// This File Generated by: pt_to_h.exe // Source File: ads1252.pt // Destination File: ads1252.h #ifndef _ads1252_h_ #define _ads1252_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_ADS1252U : public TPart { public: port VCC5; // VDD on data sheet port GND; port CLK; // free-running clock, 16 MHz max port SCLK; // serial clock port DOUT; // serial data / DRDY* port VIN_P; // analog inputs port VIN_N; port VREF; CP_ADS1252U() { SetPackage( "SOIC8", 8 ); SetReferencePrefix( "U" ); } virtual void Register() { reg( VCC5 ); VCC5.SetPin( "3" ); reg( GND ); GND.SetPin( "7" ); reg( CLK ); CLK.SetPin( "4" ); reg( SCLK ); SCLK.SetPin( "6" ); reg( DOUT ); DOUT.SetPin( "5" ); reg( VIN_P ); VIN_P.SetPin( "1" ); reg( VIN_N ); VIN_N.SetPin( "2" ); reg( VREF ); VREF.SetPin( "8" ); } }; #endif
<< File View >> | Class View | Parts Library | Examples Home |
Legal | Copyright © 2007 by Coolquest, Inc. | Contact |