PlayerCc::DioProxy Class Reference

#include <playerc++.h>

Inherits PlayerCc::ClientProxy.

List of all members.

Detailed Description

The DioProxy class is used to read from a dio (digital I/O) device.

Public Member Functions

 DioProxy (PlayerClient *aPc, uint aIndex=0)
 ~DioProxy ()
uint GetCount () const
 The number of valid digital inputs.
uint32_t GetDigin () const
 A bitfield of the current digital inputs.
bool GetInput (uint aIndex) const
 Get a specific bit.
void SetOutput (uint aCount, uint32_t aDigout)
 Set the output to the bitfield aDigout.
uint operator[] (uint aIndex) const
 DioProxy data access operator.

Member Function Documentation

uint PlayerCc::DioProxy::operator[] uint  aIndex  )  const [inline]

DioProxy data access operator.

This operator provides an alternate way of access the dio data. For example, given a DioProxy named dp, the following expressions are equivalent: dp.GetInput(0) and dp[0].

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

Last updated 12 September 2005 21:38:45