
GRMON3-UM
June 2019, Version 3.1.0
141
www.cobham.com/gaisler
47. i2c - syntax
NAME
i2c - Commands for the I2C masters
SYNOPSIS
i2c
subcommand
?
args...
?
i2c
index
subcommand
?
args...
?
DESCRIPTION
This command provides functions to control the SPICTRL core. If more than one core exists in the system, then
the index of the core to control should be specified after the i2c command (before the subcommand). The '
info
sys
' command lists the device indexes.
i2c bitrate
rate
Initializes the prescaler register. Valid keywords for the parameter
rate
are
normal
,
fast
or
hispeed
.
i2c disable
i2c enable
Enable/Disable the core
i2c read
i2caddr
?
addr
? ?
cnt
?
Performs
cnt
sequential reads starting at memory location
addr
from slave with
i2caddr
. Default value
of
cnt
is 1. If only
i2caddr
is specified, then a simple read will be performed.
i2c scan
Scans the bus for devices.
i2c status
Displays some status information about the core and the bus.
i2c write
i2caddr
?
addr
?
data
Writes
data
to memory location
addr
on slave with address
i2caddr
. If only
i2caddr
and
data
is
specified, then a simple write will be performed.
Commands to interact with DVI transmitters:
i2c dvi devices
List supported devices.
i2c dvi delay
direction
Change delay applied to clock before latching data. Valid keywords for
direction
are
inc
or
dec
.
i2c dvi init_l4itx_dvi ?
idf
?
i2c dvi init_l4itx_vga ?
idf
?
Initializes Chrontel CH7301C DVI transmitter with values that are appropriate for the GR-LEON4-ITX
board with DVI/VGA output. The optional
idf
value selects the multiplexed data input format, default
is IDF 2.
i2c dvi init_ml50x_dvi ?
idf
?
i2c dvi init_ml50x_vga ?
idf
?
Initializes Chrontel CH7301C DVI transmitter with values that are appropriate for a ML50x board with a"
standard LEON/GRLIB template design for DVI/VGA output. The optional
idf
value selects the multi-
plexed data input format, default is IDF 2.
i2c dvi setdev
devnr
Set DVI transmitter type. See command i2c dvi devices to list valid values of the parameter
devnr
.
i2c dvi showreg
Show DVI transmitter registers
RETURN VALUE
Upon successful completion i2c read returns a list of values read. The i2c dvi showreg return a list of tuples,
where the first element is the register address and the second element is the value.
The other sub commands has no return value.
Содержание GRMON3
Страница 56: ...GRMON3 UM June 2019 Version 3 1 0 56 www cobham com gaisler...
Страница 114: ...GRMON3 UM June 2019 Version 3 1 0 114 www cobham com gaisler...
Страница 123: ...GRMON3 UM June 2019 Version 3 1 0 123 www cobham com gaisler dcache...
Страница 156: ...GRMON3 UM June 2019 Version 3 1 0 156 www cobham com gaisler SEE ALSO Section 6 13 On chip logic analyzer driver...
Страница 208: ...GRMON3 UM June 2019 Version 3 1 0 208 www cobham com gaisler SEE ALSO Section 3 5 Tcl integration...