This file is indexed.

/usr/share/psychtoolbox-3/PsychHardware/BitsPlusToolbox/bitsGoggles.m is in psychtoolbox-3-common 3.0.11.20131230.dfsg1-1build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
% usage bitsGoggles(left,right,window)
%
% where 0 = goggle open
% and 1 = goggle closed
%
% drives the FE1 goggles connected to bits 4 and 5 of the digital output.

function bitsGoggles(left,right,window)

    %  Bits     Shutter
    % 5    4     L   R
    % --------------------
    % 1    1     O   O
    % 0    0     O   C
    % 1    0     C   O 
    % 0    1     C   C

    left=logical(left);
    right=logical(right);

    bit5 = ~right;
    bit4 = ~xor(left,right);
    
    Mask = 16 + 32;
    %Mask = 65535;
    
    Data=zeros(1,248);
    if (bit4)
        Data=Data + 16;
    end
    
    if (bit5)
        Data=Data + 32;
    end        
    
    Command = 0;

    bitsEncodeDIO(Mask,Data,Command, window);