Home
FAQ
Player
Stage
Gazebo
Contrib
Documentation
Publications
Contributors
Users

Project
Download
Bugs/Feedback
Mailing lists

Radish

Old news
Old stuff

DIOProxy Class Reference
[Proxies]

#include <playerclient.h>

Inherits 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 *pc, unsigned short index, unsigned char access= 'c')
 ~DIOProxy ()
int SetOutput (uint8_t output_count, uint32_t digout)
 Set the output.

void FillData (player_msghdr_t hdr, const char *buffer)
void Print ()
 Print out the current digital input state.


Public Attributes

uint8_t count
 The number of valid digital inputs.

uint32_t digin
 A bitfield of the current digital inputs.


Constructor & Destructor Documentation

DIOProxy::DIOProxy PlayerClient pc,
unsigned short  index,
unsigned char  access = 'c'
[inline]
 

Constructor. Leave the access field empty to start unconnected.

DIOProxy::~DIOProxy  )  [inline]
 


Member Function Documentation

int DIOProxy::SetOutput uint8_t  output_count,
uint32_t  digout
 

Set the output.

void DIOProxy::FillData player_msghdr_t  hdr,
const char *  buffer
[virtual]
 

All proxies must provide this method. It is used internally to parse new data when it is received.

Reimplemented from ClientProxy.

void DIOProxy::Print  )  [virtual]
 

Print out the current digital input state.

Reimplemented from ClientProxy.


Member Data Documentation

uint8_t DIOProxy::count
 

The number of valid digital inputs.

uint32_t DIOProxy::digin
 

A bitfield of the current digital inputs.


The documentation for this class was generated from the following file:
Generated on Tue May 3 14:15:49 2005 for Player by doxygen 1.3.6