The court shall advise a defendant charged with a misdemeanor under Section 472.022, Transportation Code, Subtitle C, Title 7, Transportation Code, or Section 729.001(a)(3), Transportation Code, committed while operating a motor vehicle of the defendant's right under this subchapter to successfully complete a driving safety course or, if the offense was committed while operating a motorcycle, a motorcycle operator training course. The right to complete a course does not apply to a defendant charged with:
Tex. Code Crim. Proc. § 45A.353