packages/web/353/php_top/mshutter.php File Reference

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)


Function Documentation

i2cread16 ( start,
length = 256 
)

Definition at line 76 of file mshutter.php.

References $data, $i, $i2c, $regs, dev, and n.

nicefloaty ( f  ) 

Definition at line 94 of file mshutter.php.

References $s.

Referenced by seq_extract_channel(), and seq_table().

parse_seq ( sec_str,
chn 
)

Definition at line 141 of file mshutter.php.

References $a, $GLOBALS, $p, $s, and $time.

receive347 ( register_address  ) 

Definition at line 65 of file mshutter.php.

References $data, $i2c, $v, and dev.

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/>. ! -----------------------------------------------------------------------------** !

Log
mshutter.php,v
! Revision 1.1.1.1 2008/11/27 20:04:03 elphel ! ! ! Revision 1.1 2007/12/06 19:02:51 elphel ! collected most of the camera PHP script into one /packages/web/353/php_top directory ! ! Revision 1.2 2007/10/12 05:33:53 elphel ! Fixed wrong fillout of the "Even exposures" form ! ! Revision 1.1.1.1 2007/10/10 05:43:21 elphel ! This is a fresh tree based on elphel353-2.10 !

Definition at line 37 of file mshutter.php.

References $i2c, and dev.

seq_extract_channel ( seq,
chn 
)

Definition at line 239 of file mshutter.php.

References $GLOBALS, $s, $seq, $state, $time, and nicefloaty().

seq_receive ( adr,
length 
)

Definition at line 212 of file mshutter.php.

References $adr, $data, $i, $i2c, $regs, $seq, $state, dev, and n.

seq_send ( seq,
adr 
)

Definition at line 193 of file mshutter.php.

References $adr, $seq, $state, $time, and send347().

seq_table ( seq  ) 

Definition at line 181 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 99 of file mshutter.php.

References $GLOBALS, d, equal(), name, size, state, type, and value.


Variable Documentation

$coil2_e = parse_seq($icoil2_e,2)

Definition at line 316 of file mshutter.php.

$coil3_e = parse_seq($icoil3_e,3)

Definition at line 317 of file mshutter.php.

$coil4_e = parse_seq($icoil4_e,4)

Definition at line 318 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 319 of file mshutter.php.

$GLOBALS['tick'] = 0.000008*4*(receive347(0x70)+1)

Definition at line 268 of file mshutter.php.

$GLOBALS['mshutter_seq_even'] = 0x280

Definition at line 267 of file mshutter.php.

$GLOBALS['mshutter_seq'] = 0x200

Definition at line 266 of file mshutter.php.

$GLOBALS['mshutter_alternate'] = 1

Definition at line 265 of file mshutter.php.

Referenced by parse_seq(), seq_extract_channel(), seq_table(), and write_coil_form().

$i = $j

Definition at line 335 of file mshutter.php.

$i = $j

Definition at line 306 of file mshutter.php.

Referenced by addCam(), apply_latencies(), apply_triggers(), applyPost(), checkMac(), ddr_check(), ddr_page_read(), ddr_read(), xml_simple::force_to_array(), getDottedMAC(), getGammaStructure(), i2c_ctl(), i2c_write256b(), i2cread16(), listCams(), listSession(), mainJavascript(), make_Makefile_am(), print_latencies(), print_SOF(), print_SOS(), print_triggers(), print_triggers_head(), printHistogram(), printRawFrame(), printRawGamma(), printRawHistogram(), profileShow(), ramb_check(), read_latencies(), read_triggers(), sensor_init(), seq_receive(), showJpegHeader(), showLastImages(), startSession(), stopSession(), and writePagesTable().

$seq = seq_receive($GLOBALS['mshutter_seq'],0x80)

Definition at line 342 of file mshutter.php.

$seq[$ti] = $state

Definition at line 305 of file mshutter.php.

$seq = array()

Definition at line 295 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 344 of file mshutter.php.

$seq_e[$ti] = $state_e

Definition at line 334 of file mshutter.php.

$seq_e = array()

Definition at line 324 of file mshutter.php.

$state = $coils["states"][$j] << (2 * ($coils["channels"][$j]-1))

Definition at line 303 of file mshutter.php.

$state = $coils["states"][$i] << (2 * ($coils["channels"][$i]-1))

Definition at line 300 of file mshutter.php.

$state = 0

Definition at line 296 of file mshutter.php.

$state_e = $coils_e["states"][$j] << (2 * ($coils_e["channels"][$j]-1))

Definition at line 332 of file mshutter.php.

$state_e = $coils_e["states"][$i] << (2 * ($coils_e["channels"][$i]-1))

Definition at line 329 of file mshutter.php.

$state_e = 0

Definition at line 325 of file mshutter.php.


Generated on Fri Nov 28 00:08:38 2008 for elphel by  doxygen 1.5.1