Hello - I'm beating my head against this piece of the wall, I'm using AS7 and it gives an error "unknown type name 'OutState' and points the cursor at the OutState argument of my DetermineState function. Any ideas of why are welcome! thanks, paul
void ADC_setup(); void Timer_Setup(); float ReadADC(uint8_t, uint8_t); void CalAnalog(); float Voltages[3]; float ReadVoltages(float Voltages[]); struct OutState{ uint8_t OutputCompare; int LED_Green; int LED_Yellow; int LED_Red; }; struct OutState OutputState; typedef enum {SHORTED, OPEN, CALIBRATION, BULK, ACCEPT, FLOAT, FAULT} Mode; enum Mode CurrentMode; DetermineState(Mode CurrentMode, float Voltages, OutState OutputState);