Free all resources consumed by a Photon channel
int PhDetach( struct _Ph_ctrl *Ph );
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().
See PhAttach().
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |