oaModBusTerm.h

Go to the documentation of this file.
00001 // *****************************************************************************
00002 // *****************************************************************************
00003 // oaModBusTerm.h
00004 //
00005 // This file contains the definition for the oaModBusTerm class and its public
00006 // supporting classes. The oaModBusTerm class implements a vector terminal in
00007 // the module domain.
00008 //
00009 // *****************************************************************************
00010 // Except as specified in the OpenAccess terms of use of Cadence or Silicon
00011 // Integration Initiative, this material may not be copied, modified,
00012 // re-published, uploaded, executed, or distributed in any way, in any medium,
00013 // in whole or in part, without prior written permission from Cadence.
00014 //
00015 //                Copyright 2003-2005 Cadence Design Systems, Inc.
00016 //                           All Rights Reserved.
00017 //
00018 //  $Author: icftcm $
00019 //  $Revision: #1 $
00020 //  $Date: 2010/08/09 $
00021 //  $State: Exp $
00022 // *****************************************************************************
00023 // *****************************************************************************
00024 
00025 
00026 
00027 #if !defined(oaModBusTerm_P)
00028 #define oaModBusTerm_P
00029 
00030 
00031 
00032 // *****************************************************************************
00033 // Nested includes
00034 // *****************************************************************************
00035 #include "oaModTerm.h"
00036 
00037 
00038 
00039 // *****************************************************************************
00040 // Declare and define types in the OpenAccess namespace.
00041 // *****************************************************************************
00042 BEGIN_OA_NAMESPACE
00043 
00044 
00045 
00046 // *****************************************************************************
00047 // oaModBusTerm
00048 // *****************************************************************************
00049 class OA_DESIGN_DLL_API oaModBusTerm : public oaModTerm {
00050 public:
00051     static oaModBusTerm     *create(oaModNet            *modNet,
00052                                     const oaScalarName  &name,
00053                                     oaUInt4             start,
00054                                     oaUInt4             stop,
00055                                     oaUInt4             step,
00056                                     oaTermType          termType = oacInputOutputTermType);
00057 
00058     static oaModBusTerm     *create(oaModNet            *modNet,
00059                                     const oaVectorName  &name,
00060                                     oaTermType          termType = oacInputOutputTermType);
00061 
00062     static oaModBusTerm     *create(oaModNet                *modNet,
00063                                     const oaVectorBitName   &name,
00064                                     oaTermType              termType = oacInputOutputTermType);
00065                                 
00066     static oaModBusTerm     *find(const oaModule        *module,
00067                                   const oaScalarName    &name,
00068                                   oaUInt4               start,
00069                                   oaUInt4               stop,
00070                                   oaUInt4               step);
00071     static oaBoolean        isValidName(const oaModule      *module,
00072                                         const oaModNet      *net,
00073                                         const oaScalarName  &name,
00074                                         oaUInt4             start,
00075                                         oaUInt4             stop,
00076                                         oaUInt4             step);
00077 
00078     oaModBusTermDef         *getDef() const;
00079     oaUInt4                 getStart() const;
00080     oaUInt4                 getStop() const;
00081     oaUInt4                 getStep() const;
00082 
00083     using                   oaModTerm::getName;
00084     void                    getName(oaVectorName &name) const;
00085 
00086     void                    setBaseName(const oaScalarName &name);
00087     void                    setRange(oaUInt4    start,
00088                                      oaUInt4    stop);
00089 };
00090 
00091 
00092 
00093 // *****************************************************************************
00094 // Design Traits.
00095 // *****************************************************************************
00096 template<>
00097 class oaTraits<oaModBusTerm> {
00098 public:
00099     typedef oaTermModTypeEnum   modTypeType;
00100     typedef oaModTerm           parentType;
00101     enum {dtIndex = oacTermDataType};
00102     enum {dataTypeEnumVal = oacTermDataType};
00103     enum {domain = oacModDomain};
00104     enum {isMultiDomain = true};
00105     enum {dbType = oacDesignDBType};
00106     enum {isConcrete = true};
00107     enum {objectTypeEnumVal = oacModBusTermType};
00108 };
00109 
00110 
00111 
00112 END_OA_NAMESPACE
00113 
00114 #endif

Return to top of page