/* Function for splitting UART command bit fields into separate command parameters for the DTM library.  */
static uint32_t dtm_cmd_put(uint16_t command)
/* Function for splitting UART command bit fields into separate command parameters for the DTM library.  */
static uint32_t dtm_cmd_put(uint16_t command)
{
    dtm_cmd_t      command_code = (command >> 14) & 0x03;
    dtm_freq_t     freq         = (command >> 8) & 0x3F;
    uint32_t       length       = (command >> 2) & 0x3F;
    dtm_pkt_type_t payload      = command & 0x03;
    if (payload == 0x03)
    {
        payload = DTM_PKT_VENDORSPECIFIC;
    }
    return dtm_cmd(command_code, freq, length, payload);
}