5 #include "cplRaw/wire.hxx" 6 #include "umic/umi.hxx" 7 #ifndef _UMIPRO_PULI_HXX_ 8 #define _UMIPRO_PULI_HXX_ 9 typedef INdepUmi100::Time UmiTime;
23 #ifndef _MM_NO_IOSTREAM 24 friend std::ostream& operator<<(std::ostream &os,
const PuliPulseConfig&);
40 friend xostream& xmarshal(xostream &xo,
const PuliSetTimer&);
41 #ifndef _MM_NO_IOSTREAM 42 friend std::ostream& operator<<(std::ostream &os,
const PuliSetTimer&);
44 const UmiTime& ti()
const {
return _ti; }
45 void ti(
const UmiTime& __ti) {_ti=__ti ; }
58 friend xistream& xunmarsh(xistream &xi,
PuliInit&);
59 friend xostream& xmarshal(xostream &xo,
const PuliInit&);
60 #ifndef _MM_NO_IOSTREAM 61 friend std::ostream& operator<<(std::ostream &os,
const PuliInit&);
76 friend xistream& xunmarsh(xistream &xi,
PuliConfig&);
77 friend xostream& xmarshal(xostream &xo,
const PuliConfig&);
78 #ifndef _MM_NO_IOSTREAM 79 friend std::ostream& operator<<(std::ostream &os,
const PuliConfig&);
81 unsigned cScale()
const {
return _cScale; }
82 PuliConfig& cScale(
unsigned __cScale) { _cScale=__cScale ;
return *
this; }
96 friend xistream& xunmarsh(xistream &xi,
PuliSample&);
97 friend xostream& xmarshal(xostream &xo,
const PuliSample&);
98 #ifndef _MM_NO_IOSTREAM 99 friend std::ostream& operator<<(std::ostream &os,
const PuliSample&);
101 const UmiTime& tiTmo()
const {
return _tiTmo; }
102 void tiTmo(
const UmiTime& __tiTmo) {_tiTmo=__tiTmo ; }
115 friend xistream& xunmarsh(xistream &xi,
PuliStop&);
116 friend xostream& xmarshal(xostream &xo,
const PuliStop&);
117 #ifndef _MM_NO_IOSTREAM 118 friend std::ostream& operator<<(std::ostream &os,
const PuliStop&);
134 friend xistream& xunmarsh(xistream &xi,
PuliResp&);
135 friend xostream& xmarshal(xostream &xo,
const PuliResp&);
136 #ifndef _MM_NO_IOSTREAM 137 friend std::ostream& operator<<(std::ostream &os,
const PuliResp&);
139 unsigned eErr()
const {
return _eErr; }
140 PuliResp& eErr(
unsigned __eErr) { _eErr=__eErr ;
return *
this; }
141 unsigned iErr()
const {
return _iErr; }
142 PuliResp& iErr(
unsigned __iErr) { _iErr=__iErr ;
return *
this; }
148 inline bool isPuliPulseConfig(
const UmiControl *puc) {
return ( puc->eType() == 0x4 ); }
150 inline const PuliPulseConfig* pPuliPulseConfig(
const UmiControl *puc) {
return pPuliPulseConfig(const_cast<UmiControl*>(puc)); }
151 inline bool isPuliSetTimer(
const UmiControl *puc) {
return ( puc->eType() == 0x5 ); }
153 inline const PuliSetTimer* pPuliSetTimer(
const UmiControl *puc) {
return pPuliSetTimer(const_cast<UmiControl*>(puc)); }
154 inline bool isPuliInit(
const UmiControl *puc) {
return ( puc->eType() == 0x6 ); }
155 extern PuliInit* pPuliInit(UmiControl *);
156 inline const PuliInit* pPuliInit(
const UmiControl *puc) {
return pPuliInit(const_cast<UmiControl*>(puc)); }
157 inline bool isPuliConfig(
const UmiControl *puc) {
return ( puc->eType() == 0x7 ); }
159 inline const PuliConfig* pPuliConfig(
const UmiControl *puc) {
return pPuliConfig(const_cast<UmiControl*>(puc)); }
160 inline bool isPuliSample(
const UmiControl *puc) {
return ( puc->eType() == 0x8 ); }
162 inline const PuliSample* pPuliSample(
const UmiControl *puc) {
return pPuliSample(const_cast<UmiControl*>(puc)); }
163 inline bool isPuliStop(
const UmiControl *puc) {
return ( puc->eType() == 0x9 ); }
164 extern PuliStop* pPuliStop(UmiControl *);
165 inline const PuliStop* pPuliStop(
const UmiControl *puc) {
return pPuliStop(const_cast<UmiControl*>(puc)); }
166 inline bool isPuliResp(
const UmiControl *puc) {
return ( puc->eType() == 0xa ); }
167 extern PuliResp* pPuliResp(UmiControl *);
168 inline const PuliResp* pPuliResp(
const UmiControl *puc) {
return pPuliResp(const_cast<UmiControl*>(puc)); }
170 #define MSG_PuliPulseConfig 0x4 171 #define MSG_PuliSetTimer 0x5 172 #define MSG_PuliInit 0x6 173 #define MSG_PuliConfig 0x7 174 #define MSG_PuliSample 0x8 175 #define MSG_PuliStop 0x9 176 #define MSG_PuliResp 0xa 180 xistream& unmarsh(xistream &,
const UmiControl &, UmiControl *)
const;
181 xostream& marshal(xostream &,
const UmiControl *)
const ;
186 #define PROTID_puli "(/Int4:unsigned,Int4:unsigned/)(//(/Int4:u_int,Int4:u_int/))(//)(//(/Int4:u_int,Int4:u_int/))(//)(/Int4:unsigned/)(//)" Definition: umipro_puli.hxx:93
Definition: umipro_puli.hxx:36
Definition: umipro_puli.hxx:56
Definition: umipro_puli.hxx:194
Definition: umipro_puli.hxx:130
Definition: umipro_puli.hxx:73
Definition: umipro_puli.hxx:189
namespace for the Pulse Generation (Puli) interface
Definition: puli.hxx:20
Definition: umipro_puli.hxx:178
Definition: umipro_puli.hxx:19
Definition: umipro_puli.hxx:113
Definition: tinacp.cxx:82