ERSP Class Reference

#include <ersp.h>

Collaboration diagram for ERSP:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ERSP (ConfigFile *cf, int section)
 ~ERSP (void)
void Main ()
int Setup ()
int Shutdown ()
int Subscribe (player_devaddr_t id)
int Unsubscribe (player_devaddr_t id)
int ProcessMessage (MessageQueue *queue, player_msghdr *msghdr, void *data)

Private Member Functions

void PutData (void)
int SetupERSP ()

Private Attributes

bool running
ERSPDevice devices [ERSP_DEVICES]
ersp_dev * devs

Detailed Description

Definition at line 81 of file ersp.h.


Constructor & Destructor Documentation

ERSP::ERSP ( ConfigFile *  cf,
int  section 
)

Definition at line 62 of file ersp.cc.

References running.

ERSP::~ERSP ( void   ) 

Definition at line 231 of file ersp.cc.


Member Function Documentation

void ERSP::PutData ( void   )  [private]

Definition at line 695 of file ersp.cc.

References LOG_INFO.

Referenced by Main().

int ERSP::SetupERSP (  )  [private]

Definition at line 122 of file ersp.cc.

References devices, devs, ERSPDevice::handle, and LOG_ERR.

Referenced by Setup().

void ERSP::Main (  ) 

Definition at line 248 of file ersp.cc.

References ERSPDevice::bumper, devices, devs, ir(), IR_MAX_RANGE, LOG_DBG, LOG_ERR, and PutData().

Here is the call graph for this function:

int ERSP::Setup (  ) 

Definition at line 188 of file ersp.cc.

References LOG_INFO, running, and SetupERSP().

Here is the call graph for this function:

int ERSP::Shutdown (  ) 

Definition at line 216 of file ersp.cc.

References LOG_INFO, and running.

int ERSP::Subscribe ( player_devaddr_t  id  ) 

Definition at line 612 of file ersp.cc.

References LOG_INFO.

int ERSP::Unsubscribe ( player_devaddr_t  id  ) 

Definition at line 651 of file ersp.cc.

References LOG_INFO.

int ERSP::ProcessMessage ( MessageQueue *  queue,
player_msghdr *  msghdr,
void *  data 
)

Definition at line 394 of file ersp.cc.


Member Data Documentation

bool ERSP::running [private]

Definition at line 89 of file ersp.h.

Referenced by ERSP(), Setup(), and Shutdown().

ERSPDevice ERSP::devices[ERSP_DEVICES] [private]

Definition at line 91 of file ersp.h.

Referenced by Main(), and SetupERSP().

struct ersp_dev* ERSP::devs [private]

Definition at line 104 of file ersp.h.

Referenced by Main(), and SetupERSP().


The documentation for this class was generated from the following files:
Generated on Sat Jan 13 03:11:10 2007 for ERSP Player driver by  doxygen 1.5.1