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 | readCMOS |
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)) | |
$rslt = bin2hex($rslt) | |
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 119 of file i2c.php.
Referenced by cris_dma_test_irq(), main(), xi2c_open(), xi2c_read(), xi2c_release(), and xi2c_write().
case data |
Definition at line 133 of file i2c.php.
Referenced by broadcom_check_duplex(), broadcom_check_speed(), CreateBootCmds(), cris_ide_start_dma(), crisv32_eth_check_speed(), crisv32_eth_get_mdio_reg(), crisv32_eth_ioctl(), crisv32_eth_negotiate(), crisv32_eth_reset_tranceiver(), crisv32_eth_send_mdio_cmd(), do_one_xcvr(), etrax_gpio_wake_up_check(), fi2c_ioctl(), finish_data(), generic_check_duplex(), generic_check_speed(), gpio_poll(), gpio_write(), i2c_ioctl(), intel_check_duplex(), intel_check_speed(), iop_usb_get_frame(), iop_usb_port_stat(), jtag_send(), jtag_write_bits(), log(), main(), mdio_read(), mdio_write(), mpu_rh_port_request(), national_check_duplex(), national_check_speed(), PHP_FUNCTION(), Video::process(), read_done(), setCYField(), tdk_check_duplex(), tdk_check_speed(), vitesse_check_duplex(), vitesse_check_speed(), wait_mpu_reg_data(), xi2c_getbit(), and xi2c_getscl().
case fromEEPROM |
case model |
case raw |
Definition at line 111 of file i2c.php.
Referenced by i2c_receive(), i2c_send(), receive_i2c(), receive_i2c_4(), receive_i2c_n(), send_i2c(), send_i2c_4(), send_i2c_4_nc(), and send_i2c_4a().
case rp |
Definition at line 129 of file i2c.php.
Referenced by circbuf_lseek(), fpga_jtag_read(), fpga_jtag_release(), framePointersXML(), jpeghead_lseek(), JTAG_configure(), update_rx_stats(), x313_dma_forget_jpeg(), and X313_dma_update().
case time |
Definition at line 108 of file i2c.php.
Referenced by add_host_filesystem_entry(), arping(), grab_and_send(), i2c_setCMOSClock(), main(), parse_special(), send_buf_image(), and send_jpegfile_image().
case wp |
Definition at line 125 of file i2c.php.
Referenced by circbufValidPointer(), fpga_jtag_read(), fpga_jtag_release(), fpga_jtag_write(), framePointersXML(), and JTAG_configure().
case xa0 |