|
GadgetSeed
0.9.6
|
デバイスアクセスコマンド [詳解]
#include "shell.h"#include "lineedit.h"#include "console.h"#include "str.h"#include "tprintf.h"#include "device/sd_ioctl.h"
マクロ定義 | |
| #define | MAX_DEVWRITECNT 32 |
| #define | MAX_DEVREADCNT 512 |
関数 | |
| static int | dev_list (int argc, uchar *argv[]) |
| static int | dev_open (int argc, uchar *argv[]) |
| static int | dev_putc (int argc, uchar *argv[]) |
| static int | dev_getc (int argc, uchar *argv[]) |
| static int | dev_write (int argc, uchar *argv[]) |
| static int | dev_read (int argc, uchar *argv[]) |
| static int | dev_dump (int argc, uchar *argv[]) |
| static int | dev_seek (int argc, uchar *argv[]) |
| static int | dev_blockread (int argc, uchar *argv[]) |
| static int | dev_capacity (int argc, uchar *argv[]) |
| static int | dev_ioctl (int argc, uchar *argv[]) |
| static int | dev_suspend (int argc, uchar *argv[]) |
| static int | dev_resume (int argc, uchar *argv[]) |
| static int | dev_close (int argc, uchar *argv[]) |
変数 | |
| static const struct st_shell_command | com_dev_list |
| 登録されているデバイスリスト表示 [詳解] | |
| static const struct st_shell_command | com_dev_open |
| デバイスを開く [詳解] | |
| static const struct st_shell_command | com_dev_putc |
| デバイスに1バイトデータを書き込む [詳解] | |
| static const struct st_shell_command | com_dev_getc |
| デバイスより1バイトデータを読み出す [詳解] | |
| static const struct st_shell_command | com_dev_write |
| デバイスに任意のサイズのデータを書き込む [詳解] | |
| static const struct st_shell_command | com_dev_read |
| デバイスより任意のサイズのデータを読み出す [詳解] | |
| static const struct st_shell_command | com_dev_dump |
| デバイスより任意のサイズのデータを読み出しダンプ表示する [詳解] | |
| static const struct st_shell_command | com_dev_seek |
| デバイスのアクセス位置を設定する [詳解] | |
| static const struct st_shell_command | com_dev_blockread |
| デバイスよりブロック読み出しを行う [詳解] | |
| static const struct st_shell_command | com_dev_capacity |
| デバイスの容量を取得する [詳解] | |
| static const struct st_shell_command | com_dev_ioctl |
| デバイスの制御(ioctl)を行う [詳解] | |
| static const struct st_shell_command | com_dev_suspend |
| デバイスをサスペンド状態にする(実験的なAPI) [詳解] | |
| static const struct st_shell_command | com_dev_resume |
| デバイスをレジューム状態にする(実験的なAPI) [詳解] | |
| static const struct st_shell_command | com_dev_close |
| デバイスを閉じる [詳解] | |
| static const struct st_shell_command *const | com_device_list [] |
| const struct st_shell_command | com_dev |
| デバイスドライバ操作 [詳解] | |
デバイスアクセスコマンド
dev コマンドには以下のサブコマンドがあります。
| サブコマンド | 機能 | 詳細 |
|---|---|---|
| list | 登録されているデバイスリスト表示 | com_dev_list |
| open | デバイスを開く | com_dev_open |
| putc | デバイスに1バイトデータを書き込む | com_dev_putc |
| getc | デバイスより1バイトデータを読み出す | com_dev_getc |
| write | デバイスに任意のサイズのデータを書き込む | com_dev_write |
| read | デバイスより任意のサイズのデータを読み出す | com_dev_read |
| dump | デバイスより任意のサイズのデータを読み出しダンプ表示する | com_dev_dump |
| ioctl | デバイスの制御(ioctl)を行う | com_dev_ioctl |
| seek | デバイスのアクセス位置を設定する | com_dev_seek |
| blockread | デバイスよりブロック読み出しを行う | com_dev_blockread |
| capacity | デバイスの容量を取得する | com_dev_capacity |
| suspend | デバイスをサスペンド状態にする(実験的なAPI) | com_dev_suspend |
| resume | デバイスをレジューム状態にする(実験的なAPI) | com_dev_resume |
| close | デバイスを閉じる | com_dev_close |
com_device.c に定義があります。
| const struct st_shell_command com_dev |
デバイスドライバ操作
com_device.c の 727 行目に定義があります。
|
static |
デバイスよりブロック読み出しを行う
com_device.c の 443 行目に定義があります。
|
static |
デバイスの容量を取得する
com_device.c の 496 行目に定義があります。
|
static |
デバイスを閉じる
com_device.c の 681 行目に定義があります。
|
static |
デバイスより任意のサイズのデータを読み出しダンプ表示する
com_device.c の 293 行目に定義があります。
|
static |
デバイスより1バイトデータを読み出す
com_device.c の 140 行目に定義があります。
|
static |
デバイスの制御(ioctl)を行う
com_device.c の 554 行目に定義があります。
|
static |
登録されているデバイスリスト表示
com_device.c の 51 行目に定義があります。
|
static |
デバイスを開く
com_device.c の 63 行目に定義があります。
|
static |
デバイスに1バイトデータを書き込む
com_device.c の 92 行目に定義があります。
|
static |
デバイスより任意のサイズのデータを読み出す
com_device.c の 239 行目に定義があります。
|
static |
デバイスをレジューム状態にする(実験的なAPI)
com_device.c の 642 行目に定義があります。
|
static |
デバイスのアクセス位置を設定する
com_device.c の 394 行目に定義があります。
|
static |
デバイスをサスペンド状態にする(実験的なAPI)
com_device.c の 603 行目に定義があります。
|
static |
デバイスに任意のサイズのデータを書き込む
com_device.c の 182 行目に定義があります。
|
static |
com_device.c の 708 行目に定義があります。