Download DB4getmud(int din)

Transcript
PI1 Parallel Interface
711
PI1strobe( din )
Op Code
Prototype
Description
Arguments
Example
PI1_STROBE {0x1A}
void PI1strobe( int din);
Enables the PI1's External Strobe input. By default
the PI1 uses an internal 10KHz timer to sample the
PI1 inputs and update the PI1 outputs. This internal
rate generator can be replaced by an external TTL
signal with a frequency of up to 10KHz.
din
Device index number.
PI1strobe(1);
This enables PI1_(1) External Strobe input.
PI1optread( din )
Op Code
Prototype
Description
Arguments
Example
PI1_OPTREAD {0x1B}
int
PI1optread( int din);
Reads the PE1's optically isolated input port (if
installed).
din
Device index number.
i = PI1optread(1).
This call reads the state of PI1/PE1_(1)'s optically
isolated input.
PI1optwrite( din, bitcode )
Op Code
Prototype
Description
Arguments
Example
PI1_OPTWRITE {0x1C}
void PI1optwrite( int din, int bitcodel);
Writes the value bitcode to the PE1's optically
isolated output port (if installed).
din
Device index number.
bitcode
8 bit value (0..255)
PI1optwrite(1,0xff).
This call sets all bits on PI1/PE1_(1)'s optically
isolated output.