Go to the source code of this file.
Functions | |
send347 ($register_address, $d0=0, $d1=-1, $d2=-1, $d3=-1, $d4=-1, $d5=-1, $d6=-1, $d7=-1) | |
receive347 ($register_address) | |
i2cread16 ($start, $length=256) | |
nicefloaty ($f) | |
write_coil_form ($coil1, $coil2, $coil3, $coil4, $alternate, $coil1e, $coil2e, $coil3e, $coil4e) | |
parse_seq ($sec_str, $chn) | |
seq_table ($seq) | |
seq_send ($seq, $adr) | |
seq_receive ($adr, $length) | |
seq_extract_channel ($seq, $chn) | |
Variables | |
$GLOBALS ['mshutter_alternate'] = 1 | |
$GLOBALS ['mshutter_seq'] = 0x200 | |
$GLOBALS ['mshutter_seq_even'] = 0x280 | |
$GLOBALS ['tick'] = 0.000008*4*(receive347(0x70)+1) | |
$seq = array() | |
$state = 0 | |
$state = $coils["states"][$i] << (2 * ($coils["channels"][$i]-1)) | |
$state = $coils["states"][$j] << (2 * ($coils["channels"][$j]-1)) | |
$seq [$ti] = $state | |
$i = $j | |
$coil2_e = parse_seq($icoil2_e,2) | |
$coil3_e = parse_seq($icoil3_e,3) | |
$coil4_e = parse_seq($icoil4_e,4) | |
$coils_e | |
$seq_e = array() | |
$state_e = 0 | |
$state_e = $coils_e["states"][$i] << (2 * ($coils_e["channels"][$i]-1)) | |
$state_e = $coils_e["states"][$j] << (2 * ($coils_e["channels"][$j]-1)) | |
$seq_e [$ti] = $state_e | |
$i = $j | |
$seq = seq_receive($GLOBALS['mshutter_seq'],0x80) | |
$seq_e = seq_receive($GLOBALS['mshutter_seq_even'],0x80) |
i2cread16 | ( | $ | start, | |
$ | length = 256 | |||
) |
nicefloaty | ( | $ | f | ) |
Definition at line 91 of file mshutter.php.
References $s.
Referenced by seq_extract_channel(), and seq_table().
parse_seq | ( | $ | sec_str, | |
$ | chn | |||
) |
receive347 | ( | $ | register_address | ) |
send347 | ( | $ | register_address, | |
$ | d0 = 0 , |
|||
$ | d1 = -1 , |
|||
$ | d2 = -1 , |
|||
$ | d3 = -1 , |
|||
$ | d4 = -1 , |
|||
$ | d5 = -1 , |
|||
$ | d6 = -1 , |
|||
$ | d7 = -1 | |||
) |
*************************************************************************** ! FILE NAME : mshutter.php ! DESCRIPTION: controls mechanical shutters (sequencer) ! Copyright (C) 2007 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 34 of file mshutter.php.
seq_extract_channel | ( | $ | seq, | |
$ | chn | |||
) |
Definition at line 236 of file mshutter.php.
References $GLOBALS, $s, $seq, $state, $time, and nicefloaty().
seq_receive | ( | $ | adr, | |
$ | length | |||
) |
seq_send | ( | $ | seq, | |
$ | adr | |||
) |
seq_table | ( | $ | seq | ) |
Definition at line 178 of file mshutter.php.
References $GLOBALS, $seq, $state, $time, and nicefloaty().
write_coil_form | ( | $ | coil1, | |
$ | coil2, | |||
$ | coil3, | |||
$ | coil4, | |||
$ | alternate, | |||
$ | coil1e, | |||
$ | coil2e, | |||
$ | coil3e, | |||
$ | coil4e | |||
) |
Definition at line 96 of file mshutter.php.
References $GLOBALS, nand_manufacturers::name, and state.
$coil2_e = parse_seq($icoil2_e,2) |
Definition at line 313 of file mshutter.php.
$coil3_e = parse_seq($icoil3_e,3) |
Definition at line 314 of file mshutter.php.
$coil4_e = parse_seq($icoil4_e,4) |
Definition at line 315 of file mshutter.php.
$coils_e |
Initial value:
array ("times"=> array_merge($coil1_e["times"], $coil2_e["times"], $coil3_e["times"], $coil4_e["times"]), "channels"=>array_merge($coil1_e["channels"], $coil2_e["channels"], $coil3_e["channels"], $coil4_e["channels"]), "states"=> array_merge($coil1_e["states"], $coil2_e["states"], $coil3_e["states"], $coil4_e["states"]))
Definition at line 316 of file mshutter.php.
$GLOBALS['tick'] = 0.000008*4*(receive347(0x70)+1) |
Definition at line 265 of file mshutter.php.
$GLOBALS['mshutter_seq_even'] = 0x280 |
Definition at line 264 of file mshutter.php.
$GLOBALS['mshutter_seq'] = 0x200 |
Definition at line 263 of file mshutter.php.
$GLOBALS['mshutter_alternate'] = 1 |
Definition at line 262 of file mshutter.php.
Referenced by parse_seq(), seq_extract_channel(), seq_table(), and write_coil_form().
$i = $j |
Definition at line 332 of file mshutter.php.
$i = $j |
Definition at line 303 of file mshutter.php.
Referenced by addCam(), checkMac(), ddr_check(), ddr_page_read(), ddr_read(), getDottedMAC(), i2c_ctl(), i2c_write256b(), i2cread16(), listCams(), listSession(), oldone(), ramb_check(), sensor_init(), seq_receive(), startSession(), and stopSession().
$seq = seq_receive($GLOBALS['mshutter_seq'],0x80) |
Definition at line 339 of file mshutter.php.
Definition at line 302 of file mshutter.php.
$seq = array() |
Definition at line 292 of file mshutter.php.
Referenced by seq_extract_channel(), seq_receive(), seq_send(), and seq_table().
$seq_e = seq_receive($GLOBALS['mshutter_seq_even'],0x80) |
Definition at line 341 of file mshutter.php.
$seq_e[$ti] = $state_e |
Definition at line 331 of file mshutter.php.
$seq_e = array() |
Definition at line 321 of file mshutter.php.
$state = $coils["states"][$j] << (2 * ($coils["channels"][$j]-1)) |
Definition at line 300 of file mshutter.php.
$state = $coils["states"][$i] << (2 * ($coils["channels"][$i]-1)) |
Definition at line 297 of file mshutter.php.
$state = 0 |
Definition at line 293 of file mshutter.php.
$state_e = $coils_e["states"][$j] << (2 * ($coils_e["channels"][$j]-1)) |
Definition at line 329 of file mshutter.php.
$state_e = $coils_e["states"][$i] << (2 * ($coils_e["channels"][$i]-1)) |
Definition at line 326 of file mshutter.php.
$state_e = 0 |
Definition at line 322 of file mshutter.php.