fpga/x359/test_scripts/mem_test.php File Reference

Go to the source code of this file.

Functions

 send_i2c ($a, $d)
 receive_i2c ($a)
 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 ($a, $d)
 dcm_reset ($width, $bus, $raw=0)
 ramb_check ($width, $bus, $raw=0)
 ddr_init ($width, $bus, $raw=0)
 ddr_page_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
 $testing = 46


Function Documentation

dcm_reset ( width,
bus,
raw = 0 
)

Definition at line 126 of file mem_test.php.

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

ddr_init ( width,
bus,
raw = 0 
)

Definition at line 164 of file mem_test.php.

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

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

Definition at line 240 of file mem_test.php.

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

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

Definition at line 200 of file mem_test.php.

References send_i2c_4_nc().

ramb_check ( width,
bus,
raw = 0 
)

Definition at line 133 of file mem_test.php.

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

receive_i2c ( a  ) 

Definition at line 44 of file mem_test.php.

References $a, $data, $i2c, $v, and dev.

Referenced by sensor_init().

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

Definition at line 54 of file mem_test.php.

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

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

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

Definition at line 70 of file mem_test.php.

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

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

send_i2c ( a,
d 
)

*************************************************************************** ! FILE NAME : mem_test.php ! DESCRIPTION: tests DDR memory on the 10359 board ! 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_test.php,v
! Revision 1.1.1.1 2008/11/27 20:04:02 elphel ! ! ! Revision 1.2 2008/05/01 20:27:08 dzhimiev ! reformatted a little ! ! Revision 1.1 2008/04/23 01:55:49 dzhimiev ! 1. added x359 files to src lists ! 2. x359 read/write DDR ! 3. x359 3 channels mux directly to out ! 4. x359 one channel through DDR and another directly frames switching at out !

Definition at line 36 of file mem_test.php.

References $a, $d, $i2c, and dev.

Referenced by sensor_init().

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

Definition at line 86 of file mem_test.php.

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

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

send_i2c_4_nc ( a,
d 
)

Definition at line 118 of file mem_test.php.

References $a, $d, $i2c, and dev.

Referenced by ddr_page_read(), and ddr_page_write().

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

Definition at line 102 of file mem_test.php.

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


Variable Documentation

$bus = 0

Definition at line 267 of file mem_test.php.

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

$N = 0

Definition at line 272 of file mem_test.php.

$N_shifts = 1

Definition at line 273 of file mem_test.php.

$phase_shift = 0

Definition at line 270 of file mem_test.php.

$raw = 0

Definition at line 268 of file mem_test.php.

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

$row_adr = 0x3ff

Definition at line 271 of file mem_test.php.

$testing = 46

Definition at line 286 of file mem_test.php.

$width = 16

Definition at line 266 of file mem_test.php.

Referenced by channels_init(), dcm_reset(), ddr_check(), ddr_init(), ddr_page_read(), ddr_read(), getDescription(), i2c_receive(), i2c_send(), print_SOF(), printPage(), ramb_check(), receive_i2c(), receive_i2c_4(), receive_i2c_n(), send_i2c(), send_i2c_4(), send_i2c_4a(), sensor_init(), and showImgData().


Generated on Fri Nov 28 00:07:31 2008 for elphel by  doxygen 1.5.1