/* Write SEE bit in config register. nv = 0 - Writes to SEEPROM registers behave like EEPROM nv = 1 - Writes to SEEPROM registers behave like SRAM  */
int ds4510_see_write(uint8_t chip, uint8_t nv)
/* Write SEE bit in config register. nv = 0 - Writes to SEEPROM registers behave like EEPROM nv = 1 - Writes to SEEPROM registers behave like SRAM  */
int ds4510_see_write(uint8_t chip, uint8_t nv)
{
	uint8_t data;
	if (i2c_read(chip, DS4510_CFG, 1, &data, 1))
		return -1;
	if (nv)
		data &= ~DS4510_CFG_SEE;
	else
		data |= DS4510_CFG_SEE;
	return ds4510_mem_write(chip, DS4510_CFG, &data, 1);
}