TRC Library for FRC (2011) 2011
TRC Library Code Project

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.

Definition at line 66 of file DigitalIn.h.


Constructor & Destructor Documentation

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

Constructor: Create an instance of the DigitalIn object.

Parameters:
notifyPoints to the DigitalInNotify object for DigitalIn event notification callback.

Definition at line 80 of file DigitalIn.h.

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

Constructor: Create an instance of the DigitalIn object.

Parameters:
slotSpecifies the slot for the Digital Module.
notifyPoints to the DigitalInNotify object for DigitalIn event notification callback.

Definition at line 101 of file DigitalIn.h.

DigitalIn::~DigitalIn ( void  ) [inline]

Destructor: Destroy an instance of the DigitalIn object.

Definition at line 119 of file DigitalIn.h.


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.

Definition at line 135 of file DigitalIn.h.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Defines