I'm trying to call a function in a header file using this line:
LTC2664_voltage_to_code(dac_voltage, float min_output, float max_output);
and I have no idea what a "primary-expression" is, or what it is reffering to. any ideas?
Thanks,
Justin
void loop()
{
metervoltage = analogRead(meterpin);
doublemetervoltage = 2 * metervoltage;
digitalcoeff = (5 / 1023);
flowrate = 0.00488759 * doublemetervoltage; // 0.00488759=digitalcoeff;
dac_voltage = flowrate;
LTC2664_voltage_to_code(dac_voltage, float min_output, float max_output);
LTC2664_write(LTC2664_CS, LTC2664_CMD_WRITE_ALL_UPDATE_ALL, 0, dac_voltage);
expected primary-expression before 'float'