Home |
Function RTUClosePipe |
Function RTUClosePipeRTUClosePipe closes a pipe previously opened with RTUOpenPipe: void RTUClosePipe(RTUPipeHandle Pipe); ParametersPipeHandle to the pipe to close. RTUClosePipe cancels all pending transactions, if any. For each canceled transaction, an RTU_CANCELED notification is generated and delivered according to the pipe's notification mode. When the last pipe to a device is closed, the device is deallocated. The default control pipe handle used internally by RTUSB-32 is closed after all attachment/detachment callbacks have been called for the RTUDisconnect event. Clients must ensure that the device handle is not used after the device has been deallocated.
|