/* Configure the packet. 
See the data sheet for details.  */
void radio_configure_packet(uint8_t lf_len_bits, uint8_t s0_len_bytes, uint8_t s1_len_bits)
/* Configure the packet. 
See the data sheet for details.  */
void radio_configure_packet(uint8_t lf_len_bits, uint8_t s0_len_bytes, uint8_t s1_len_bits)
{
    RADIO_PCNF0 = RADIO_PCNF0_LFLEN_MASKED(lf_len_bits)
        | RADIO_PCNF0_S0LEN_MASKED(s0_len_bytes)
        | RADIO_PCNF0_S1LEN_MASKED(s1_len_bits);
}