What were the duties of a "Brigade Inspector"?

White Flint Bill

Oct 9, 2017
Southern Virginia
Captain Hugh L. Guerrant of the 13th NC Infantry, Co. K was "Acting Assistant Adjutant and Inspector General to Scales" at Gettysburg. He is mentioned specifically in Colonel Hyman's after action report. I have come across references to him as being the "Brigade Inspector" at Gettysburg. As such, what would his duties have been during the battle?

Any help will be appreciated. Thanks