/* Set maximum transmission length in number of bytes.  */
void radio_set_maxlen(uint8_t maxlen)
/* Set maximum transmission length in number of bytes.  */
void radio_set_maxlen(uint8_t maxlen)
{
    uint32_t reg_pcnf1 = RADIO_PCNF1;
    reg_pcnf1 &= ~RADIO_PCNF1_MAXLEN_MASK;
    RADIO_PCNF1 = reg_pcnf1 | RADIO_PCNF1_MAXLEN_MASKED(maxlen);
}