WPILib 2012
WPILibRoboticsLibraryforFRC
NetworkTables/InterfaceConstants.h
00001 /*----------------------------------------------------------------------------*/
00002 /* Copyright (c) FIRST 2011. 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 __INTERFACE_CONSTANTS_H__
00008 #define __INTERFACE_CONSTANTS_H__
00009 
00010 #define kNetworkTables_STRING                   0
00011 #define kNetworkTables_BEGIN_STRING             0xFF
00012 #define kNetworkTables_END_STRING               0
00013 #define kNetworkTables_INT                              1
00014 #define kNetworkTables_DOUBLE                   2
00015 #define kNetworkTables_TABLE                    3
00016 #define kNetworkTables_TABLE_ASSIGNMENT kNetworkTables_TABLE
00017 #define kNetworkTables_BOOLEAN_FALSE    4
00018 #define kNetworkTables_BOOLEAN_TRUE             5
00019 #define kNetworkTables_ASSIGNMENT               6
00020 #define kNetworkTables_EMPTY                    7
00021 #define kNetworkTables_DATA                             8
00022 #define kNetworkTables_OLD_DATA                 9
00023 #define kNetworkTables_TRANSACTION              10
00024 #define kNetworkTables_REMOVAL                  11
00025 #define kNetworkTables_TABLE_REQUEST    12
00026 #define kNetworkTables_ID                               (1 << 7)
00027 #define kNetworkTables_TABLE_ID                 (1 << 6)
00028 #define kNetworkTables_CONFIRMATION             (1 << 5)
00029 #define kNetworkTables_CONFIRMATION_MAX (kNetworkTables_CONFIRMATION - 1)
00030 #define kNetworkTables_PING                             kNetworkTables_CONFIRMATION
00031 #define kNetworkTables_DENIAL                   (1 << 4)
00032 
00033 typedef enum
00034 {
00035         kNetworkTables_Types_NONE = -1,
00036         kNetworkTables_Types_STRING = kNetworkTables_STRING,
00037         kNetworkTables_Types_INT = kNetworkTables_INT,
00038         kNetworkTables_Types_DOUBLE = kNetworkTables_DOUBLE,
00039         kNetworkTables_Types_BOOLEAN = kNetworkTables_BOOLEAN_TRUE,
00040         kNetworkTables_Types_TABLE = kNetworkTables_TABLE,
00041 } NetworkTables_Types;
00042 
00043 #endif // __INTERFACE_CONSTANTS_H__
00044 
 All Classes Functions Variables