swphy_decode_speed
speed_index = swphy_decode_speed(state->speed);
err = swphy_decode_speed(state->speed);