/* Reads the current configuration and output settings for the DAC.  */
void mcp4725ReadConfig(uint8_t *status, uint16_t *value)
/* Reads the current configuration and output settings for the DAC.  */
void mcp4725ReadConfig(uint8_t *status, uint16_t *value)
{
  if (!_mcp4725Initialised) mcp4725Init();
  uint32_t i;
  for ( i = 0; i < I2C_BUFSIZE; i++ )
  {
    I2CMasterBuffer[i] = 0x00;
  }
  I2CWriteLength = 1;
  I2CReadLength = 3;
  I2CMasterBuffer[0] = MCP4725_ADDRESS | MCP4725_READ;
  i2cEngine();
  *status = I2CSlaveBuffer[0];
  *value = ((I2CSlaveBuffer[1] << 4) | (I2CSlaveBuffer[2] >> 4));
}