WPILib 2012
WPILibRoboticsLibraryforFRC
CInterfaces/CDigitalOutput.h
00001 /*----------------------------------------------------------------------------*/
00002 /* Copyright (c) FIRST 2008. All Rights Reserved.                                                         */
00003 /* Open Source Software - may be modified and shared by FRC teams. The code   */
00004 /* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib.  */
00005 /*----------------------------------------------------------------------------*/
00006 
00007 #ifndef _C_DIGITAL_OUTPUT_H
00008 #define _C_DIGITIL_OUTPUT_H
00009 
00010 void SetDigitalOutput(UINT8 moduleNumber, UINT32 channel, UINT32 value);
00011 void SetDigitalOutput(UINT32 channel, UINT32 value);
00012 void DeleteDigitalOutput(UINT8 moduleNumber, UINT32 channel);
00013 void DeleteDigitalOutput(UINT32 channel);
00014 
00015 typedef void *DigitalOutputObject;
00016 
00017 DigitalOutputObject CreateDigitalOutput(UINT8 moduleNumber, UINT32 channel);
00018 DigitalOutputObject CreateDigitalOutput(UINT32 channel);
00019 void SetDigitalOutput(DigitalOutputObject o, bool val);
00020 void DeleteDigitalOutput(DigitalOutputObject o);
00021 
00022 #endif
00023 
 All Classes Functions Variables