hc
2024-03-26 e0728245c89800c2038c23308f2d88969d5b41c8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*******************************************************************************
Copyright (C) 2016 Marvell International Ltd.
Copyright (c) 2021-2022, Rockchip Limited. All rights reserved.
 
SPDX-License-Identifier: BSD-2-Clause-Patent
 
*******************************************************************************/
 
/=#
#langdef   en-US "english"
 
#string STR_GET_HELP_I2CDEMO            #language en-US ""
".TH i2cdemo 0 "Basic I2CDEMO command."\r\n"
".SH NAME\r\n"
"Read/write data from/into I2cDemo Device memory\r\n"
".SH SYNOPSIS\r\n"
" \r\n"
"i2cdemo [read] [write] [list] [<Bus>][<Address>] [<Length>] [<RegAddress>]\r\n"
"       [<RegAddressLength>] [<Data>]\r\n"
".SH OPTIONS\r\n"
" \r\n"
"All modes except 'list' require Address, Length and Chip set.\n\n"
"read    - read from i2cdemo device\n"
"write   - write Data to i2cdemo device\\n"
"list    - list available i2cdemo devices\n\n"
"Bus    - I2C bus address\n"
"Address    - i2cdemo bus address\n"
"Length      - data byte length to read/write\\n"
"RegAddress - address in i2cdemo to read/write\n"
"RegAddressLength - address in i2cdemo length\n"
"Data    - data byte to be written\n"
"Examples:\n"
"List devices:\n"
" i2cdemo list\n"
" \r\n"
"EXAMPLES:\r\n"
"List devices:\r\n"
" i2cdemo list\r\n"
"Read 2 bytes from address 0x10 in chip 0x51@bus2:\n"
" i2cdemo read 2 0x51 2 0x10 1\n"
"Fill 16 bytes with 0xab at address 0x0 in chip 0x57:\n"
" i2cdemo write 2 0x51 1 0x10 1 0x00\n"
".SH RETURNVALUES\r\n"
" \r\n"
"RETURN VALUES:\r\n"
"  SHELL_SUCCESS        The action was completed as requested.\r\n"
"  SHELL_ABORTED        Error while processing command\r\n"