|
GadgetSeed
0.9.6
|
コンソールIO [詳解]

関数 | |
| void | register_console_in_dev (const struct st_device *in_dev) |
| システム標準のコンソール入力デバイスを登録する [詳解] | |
| void | register_console_out_dev (const struct st_device *out_dev) |
| システム標準のコンソール出力デバイスを登録する [詳解] | |
| void | init_console_device (void) |
| 全てのコンソール入出力デバイスを初期化する | |
| int | cputs (unsigned char *str, unsigned int len) |
| 標準出力より文字列を出力する [詳解] | |
| int | cputc (unsigned char td) |
| 標準出力より1文字を出力する [詳解] | |
| int | cgets (unsigned char *str, unsigned int count) |
| 標準入力より文字列を取得する [詳解] | |
| int | cgetc (unsigned char *rd) |
| 標準入力より1文字を取得する [詳解] | |
| int | cwait (unsigned int timeout) |
| 標準入力より入力を待つ [詳解] | |
| int | cgetcnw (unsigned char *rd) |
| 標準入力より1文字を取得する(待ち無し) [詳解] | |
| void | register_error_out_dev (const struct st_device *err_dev) |
| システム標準のエラー出力デバイスを登録する [詳解] | |
| int | eputs (unsigned char *str, unsigned int len) |
| エラー出力より文字列を出力する [詳解] | |
| void | set_console_in_device_ISR (struct st_device *dev) |
| 標準入力デバイスを設定する [詳解] | |
| void | set_console_out_device_ISR (struct st_device *dev) |
| 標準出力デバイスを設定する [詳解] | |
| void | set_error_out_device_ISR (struct st_device *dev) |
| エラー出力デバイスを設定する [詳解] | |
変数 | |
| struct st_device * | con_in_dev |
| デフォルト標準入力デバイス | |
| struct st_device * | con_out_dev |
| デフォルト標準出力デバイス | |
| struct st_device * | con_err_dev |
| デフォルトエラー出力デバイス | |
| struct st_tcb * | run_task |
コンソールIO
GadgetSeed はバイト入出力をもつデバイスドライバをコンソールとして 使用することが出来ます。
コンソール出力には tprintf() 関数でフォーマットされた文字列を出力ます。
console.c に定義があります。
| int cgetc | ( | unsigned char * | rd | ) |
標準入力より1文字を取得する
| [out] | rd | 取得文字ポインタ |
参照先 getc_device(), select_device(), st_tcb::stdin_dev.

| int cgetcnw | ( | unsigned char * | rd | ) |
標準入力より1文字を取得する(待ち無し)
| [out] | rd | 取得文字ポインタ |
参照先 getc_device(), st_tcb::stdin_dev.

| int cgets | ( | unsigned char * | str, |
| unsigned int | count | ||
| ) |
| int cputc | ( | unsigned char | td | ) |
標準出力より1文字を出力する
| [in] | td | 文字 |
参照先 putc_device(), st_tcb::stdout_dev.
参照元 draw_lineedit().


| int cputs | ( | unsigned char * | str, |
| unsigned int | len | ||
| ) |
| int cwait | ( | unsigned int | timeout | ) |
標準入力より入力を待つ
| [in] | timeout | タイムアウト時間(ms) |
参照先 select_device(), st_tcb::stdin_dev.

| int eputs | ( | unsigned char * | str, |
| unsigned int | len | ||
| ) |
| void register_console_in_dev | ( | const struct st_device * | in_dev | ) |
| void register_console_out_dev | ( | const struct st_device * | out_dev | ) |
| void register_error_out_dev | ( | const struct st_device * | err_dev | ) |
| void set_console_in_device_ISR | ( | struct st_device * | dev | ) |
| void set_console_out_device_ISR | ( | struct st_device * | dev | ) |
| void set_error_out_device_ISR | ( | struct st_device * | dev | ) |