PhDetach()
Free all resources consumed by a Photon channel
Synopsis:
int PhDetach( struct _Ph_ctrl *Ph );
Description:
This function frees all resources consumed by the Photon channel Ph. If Ph is the current channel, no current channel will exist after this function is called.
Ph is a pointer to a Photon control structure returned by a previous call to PhAttach().
Returns:
- 0
- Successful completion.
- -1
- An error occurred.
Examples:
See PhAttach().
Classification:
Photon
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |
