The `wrsamp` function calls a lot of functions behind the scenes. Performing adc and such. These functions should be documented and clarified.