Sample to operate omron HVC-P2 on GR-PEACH.

Dependencies:   AsciiFont

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers STBCommonDef.h Source File

STBCommonDef.h

00001 /*---------------------------------------------------------------------------*/
00002 /* Copyright(C)  2017  OMRON Corporation                                     */
00003 /*                                                                           */
00004 /* Licensed under the Apache License, Version 2.0 (the "License");           */
00005 /* you may not use this file except in compliance with the License.          */
00006 /* You may obtain a copy of the License at                                   */
00007 /*                                                                           */
00008 /*     http://www.apache.org/licenses/LICENSE-2.0                            */
00009 /*                                                                           */
00010 /* Unless required by applicable law or agreed to in writing, software       */
00011 /* distributed under the License is distributed on an "AS IS" BASIS,         */
00012 /* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  */
00013 /* See the License for the specific language governing permissions and       */
00014 /* limitations under the License.                                            */
00015 /*---------------------------------------------------------------------------*/
00016 
00017 #ifndef COMMONDEF_H__
00018 #define COMMONDEF_H__
00019 #include <stdlib.h>
00020 
00021 /* Executed flag */
00022 #define STB_FUNC_BD  (0x00000001U)  /* [LSB]bit0: Body Tracking            00000000001        */
00023 #define STB_FUNC_DT  (0x00000004U)  /* [LSB]bit2: Face Tracking            00000000100        */
00024 #define STB_FUNC_PT  (0x00000008U)  /* [LSB]bit3: Face Direction        00000001000        */
00025 #define STB_FUNC_AG  (0x00000010U)  /* [LSB]bit4: Age Estimation        00000010000        */
00026 #define STB_FUNC_GN  (0x00000020U)  /* [LSB]bit5: Gender Estimation        00000100000        */
00027 #define STB_FUNC_GZ  (0x00000040U)  /* [LSB]bit6: Gaze Estimation        00001000000        */
00028 #define STB_FUNC_BL  (0x00000080U)  /* [LSB]bit7: Blink Estimation        00010000000        */
00029 #define STB_FUNC_EX  (0x00000100U)  /* [MSB]bit0: Expression Estimation    00100000000        */
00030 #define STB_FUNC_FR  (0x00000200U)  /* [MSB]bit1: Face Recognition        01000000000        */
00031 
00032 
00033 
00034 /*STB library's error code*/
00035 #define     STB_NORMAL                 (0)       /*Successful completion*/
00036 #define     STB_ERR_INITIALIZE         (-2)      /*Initialization error*/
00037 #define     STB_ERR_INVALIDPARAM       (-3)      /*argument error*/
00038 #define     STB_ERR_NOHANDLE           (-7)      /*handle error*/
00039 #define     STB_ERR_PROCESSCONDITION   (-8)      /*When the processing condition is not satisfied*/
00040 
00041 #define     STB_TRUE  (1)
00042 #define     STB_FALSE (0)
00043 
00044 
00045 
00046 #if !defined(STB_API)
00047 /*Import(Application Default)*/
00048     #define STB_API        __declspec( dllimport ) 
00049 #endif /* OKAO_API || OMCV_API */
00050 
00051 #endif  /* COMMONDEF_H__ */
00052