Go to the source code of this file.
Variables | |
$width = 0 | |
$bus = 0 | |
$adr = -1 | |
$data = "" | |
$nopars = false | |
$raw = 0 | |
$wprot = -1 | |
$rprot = -1 | |
$rslt = "" | |
$cmd = "" | |
$model = "" | |
$rev = "" | |
$brand = "Elphel" | |
$serial = "" | |
$time = "" | |
$msg = "<?xml version=\"1.0\"?>\n<i2c>\n" | |
break | |
case | toCMOS |
break | |
case | fromEEPROM |
break | |
break | |
case | model |
break | |
case | rev |
break | |
case | serial |
break | |
case | time |
break | |
case | raw |
$raw = 1 | |
$width = 8 | |
break | |
case | width |
break | |
case | bus |
break | |
case | adr |
break | |
case | wp |
break | |
case | rp |
break | |
case | data |
break | |
$zero = strpos($rslt,chr(0)) | |
break | |
case | toEEPROM |
case | xa0 |
case | $wprot |
$data = $xml->asXML() | |
break | |
case | ctl |
break | |
$rslt = i2c_ctl($bus,$data)->asXML() | |
$msg = "<width>".$width."</width>\n" | |
$msg = "<bus>".$bus."</bus>\n" | |
$msg = "<slave>".(sprintf("0x%x",($adr>>(($width==8)?7:8)) & 0xfe ))."</slave>\n" | |
$rslt = i2c_send($width,$bus,$adr,$data,$raw) |
$msg = "<slave>".(sprintf("0x%x",($adr>>(($width==8)?7:8)) & 0xfe ))."</slave>\n" |
$time = "" |
Definition at line 72 of file i2c.php.
Referenced by parse_seq(), seq_extract_channel(), seq_send(), and seq_table().
$width = 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 ! Reading from/writing to EEPROM memory ! 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/>. ! -----------------------------------------------------------------------------** !
case bus |
Definition at line 116 of file i2c.php.
Referenced by cris_dma_test_irq(), xi2c_open(), xi2c_read(), xi2c_release(), and xi2c_write().
case ctl |
Definition at line 176 of file i2c.php.
Referenced by snd_determine_driver(), snd_func_card_id(), snd_func_pcm_args_by_class(), and snd_func_pcm_id().
case fromEEPROM |
case model |
case raw |
Definition at line 108 of file i2c.php.
Referenced by createDefaultConfig(), i2c_receive(), i2c_send(), PHP_FUNCTION(), receive_i2c(), receive_i2c_4(), receive_i2c_n(), send_i2c(), send_i2c_4(), send_i2c_4a(), and showUsage().
case rp |
Definition at line 126 of file i2c.php.
Referenced by circbuf_lseek(), fpga_jtag_read(), fpga_jtag_release(), framePointersXML(), jpeghead_lseek(), JTAG_configure(), png_do_bgr(), png_do_invert(), png_do_packswap(), png_do_read_intrapixel(), png_do_swap(), png_do_write_intrapixel(), png_read_filter_row(), png_read_image(), png_read_rows(), png_write_find_filter(), png_write_image(), png_write_rows(), and update_rx_stats().
case time |
Definition at line 105 of file i2c.php.
Referenced by add_host_filesystem_entry(), arping(), createDefaultConfig(), grab_and_send(), i2c_getCMOSClock(), i2c_setCMOSClock(), parse_special(), profileShow(), and showUsage().
case wp |
Definition at line 122 of file i2c.php.
Referenced by circbufValidPointer(), fpga_jtag_read(), fpga_jtag_release(), fpga_jtag_write(), framePointersXML(), and JTAG_configure().
case xa0 |