DigitalIn Class Reference

#include <DigitalIn.h>

List of all members.

Public Member Functions

 DigitalIn (__in DigitalInNotify *notify=NULL)
 DigitalIn (__in UINT32 slot, __in DigitalInNotify *notify=NULL)
 ~DigitalIn (void)
void DigitalInTask (void)

Detailed Description

This class defines and implements the DigitalIn object. It inherited the DigitalModule object from the WPI library. It also added the capability of detecting the changes of a digital input channel and call the notification object for the change.


Constructor & Destructor Documentation

DigitalIn::DigitalIn ( __in DigitalInNotify notify = NULL  )  [inline]

Constructor: Create an instance of the DigitalIn object.

Parameters:
notify Points to the DigitalInNotify object for DigitalIn event notification callback.
DigitalIn::DigitalIn ( __in UINT32  slot,
__in DigitalInNotify notify = NULL 
) [inline]

Constructor: Create an instance of the DigitalIn object.

Parameters:
slot Specifies the slot for the Digital Module.
notify Points to the DigitalInNotify object for DigitalIn event notification callback.
DigitalIn::~DigitalIn ( void   )  [inline]

Destructor: Destroy an instance of the DigitalIn object.


Member Function Documentation

void DigitalIn::DigitalInTask ( void   )  [inline]

This function is called by the robot loop to check and process DigitalIn events. It reads all digital input channels and compares them to their previous states. If any channel has changed state, the notification object is called.


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

Generated by  doxygen 1.6.2