DTL_RMW

The DTL_RMW functions allow the client application to read, modify, and write a word or longword in a processor's data table in one uninterruptable operation. This function has three forms: DTL_RMW is the asynchronous version; DTL_RMW_W is the synchronous version; and DTL_RMW_CB is the callback version.
DTL_RETVAL DTL_RMW(
name_id, variable, and_mask, or_mask, io_stat, wait_id, timeout
)
UNSIGNED LONG
name_id
;
/* data item handle
UNSIGNED CHAR *
variable
;
/* pointer to data buffer
UNSIGNED LONG
and_mask
;
/* AND mask value
UNSIGNED LONG
or_mask
;
/* OR mask value
UNSIGNED LONG *
io_stat
;
/* pointer to I/O status buffer
UNSIGNED LONG
wait_id
;
/* wait identifier
UNSIGNED LONG
timeout
;
/* I/O timeout value
DTL_RETVAL DTL_RMW_W(
name_id, variable, and_mask, or_mask, io_stat, timeout
)
UNSIGNED LONG
name_id
;
/* data item handle
UNSIGNED CHAR *
variable
;
/* pointer to data buffer
UNSIGNED LONG
and_mask
;
/* AND mask value
UNSIGNED LONG
or_mask
;
/* OR mask value
UNSIGNED LONG *
io_stat
;
/* pointer to I/O status buffer
UNSIGNED LONG
timeout
;
/* I/O timeout value
DTL_RETVAL DTL_RMW_CB(
name_id, variable, and_mask, or_mask, timeout, callback_proc, callback_param
)
UNSIGNED LONG
name_id
;
/* data item handle
UNSIGNED CHAR *
variable
;
/* pointer to data buffer
UNSIGNED LONG
and_mask
;
/* AND mask value
UNSIGNED LONG
or_mask
;
/* OR mask value
UNSIGNED LONG
timeout
;
/* I/O timeout value
DTL_IO_CALLBACK_PROC
callback_proc
;
/* callback procedure number
UNSIGNED LONG
callback_param
;
/* callback parameter value
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal