Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of libMiMic by
NyLPC_cMiMicDbCompiler.h
00001 /* 00002 * NyLPC_cMiMicDbCompiler.h 00003 * 00004 * Created on: 2011/09/10 00005 * Author: nyatla 00006 */ 00007 00008 #ifndef NYLPC_CMIMICDBCOMPILER_H_ 00009 #define NYLPC_CMIMICDBCOMPILER_H_ 00010 #include "NyLPC_stdlib.h" 00011 00012 #ifdef __cplusplus 00013 extern "C" { 00014 #endif /* __cplusplus */ 00015 00016 typedef struct NyLPC_TcMiMicDbCompiler NyLPC_TcMiMicDbCompiler_t; 00017 00018 00019 typedef NyLPC_TUInt8 NyLPC_TcMiMicDbCompiler_ERROR; 00020 //不明なエラー 00021 #define NyLPC_TcMiMicDbCompiler_ERROR_UNKNOWN 0x00 00022 //出力バッファが足りない。 00023 #define NyLPC_TcMiMicDbCompiler_ERROR_OUT_BUFFER_TOO_SHORT 0x01 00024 //BCの形式がおかしい。 00025 #define NyLPC_TcMiMicDbCompiler_ERROR_FORMAT 0x02 00026 //BCフラグメント単位がおかしい。(途中で終わってる?) 00027 #define NyLPC_TcMiMicDbCompiler_ERROR_FRAGMENT_UNIT 0x03 00028 00029 00030 typedef NyLPC_TUInt8 NyLPC_TcMiMicDbCompiler_RET; 00031 #define NyLPC_TcMiMicDbCompiler_RET_OK 1 00032 #define NyLPC_TcMiMicDbCompiler_RET_CONTINUE 2 00033 #define NyLPC_TcMiMicDbCompiler_RET_ERROR 3 00034 00035 00036 00037 struct NyLPC_TcMiMicDbCompiler 00038 { 00039 NyLPC_TUInt8 _bc_fragment_len; 00040 NyLPC_TcMiMicDbCompiler_ERROR error_reason;//エラー理由 00041 NyLPC_TChar _tmp[8];//テンポラリ 00042 }; 00043 00044 void NyLPC_cMiMicDbCompiler_initialize(NyLPC_TcMiMicDbCompiler_t* i_inst); 00045 #define NyLPC_cMiMicDbCompiler_finalize(i); 00046 00047 NyLPC_TcMiMicDbCompiler_RET NyLPC_cMiMicDbCompiler_compileFragment2(NyLPC_TcMiMicDbCompiler_t* i_inst,NyLPC_TChar i_bc,NyLPC_TUInt32* o_val); 00048 NyLPC_TUInt16 NyLPC_cMiMicDbCompiler_compile(NyLPC_TcMiMicDbCompiler_t* i_inst,const struct NyLPC_TCharArrayPtr* i_bc,struct NyLPC_TUInt32ArrayPtr* o_val); 00049 /** 00050 * フラグメントを集積中であるかを返します。TRUEのとき、パース中であり、フラグメント待ち状態です。 00051 */ 00052 #define NyLPC_cMiMicDbCompiler_hasFragment(i) ((i)->_bc_fragment_len>0) 00053 00054 #ifdef __cplusplus 00055 } 00056 #endif /* __cplusplus */ 00057 00058 #endif /* NYLPC_CMIMICDBCOMPILER_H_ */
Generated on Tue Jul 12 2022 16:22:57 by
1.7.2
