Changing the Verb Record

Your application must format the EXR as a negative response and send it to the PLU using either RUI_WRITE, depending on the API in use. To convert an EXR input to a response output, make the following changes in the verb record:
  • Set lua_rh.rri to 1 to show this is a response.
  • Set lua_rh.ri to 1, indicating a negative response.
  • Set the appropriate data-flow flag in lua_flag1 based on the values in lua_flag2.
  • Set lua_message_type to LUA_MESSAGE_TYPE_0.
  • Set lua_opcode to LUA_OPCODE_RUI_WRITE, depending on the API in use.
  • Set lua_data_length to 4, the length of the sense data.
  • Set lua_data_ptr to the address of the sense data, whose location depends on the verb that detected the EXR-if the verb was RUI_BID, the sense data is in the "peek buffer" in the verb record; if the verb was RUI_READ, the sense data is in the input buffer.
  • Set lua_max_length to 0.

Your program can now use the verb record and buffer for the EXR to initiate the RUI_WRITE to send the negative response.