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 |
dcm_reset | ( | $ | width, | |
$ | bus, | |||
$ | raw = 0 | |||
) |
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 | |||
) |
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/>. ! -----------------------------------------------------------------------------** !
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 | |||
) |
$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().