If the Sleep Mode is set to 1, the pin sleep allows the module to sleep and wake. When the pin sleep is asserted (put to \'high\'), the module will finish any transmit or receive operations and enter a low-power state. The module will wake from the low-power state when the pin sleep is de-asserted (\'low\'). For this purpose, the functions
wake() are defined.