fpga/x359/test_scripts/phases_adjust.php File Reference

Go to the source code of this file.

Functions

 send_i2c ($width, $bus, $a, $d, $raw=0)
 receive_i2c ($width, $bus, $a, $raw=0)
 receive_i2c_4 ($width, $bus, $a, $raw=0)
 send_i2c_4 ($width, $bus, $a, $d, $raw=0)
 dcm_reset ($width, $bus, $raw=0)

Variables

 $width = 16
 $bus = 0
 $raw = 0
 $phase_shift = 0
 $dcm_addr = 0
 $n = 1
 $sphase = 0x7
 $adr = 0x083a
 $adr = 0x0861
 $data = receive_i2c_4($width,$bus,$adr,$raw=0)
 $adr = 0x0862
 $data = receive_i2c_4($width,$bus,$adr,$raw=0)
 $adr = 0x0863
 $data = receive_i2c_4($width,$bus,$adr,$raw=0)


Function Documentation

dcm_reset ( width,
bus,
raw = 0 
)

Definition at line 94 of file phases_adjust.php.

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

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

Definition at line 50 of file phases_adjust.php.

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

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

Definition at line 62 of file phases_adjust.php.

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

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

*************************************************************************** ! FILE NAME : adjust_phases.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
phases_adjust.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 phases_adjust.php.

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

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

Definition at line 78 of file phases_adjust.php.

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


Variable Documentation

$adr = 0x0863

Definition at line 162 of file phases_adjust.php.

$adr = 0x0862

Definition at line 158 of file phases_adjust.php.

$adr = 0x0861

Definition at line 154 of file phases_adjust.php.

$adr = 0x083a

Definition at line 142 of file phases_adjust.php.

Referenced by oldone(), seq_receive(), and seq_send().

$bus = 0

Definition at line 102 of file phases_adjust.php.

$data = receive_i2c_4($width,$bus,$adr,$raw=0)

Definition at line 163 of file phases_adjust.php.

$data = receive_i2c_4($width,$bus,$adr,$raw=0)

Definition at line 159 of file phases_adjust.php.

$data = receive_i2c_4($width,$bus,$adr,$raw=0)

Definition at line 155 of file phases_adjust.php.

Referenced by change_broadcast(), change_gateway(), change_ip(), change_netmask(), changeIP(), ddr_check(), ddr_init(), fpga_write(), hexdump(), i2c_ctl(), i2c_getCMOSClock(), i2c_read256b(), i2c_readCMOSClock(), i2c_receive(), i2c_setCMOSClock(), i2c_setprot(), i2c_write256b(), i2cread16(), oldone(), ramb_check(), read_broadcast(), read_gateway(), read_ip(), read_netmask(), receive347(), receive_i2c(), receive_i2c_4(), receive_i2c_n(), senspars_write(), and seq_receive().

$dcm_addr = 0

Definition at line 106 of file phases_adjust.php.

$n = 1

Definition at line 107 of file phases_adjust.php.

$phase_shift = 0

Definition at line 105 of file phases_adjust.php.

$raw = 0

Definition at line 103 of file phases_adjust.php.

$sphase = 0x7

Definition at line 109 of file phases_adjust.php.

$width = 16

Definition at line 101 of file phases_adjust.php.


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