Yes I'm already using this solution. But to do this I need first to create a task, then to create a channel then to configure this channel, to write on to this channel and after that to stop and close the task!!
I hoped that there was a function which reset the device to powerup state!!