GadgetSeed
0.9.6
|
I2Cコマンド [詳解]
#include "asm.h"
#include "shell.h"
#include "lineedit.h"
#include "console.h"
#include "timer.h"
#include "str.h"
#include "tprintf.h"
#include "device.h"
#include "device/i2c_ioctl.h"
マクロ定義 | |
#define | MAX_I2C_DATA 256 |
関数 | |
static int | check_devaddr (unsigned int addr) |
static int | detect (int argc, uchar *argv[]) |
static int | dump (int argc, uchar *argv[]) |
static int | get (int argc, uchar *argv[]) |
static int | put (int argc, uchar *argv[]) |
変数 | |
struct st_device * | i2c_dev |
static const char | def_dev_name [] = DEF_DEV_NAME_I2C |
static char * | dev_name = (char *)def_dev_name |
static unsigned char | reg_data [MAX_I2C_DATA] |
static const struct st_shell_command | com_i2c_detect |
I2Cデバイスを検出する [詳解] | |
static const struct st_shell_command | com_i2c_dump |
I2Cデバイスのレジスタをダンプ表示する [詳解] | |
static const struct st_shell_command | com_i2c_get |
I2Cデバイスのレジスタを1バイト読み出し表示する [詳解] | |
static const struct st_shell_command | com_i2c_put |
I2Cデバイスのレジスタに1バイト書き込む [詳解] | |
static const struct st_shell_command *const | com_i2c_list [] |
const struct st_shell_command | com_i2c |
I2Cデバイス情報取得、制御 [詳解] | |
I2Cコマンド
i2c コマンドには以下のサブコマンドがあります。
サブコマンド | 機能 | 詳細 |
---|---|---|
detect | I2Cデバイスを検出する | com_i2c_detect |
dump | I2Cデバイスのレジスタをダンプ表示する | com_i2c_dump |
get | I2Cデバイスのレジスタを1バイト読み出し表示する | com_i2c_get |
put | I2Cデバイスのレジスタに1バイト書き込む | com_i2c_put |
com_i2c.c に定義があります。
const struct st_shell_command com_i2c |
|
static |
|
static |
|
static |
|
static |
|
static |