• Main Page
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

constants.h

Go to the documentation of this file.
00001 /* Copyright (c) 2010, Cedrus Corporation
00002  * All rights reserved.
00003  *
00004  * Redistribution and use in source and binary forms, with or without
00005  * modification, are permitted provided that the following conditions are
00006  * met:
00007  *
00008  * Redistributions of source code must retain the above copyright notice,
00009  * this list of conditions and the following disclaimer.  
00010  *
00011  * Redistributions in binary form must reproduce the above copyright
00012  * notice, this list of conditions and the following disclaimer in the
00013  * documentation and/or other materials provided with the distribution.
00014  *
00015  * Neither the name of Cedrus Corporation nor the names of its
00016  * contributors may be used to endorse or promote products derived from
00017  * this software without specific prior written permission.
00018  *
00019  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00020  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00021  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
00022  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
00023  * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
00024  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
00025  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
00026  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
00027  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00028  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00029  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00030  */
00031 
00032 #ifndef CONSTANTS_H
00033 #define CONSTANTS_H
00034 
00035 namespace cedrus
00036 {
00037     enum
00038     {
00039         NO_ERR                  =   0,
00040         UNDEFINED               =  -1,
00041         PORT_NOT_AVAILABLE      =  -2,
00042         ERROR_SETTING_UP_PORT   =  -3,
00043         ERROR_FLUSHING_PORT     =  -4,
00044         ERROR_READING_PORT      =  -5,
00045         ERROR_WRITING_TO_PORT   =  -6,
00046         ERROR_CLOSING_PORT      =  -7,
00047         GENERAL_ERROR           = -10,
00048         PORT_OPENED_BUT_ABORTED = -11,
00049     };
00050 
00051     enum
00052     {
00053         UNKNOWN_MODEL_ID = 0
00054     };
00055 
00056     enum
00057     {
00058         ANY_MODEL_ID = -2,
00059     };
00060     enum
00061     {
00062         NO_XID_DEVICE_FOUND = -1
00063     };
00064     
00065     enum
00066     {
00067         INVALID_RETURN_VALUE = -99
00068     };
00069 
00070     enum
00071     {
00072         RB530  =  1,
00073         RB730  =  2,
00074         RB830  =  3,
00075         RB834  =  4,
00076         RB630  =  5,
00077         SV1    = 21,
00078         LUMINA = 31
00079     };
00080     
00081     enum
00082     {
00083         XID_ID_LUMINA = 0,
00084         XID_ID_SV1    = 1,
00085         XID_ID_RB     = 2
00086     };
00087     
00088     enum
00089     {
00090         AD_NO_PROMPTS = 0x01,
00091         AD_ASK_BEFORE_CONVERTING = 0x02,
00092         AD_CONVERSION_IRREVERSIBLE = 0x04
00093     };
00094     
00095     enum
00096     {
00097         XID_MODE = '0'
00098     };
00099 
00100     enum key_state
00101     {
00102         NO_KEY_DETECTED = 0,
00103         FOUND_KEY_DOWN = 1,
00104         FOUND_KEY_UP = 2
00105     };
00106 
00107 } // namespace cedrus
00108 
00109 #endif // CONSTANTS_H

Generated on Wed Dec 15 2010 13:17:12 for XID device library by  doxygen 1.7.2