Brief: Class for static digital output by NI PCI-6503 board.
This allows you to set up to 24 control bits grouped in 3 ports of
8 bits. In particular the bits will control functions of the stxm5
clock interface:
- Multiplexers and Tri-state buffer determine which lines or
used for handshaking
- Clock divider devides motor clock
pulses to have desired values
The pinouts of this detector are described in Table
8.3.
Public member functions:
- C++ constructor
ni_sdo()
- C++ destructor
ni_sdo()
- This routine needs to be called before you can write bites
to output. It establishes contact whith the NI PCI-6503 board and
configures the ports for output.
int init_device(log_err *p_log_err)
- This basic routine lets you choose the state of all bits in
a port
int write_port(I16 sPortIndex,I32 lPortBits, log_err *p_log_err)
- This routine returns the value last written to the specified
port.
I32 port_value(I16 sPortIndex)
- Set an individual bit. BitIndex can go from 0 to
(8*SDO_NUM_PORTS_USED-1)
int set_bit(I16 sBitIndex, log_err *p_log_err)
- Clear an individual bit.
int clear_bit(I16 sBitIndex, log_err *p_log_err)
- Return the value that was last written to an individual
bit.
I8 bit_value(I16 sBitIndex)
Holger Fleckenstein
2008-07-08