Allen-Bradley 1784-KTX Reference Manual page 94

Table of Contents

Advertisement

/***************************************************************************
**
**
void
acknowledge_confirmation (KTX_DUALPORT far * dp)
**
**
This routine performs the handshaking with the KTX to indicate
**
that the host has completed processing of the last confirmation.
**
responsibility to acknowledge the confirmation.
**
**
INPUTS
**
KTX_DUALPORT far *dp – points to the base of the KTX dualport
**
**
OUTPUT
**
none
**
***************************************************************************/
void
acknowledge_confirmation (KTX_DUALPORT far *dp)
{
dp–>confirmation_buffer.host_command = 0;
dp–>int_status_to_host = 0;
dp–>host_ack_of_ktx_int_reg = ACKNOWLEDGE_KTX;
dp–>int_status_from_host = CONFIRMATION_PROCESSED; /* interrupt to KTX type
dp–>host_to_ktx_int_reg = INTERRUPT_KTX;
}
Appendix B
Programming Examples
/* zero confirmation buffer */
/* zero interrupt type
/* clears hardware int reg
/* interrupt the KTX
*/
*/
*/
*/
B-15

Advertisement

Table of Contents
loading

This manual is also suitable for:

1784-ktxd1784-kts

Table of Contents