In this subchapter, "magistrate" means any officer as defined in Article 2A.151 , Code of Criminal Procedure, except that the term does not include justices of the supreme court, judges of the court of criminal appeals, or courts of appeals, judges or associate judges of statutory probate courts, or judges or associate judges of district courts that give preference to family law matters or family district courts under Subchapter D, Chapter 24, Government Code.
Tex. Health and Safety Code § 821.0211