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_stdlib.h File Reference
このファイルは、ルートモジュールにあるヘッダファイルを集積します。 基本的な型の定義も行います。 More...
Go to the source code of this file.
Data Structures | |
struct | NyLPC_TCharArrayPtr |
長さ付TChar配列の構造体です。 More... | |
struct | NyLPC_TUInt32ArrayPtr |
長さ付TUInt32配列の構造体です。 More... | |
struct | NyLPC_TTextIdTbl |
TextとIDのテーブルです。 More... | |
Typedefs | |
typedef long | NyLPC_TBool |
真偽値型です。 | |
typedef char | NyLPC_TChar |
8bit長のバイト文字の型です。 | |
typedef signed char | NyLPC_TInt8 |
符号有り8bit型です。 | |
typedef signed short | NyLPC_TInt16 |
符号有り16bit型です。 | |
typedef signed long | NyLPC_TInt32 |
符号有り32bit型です。 | |
typedef unsigned char | NyLPC_TUInt8 |
符号無し8bit型です。 | |
typedef unsigned short | NyLPC_TUInt16 |
符号無し16bit型です。 | |
typedef unsigned long | NyLPC_TUInt32 |
符号無し32bit型です。 | |
Functions | |
void | NyLPC_assertHook (const char *m, int l) |
アサートマクロが使う関数です。 | |
void | NyLPC_abortHook (const char *m, int l) |
Abortマクロが使う関数です。 | |
void | NyLPC_debugHook (const char *m, int l) |
Debugマクロが使う関数です。 | |
NyLPC_TUInt16 | NyLPC_TUInt16_bswap (NyLPC_TUInt16 n) |
バイトオーダーを入れ替えます。 NyLPC_TUInt16_BSWAPとの違いは、関数であることです。 | |
NyLPC_TUInt32 | NyLPC_TUInt32_bswap (NyLPC_TUInt32 n) |
バイトオーダーを入れ替えます。 NyLPC_TUInt32_BSWAPとの違いは、関数であることです。 | |
NyLPC_TBool | NyLPC_TCharArrayPtr_seek (struct NyLPC_TCharArrayPtr *i_struct, NyLPC_TUInt16 i_seek) |
ptrの位置をi_seekだけ進行します。 | |
NyLPC_TBool | NyLPC_TUInt32ArrayPtr_seek (struct NyLPC_TUInt32ArrayPtr *i_struct, NyLPC_TUInt16 i_seek) |
ptrの位置をi_seekだけ進行します。 進行すると、len要素がi_seekだけ減少します。 | |
void | NyLPC_TUInt32ArrayPtr_setBuf (struct NyLPC_TUInt32ArrayPtr *i_struct, NyLPC_TUInt32 *i_ptr, NyLPC_TUInt16 i_len) |
構造体に、参照するバッファの初期位置とサイズをセットします。 セットしたバッファは、前方シークの可能な書き込みバッファとして使用できます。 | |
NyLPC_TUInt8 | NyLPC_TTextIdTbl_getMatchId (const NyLPC_TChar *i_str, const struct NyLPC_TTextIdTbl i_tbl[]) |
テーブルから文字列に一致するIDを返します。 大文字と小文字の区別をしません。 | |
NyLPC_TUInt8 | NyLPC_TTextIdTbl_getMatchIdIgnoreCase (const NyLPC_TChar *i_str, const struct NyLPC_TTextIdTbl i_tbl[]) |
テーブルから文字列に一致するIDを返します。 大文字と小文字の区別をしません。 | |
const NyLPC_TChar * | NyLPC_TTextIdTbl_getTextById (NyLPC_TUInt8 i_id, const struct NyLPC_TTextIdTbl i_tbl[]) |
テーブルからIDに一致する文字列を返す. | |
NyLPC_TInt8 | NyLPC_itoa (int i_n, char *o_out, NyLPC_TInt8 i_base) |
---------- Standard functions ---------- | |
NyLPC_TInt8 | NyLPC_uitoa (unsigned int i_n, char *o_out, NyLPC_TInt8 i_base) |
NyLPC_TInt8 | NyLPC_uitoa2 (unsigned int i_n, char *o_out, NyLPC_TInt8 i_base, NyLPC_TInt8 i_digit) |
桁数の指定できるuitoaです。 | |
void | NyLPC_reverse (char *s) |
Same as reverse. | |
int | NyLPC_stricmp (const char *i_s1, const char *i_s2) |
Same as stricmp. | |
int | NyLPC_strnicmp (const char *i_s1, const char *i_s2, int n) |
Same as strnicmp. | |
int | NyLPC_ctoi (char i) |
Convert a charactor to integer. | |
int | NyLPC_ctox (char i) |
Convert a character to 16 digit integer. | |
Variables | |
unsigned int | NyLPC_assert_counter |
デバック用のステータス変数です。 アサートを検出した回数を保存します。 | |
unsigned int | NyLPC_abort_counter |
デバック用のステータス変数です。 アサートを検出した回数を保存します。 | |
unsigned int | NyLPC_debug_counter |
デバック用のステータス変数です。 アサートを検出した回数を保存します。 |
Detailed Description
このファイルは、ルートモジュールにあるヘッダファイルを集積します。 基本的な型の定義も行います。
Definition in file NyLPC_stdlib.h.
Typedef Documentation
typedef long NyLPC_TBool |
真偽値型です。
Definition at line 171 of file NyLPC_stdlib.h.
typedef char NyLPC_TChar |
8bit長のバイト文字の型です。
Definition at line 192 of file NyLPC_stdlib.h.
typedef signed short NyLPC_TInt16 |
符号有り16bit型です。
Definition at line 200 of file NyLPC_stdlib.h.
typedef signed long NyLPC_TInt32 |
符号有り32bit型です。
Definition at line 204 of file NyLPC_stdlib.h.
typedef signed char NyLPC_TInt8 |
符号有り8bit型です。
Definition at line 196 of file NyLPC_stdlib.h.
typedef unsigned short NyLPC_TUInt16 |
符号無し16bit型です。
Definition at line 266 of file NyLPC_stdlib.h.
typedef unsigned long NyLPC_TUInt32 |
符号無し32bit型です。
Definition at line 343 of file NyLPC_stdlib.h.
typedef unsigned char NyLPC_TUInt8 |
符号無し8bit型です。
Definition at line 213 of file NyLPC_stdlib.h.
Function Documentation
void NyLPC_abortHook | ( | const char * | m, |
int | l | ||
) |
Abortマクロが使う関数です。
- Parameters:
-
m __FILE__を指定します。 l __LINE__を指定します。
Definition at line 54 of file NyLPC_stdlib.c.
void NyLPC_assertHook | ( | const char * | m, |
int | l | ||
) |
アサートマクロが使う関数です。
- Parameters:
-
m __FILE__を指定します。 l __LINE__を指定します。
Definition at line 47 of file NyLPC_stdlib.c.
int NyLPC_ctoi | ( | char | i ) |
Convert a charactor to integer.
Definition at line 238 of file NyLPC_stdlib.c.
int NyLPC_ctox | ( | char | i ) |
Convert a character to 16 digit integer.
Definition at line 243 of file NyLPC_stdlib.c.
void NyLPC_debugHook | ( | const char * | m, |
int | l | ||
) |
Debugマクロが使う関数です。
- Parameters:
-
m __FILE__を指定します。 l __LINE__を指定します。
Definition at line 60 of file NyLPC_stdlib.c.
NyLPC_TInt8 NyLPC_itoa | ( | int | i_n, |
char * | o_out, | ||
NyLPC_TInt8 | i_base | ||
) |
---------- Standard functions ----------
- Returns:
- 書き込んだ文字列の長さ
Definition at line 142 of file NyLPC_stdlib.c.
void NyLPC_reverse | ( | char * | s ) |
Same as reverse.
Definition at line 193 of file NyLPC_stdlib.c.
int NyLPC_stricmp | ( | const char * | i_s1, |
const char * | i_s2 | ||
) |
Same as stricmp.
Definition at line 206 of file NyLPC_stdlib.c.
int NyLPC_strnicmp | ( | const char * | i_s1, |
const char * | i_s2, | ||
int | n | ||
) |
Same as strnicmp.
Definition at line 221 of file NyLPC_stdlib.c.
NyLPC_TBool NyLPC_TCharArrayPtr_seek | ( | struct NyLPC_TCharArrayPtr * | i_struct, |
NyLPC_TUInt16 | i_seek | ||
) |
ptrの位置をi_seekだけ進行します。
- Parameters:
-
i_struct 操作する構造体 i_seek シークするバイト長
Definition at line 68 of file NyLPC_stdlib.c.
NyLPC_TUInt8 NyLPC_TTextIdTbl_getMatchId | ( | const NyLPC_TChar * | i_str, |
const struct NyLPC_TTextIdTbl | i_tbl[] | ||
) |
テーブルから文字列に一致するIDを返します。 大文字と小文字の区別をしません。
- Returns:
- 一致する文字列のID 一致するものがない場合、テーブルの終端の値を返す。
テーブルから文字列に一致するIDを返します。 大文字と小文字の区別をしません。
IDテーブル
Definition at line 102 of file NyLPC_stdlib.c.
NyLPC_TUInt8 NyLPC_TTextIdTbl_getMatchIdIgnoreCase | ( | const NyLPC_TChar * | i_str, |
const struct NyLPC_TTextIdTbl | i_tbl[] | ||
) |
テーブルから文字列に一致するIDを返します。 大文字と小文字の区別をしません。
- Returns:
- 一致する文字列のID 一致するものがない場合、テーブルの終端の値を返す。
Definition at line 112 of file NyLPC_stdlib.c.
const NyLPC_TChar* NyLPC_TTextIdTbl_getTextById | ( | NyLPC_TUInt8 | i_id, |
const struct NyLPC_TTextIdTbl | i_tbl[] | ||
) |
NyLPC_TUInt16 NyLPC_TUInt16_bswap | ( | NyLPC_TUInt16 | n ) |
バイトオーダーを入れ替えます。 NyLPC_TUInt16_BSWAPとの違いは、関数であることです。
- Parameters:
-
n 変換もとの変数です。
- Returns:
- 入れ替えた16ビット値を返します。
Definition at line 36 of file NyLPC_stdlib.c.
NyLPC_TUInt32 NyLPC_TUInt32_bswap | ( | NyLPC_TUInt32 | n ) |
バイトオーダーを入れ替えます。 NyLPC_TUInt32_BSWAPとの違いは、関数であることです。
- Parameters:
-
n 変換もとの変数です。
- Returns:
- 入れ替えた32ビット値を返します。
Definition at line 28 of file NyLPC_stdlib.c.
NyLPC_TBool NyLPC_TUInt32ArrayPtr_seek | ( | struct NyLPC_TUInt32ArrayPtr * | i_struct, |
NyLPC_TUInt16 | i_seek | ||
) |
ptrの位置をi_seekだけ進行します。 進行すると、len要素がi_seekだけ減少します。
- Parameters:
-
i_struct 操作する構造体 i_seek シークする要素長
Definition at line 78 of file NyLPC_stdlib.c.
void NyLPC_TUInt32ArrayPtr_setBuf | ( | struct NyLPC_TUInt32ArrayPtr * | i_struct, |
NyLPC_TUInt32 * | i_ptr, | ||
NyLPC_TUInt16 | i_len | ||
) |
構造体に、参照するバッファの初期位置とサイズをセットします。 セットしたバッファは、前方シークの可能な書き込みバッファとして使用できます。
Definition at line 87 of file NyLPC_stdlib.c.
NyLPC_TInt8 NyLPC_uitoa | ( | unsigned int | i_n, |
char * | o_out, | ||
NyLPC_TInt8 | i_base | ||
) |
- Returns:
- 書き込んだ文字列の長さ
Definition at line 161 of file NyLPC_stdlib.c.
NyLPC_TInt8 NyLPC_uitoa2 | ( | unsigned int | i_n, |
char * | o_out, | ||
NyLPC_TInt8 | i_base, | ||
NyLPC_TInt8 | i_digit | ||
) |
桁数の指定できるuitoaです。
Definition at line 177 of file NyLPC_stdlib.c.
Variable Documentation
unsigned int NyLPC_abort_counter |
デバック用のステータス変数です。 アサートを検出した回数を保存します。
Definition at line 44 of file NyLPC_stdlib.c.
unsigned int NyLPC_assert_counter |
デバック用のステータス変数です。 アサートを検出した回数を保存します。
Definition at line 43 of file NyLPC_stdlib.c.
unsigned int NyLPC_debug_counter |
デバック用のステータス変数です。 アサートを検出した回数を保存します。
Definition at line 45 of file NyLPC_stdlib.c.
Generated on Tue Jul 12 2022 16:23:00 by
