Every defendant accused of a misdemeanor for which jail time may be imposed, a gross misdemeanor or a felony and who is financially unable to obtain counsel is entitled to have counsel assigned to represent the defendant at every stage of the proceedings from the defendant's initial appearance before a magistrate or the court through appeal, unless the defendant waives such appointment.
NRS 178.397