/* Set the sleep mode of the device and put the MCU to sleep. 
For an overview of which systems are disabled in sleep for the different sleep modes, see the data sheet. */
int sleep(const uint8_t mode)
/* Set the sleep mode of the device and put the MCU to sleep. 
For an overview of which systems are disabled in sleep for the different sleep modes, see the data sheet. */
int sleep(const uint8_t mode)
{
	if (ERR_NONE != _set_sleep_mode(mode))
		return ERR_INVALID_ARG;
	_go_to_sleep();
	return ERR_NONE;
}