Attempted to move ADC code into C from Simulink. This was the last hurdle before moving out of Simulink altogether. This code doesn't work right yet, but I'm unsure why.