<p>OK, the datasheet says that all relevant config registers retain their values during sleep mode. So waking up the transceiver could be implemented as trivial as this:</p>
<div class="highlight highlight-source-c"><pre><span class="pl-k">int</span> <span class="pl-en">cc110x_wake_up</span>(<span class="pl-c1">cc110x_t</span> *dev) {
    <span class="pl-k">if</span> (<span class="pl-c1">cc110x_acquire</span>(dev) != SPI_OK) {
        <span class="pl-k">return</span> -EIO;
    }
    <span class="pl-c1">cc110x_power_on</span>(dev);
    <span class="pl-c1">cc110x_enter_rx_mode</span>(dev);
    <span class="pl-c1">cc110x_release</span>(dev);
    <span class="pl-k">return</span> <span class="pl-c1">0</span>;
}</pre></div>
<p>But I'm not sure if this should actually be user facing API, as instead the common netdev driver interface (<code>netdev_driver_t::set()</code> and <code>netdev_driver_t::get()</code>) could be used like this:</p>
<div class="highlight highlight-source-c"><pre>    <span class="pl-k">const</span> <span class="pl-c1">netopt_state_t</span> sleep = NETOPT_STATE_SLEEP;
    <span class="pl-en">netdev_driver_t::set</span>(NETOPT_STATE, &sleep, <span class="pl-k">sizeof</span>(sleep));</pre></div>
<p>I think this way the user could use <code>ifconfig</code> to put the device to sleep mode and wake it back up.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/12294?email_source=notifications&email_token=ABE7WYFNFYQPTDGUFFPTH5LQMC4MFA5CNFSM4IZ5RP22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD73WOQQ#issuecomment-536307522">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYBA4DMODKPBTZMH76LQMC4MFANCNFSM4IZ5RP2Q">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYCRQFXH4OW3RCMB3F3QMC4MFA5CNFSM4IZ5RP22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD73WOQQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/12294?email_source=notifications\u0026email_token=ABE7WYFNFYQPTDGUFFPTH5LQMC4MFA5CNFSM4IZ5RP22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD73WOQQ#issuecomment-536307522",
"url": "https://github.com/RIOT-OS/RIOT/pull/12294?email_source=notifications\u0026email_token=ABE7WYFNFYQPTDGUFFPTH5LQMC4MFA5CNFSM4IZ5RP22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD73WOQQ#issuecomment-536307522",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>