WPILib 2012
WPILibRoboticsLibraryforFRC
|
00001 /*----------------------------------------------------------------------------*/ 00002 /* Copyright (c) FIRST 2009. 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 // JaguarCANDriver.h 00008 // 00009 // Defines the API for building a CAN Interface Plugin to support 00010 // PWM-cable-free CAN motor control on FRC robots. This allows you 00011 // to connect any CAN interface to the secure Jaguar CAN driver. 00012 // 00013 00014 #ifndef __JaguarCANDriver_h__ 00015 #define __JaguarCANDriver_h__ 00016 00017 #include <VxWorks.h> 00018 00019 #ifdef __cplusplus 00020 extern "C" 00021 { 00022 #endif 00023 00024 void FRC_NetworkCommunication_JaguarCANDriver_sendMessage(UINT32 messageID, const UINT8 *data, UINT8 dataSize, INT32 *status); 00025 void FRC_NetworkCommunication_JaguarCANDriver_receiveMessage(UINT32 *messageID, UINT8 *data, UINT8 *dataSize, UINT32 timeoutMs, INT32 *status); 00026 00027 #ifdef __cplusplus 00028 } 00029 #endif 00030 00031 #endif // __JaguarCANDriver_h__