dio  130
API Documentation
Public Member Functions | List of all members
DinoPlexSync Class Reference

Dino Protocol Plexer with blocking functions. More...

#include <dino.hxx>

Inheritance diagram for DinoPlexSync:
DinoPlex UseIo Failable

Public Member Functions

BitHandle callOpen (const std::string &sgPort)
 open bit at port. More...
 
int callSync ()
 synchronize internal state with field I/O. More...
 
 DinoPlexSync (Umi::RunIo *pur)
 
- Public Member Functions inherited from DinoPlex
bool getBit (BitHandle bh)
 
void setBit (BitHandle bh)
 
void clrBit (BitHandle bh)
 
void setBit (BitHandle bh, bool b)
 
bool isBit (BitHandle bh)
 
std::ostream & print (std::ostream &os)
 
int startOpen (const std::string &sgPort)
 
BitHandle doneOpen (int i)
 
void startSync ()
 
int doneSync ()
 
int init (const std::string &sg, Umi::Channel *pcn)
 
- Public Member Functions inherited from Failable
bool isGood () const
 fine
 
int print (char *sz, unsigned size) const
 
int iErr ()
 error code
 
const char * szErr ()
 error text
 
bool isFail () const
 last op failed, but object is uncorrupted
 
bool isBad () const
 last op failed, object is corrupted
 
bool operator! () const
 true if failed More...
 
 operator const void * () const
 zero if failed More...
 
FailablesetFailed (const char *sz, int i=0)
 set 'this' failed, record a string and an integer for failure identification More...
 
FailablesetBad (const char *sz, int i=0)
 set this bad, record a string and an integer for failure identification
 
Failableclear ()
 user clear of failed/bad state
 
 Failable (const char *sz, int i)
 
- Public Member Functions inherited from UseIo
RunIo * pur ()
 
 UseIo (RunIo *pur)
 

Additional Inherited Members

- Protected Types inherited from Failable
enum  StatE { E_OK, E_FAIL = 001, E_BAD = 002, E_NEXT = 004 }
 
- Protected Member Functions inherited from Failable
FailablesetStat (StatE eStat, const char *sz, int i)
 
FailablesetStat (const Failable &fa)
 
bool entry ()
 resets the failed state. More...
 
- Protected Attributes inherited from Failable
enum Failable::StatE _eStat
 

Detailed Description

Dino Protocol Plexer with blocking functions.

Examples:
dio_demo.cxx.

Member Function Documentation

◆ callOpen()

BitHandle callOpen ( const std::string &  sgPort)

open bit at port.

Parameters
sgPortname of port to open.
Returns
The returned BitHandle can be used as argument for the getBit, setBit, etc. functions. bhNil is returned in case of an error.
Examples:
dio_demo.cxx.

◆ callSync()

int callSync ( )

synchronize internal state with field I/O.

Read the current input status from the field i/o device, then updates the outputs of the field i/o device.

Examples:
dio_demo.cxx.

The documentation for this class was generated from the following file: