Magtek MAGTEK User Manual Page 66

  • Download
  • Add to my manuals
  • Print
  • Page
    / 80
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 65
MagTek Communications Protocol, Driver Reference Manual
60
McpReset
This function is used to reset the channel and reestablish communications with an MCP device.
The result of reset is the same as closing and reopening the channel except the device handle
remains the same.
DWORD McpReset( HANDLE hDevice );
Parameters
hDevice
Handle to the specified device (communications resource) that is to be reset. This handle was
returned from the McpOpen function.
Return Value
The returned value indicates the outcome of the reset function.
Value Meaning
MCP_ST_OK Success. The channel has been reset.
MCP_ST_INVALID Invalid device handle hDevice
MCP_ST_FAILED Other error
Remarks
After opening a device, the host application can re-establish, or reset the channel by calling
McpReset. This function cancels any outstanding commands and restores the communication
channel to its initial state. Using this function is more desirable than closing and reopening the
channel.
Page view 65
1 2 ... 61 62 63 64 65 66 67 68 69 70 71 ... 79 80

Comments to this Manuals

No comments