fpga/x359/test_scripts/mem_read.php File Reference

Go to the source code of this file.

Functions

 oldone ($width, $bus, $raw=0)
 send_i2c ($width, $bus, $a, $d, $raw=0)
 receive_i2c ($width, $bus, $a, $raw=0)
 receive_i2c_4 ($width, $bus, $a, $raw=0)
 receive_i2c_n ($width, $bus, $a, $raw=0)
 send_i2c_4 ($width, $bus, $a, $d, $raw=0)
 send_i2c_4a ($width, $bus, $a, $d, $raw=0)
 send_i2c_4_nc ($width, $bus, $a, $d, $raw=0)
 dcm_reset ($width, $bus, $raw=0)
 ramb_check ($width, $bus, $raw=0)
 ddr_init ($width, $bus, $raw=0)
 ddr_write ($width, $bus, $sa, $raw=0)
 ddr_page_read ($width, $bus, $rra, $raw=0)

Variables

 $width = 16
 $bus = 0
 $raw = 0
 $phase_shift = 0
 $row_adr = 0x3ff
 $N = 0
 $N_shifts = 1


Function Documentation

dcm_reset ( width,
bus,
raw = 0 
)

Definition at line 284 of file mem_read.php.

References $bus, $raw, $width, and send_i2c_4().

ddr_init ( width,
bus,
raw = 0 
)

Definition at line 322 of file mem_read.php.

References $bus, $data, $raw, $width, receive_i2c_4(), and send_i2c_4().

ddr_page_read ( width,
bus,
rra,
raw = 0 
)

Definition at line 398 of file mem_read.php.

References $bus, $i, $raw, $width, receive_i2c_n(), and send_i2c_4_nc().

ddr_write ( width,
bus,
sa,
raw = 0 
)

Definition at line 358 of file mem_read.php.

References $bus, $raw, $width, and send_i2c_4_nc().

oldone ( width,
bus,
raw = 0 
)

*************************************************************************** ! FILE NAME : i2c.php ! DESCRIPTION: Provides single byte/short r/w from/to the i2c ! Setting per-slave protection mask, ! Synchronizing system clock with a "CMOS" one ! Copyright (C) 2008 Elphel, Inc ! -----------------------------------------------------------------------------** ! ! This program is free software: you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation, either version 3 of the License, or ! (at your option) any later version. ! ! This program is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! ! You should have received a copy of the GNU General Public License ! along with this program. If not, see <http://www.gnu.org/licenses/>. ! -----------------------------------------------------------------------------** !

Log
mem_read.php,v
! Revision 1.1 2008/06/23 08:11:58 dzhimiev ! 1. added more scripts for 10359 board ! ! Revision 1.2 2008/06/16 07:43:58 dzhimiev ! mcontr address range changed from 0x0820-0x082F to 0x0840-0x085F (for making extra channels) ! ! Revision 1.2 2008/02/13 00:30:01 elphel ! Added system time synchronization with "CMOS" clock ! ! Revision 1.1 2008/02/12 21:53:20 elphel ! Modified I2c to support multiple buses, added raw access (no address registers) and per-slave protection bitmasks ! !

Definition at line 39 of file mem_read.php.

References $adr, $bus, $data, $i, $raw, $width, receive_i2c_4(), receive_i2c_n(), and send_i2c_4().

ramb_check ( width,
bus,
raw = 0 
)

Definition at line 291 of file mem_read.php.

References $bus, $data, $i, $raw, $width, receive_i2c_4(), and send_i2c_4().

receive_i2c ( width,
bus,
a,
raw = 0 
)

Definition at line 192 of file mem_read.php.

References $bus, $data, $i2c, $v, $width, dev, and raw.

Referenced by sensor_init().

receive_i2c_4 ( width,
bus,
a,
raw = 0 
)

Definition at line 204 of file mem_read.php.

References $bus, $data, $i2c, $v, $width, dev, and raw.

Referenced by ddr_check(), ddr_init(), oldone(), and ramb_check().

receive_i2c_n ( width,
bus,
a,
raw = 0 
)

Definition at line 220 of file mem_read.php.

References $bus, $data, $i2c, $v, $width, dev, and raw.

Referenced by ddr_check(), ddr_page_read(), ddr_read(), and oldone().

send_i2c ( width,
bus,
a,
d,
raw = 0 
)

Definition at line 181 of file mem_read.php.

References $bus, $d, $i2c, $res, $width, dev, and raw.

Referenced by sensor_init().

send_i2c_4 ( width,
bus,
a,
d,
raw = 0 
)

Definition at line 236 of file mem_read.php.

References $bus, $d, $i2c, $res, $width, dev, and raw.

Referenced by channels_init(), dcm_reset(), ddr_check(), ddr_init(), ddr_read(), oldone(), and ramb_check().

send_i2c_4_nc ( width,
bus,
a,
d,
raw = 0 
)

Definition at line 268 of file mem_read.php.

References $bus, $d, $i2c, $res, $width, dev, and raw.

Referenced by ddr_page_read(), ddr_page_write(), and ddr_write().

send_i2c_4a ( width,
bus,
a,
d,
raw = 0 
)

Definition at line 252 of file mem_read.php.

References $bus, $d, $i2c, $res, $width, dev, and raw.


Variable Documentation

$bus = 0

Definition at line 426 of file mem_read.php.

Referenced by channels_init(), dcm_reset(), ddr_check(), ddr_init(), ddr_page_read(), ddr_read(), ddr_write(), i2c_ctl(), i2c_receive(), i2c_send(), i2c_setprot(), oldone(), ramb_check(), receive_i2c(), receive_i2c_4(), receive_i2c_n(), send_i2c(), send_i2c_4(), send_i2c_4_nc(), send_i2c_4a(), and sensor_init().

$N = 0

Definition at line 431 of file mem_read.php.

$N_shifts = 1

Definition at line 432 of file mem_read.php.

$phase_shift = 0

Definition at line 429 of file mem_read.php.

$raw = 0

Definition at line 427 of file mem_read.php.

Referenced by channels_init(), dcm_reset(), ddr_check(), ddr_init(), ddr_page_read(), ddr_read(), ddr_write(), oldone(), ramb_check(), and sensor_init().

$row_adr = 0x3ff

Definition at line 430 of file mem_read.php.

$width = 16

Definition at line 425 of file mem_read.php.

Referenced by channels_init(), dcm_reset(), ddr_check(), ddr_init(), ddr_page_read(), ddr_read(), ddr_write(), i2c_receive(), i2c_send(), oldone(), ramb_check(), receive_i2c(), receive_i2c_4(), receive_i2c_n(), send_i2c(), send_i2c_4(), send_i2c_4_nc(), send_i2c_4a(), and sensor_init().


Generated on Thu Aug 7 16:20:01 2008 for elphel by  doxygen 1.5.1