/* WRITE a byte to the NVRAM and then get an ACK to see it was accepted OK, GPIO0 must already be set as an output  */
static void S24C16_write_byte(struct sym_device *np, u_char *ack_data, u_char write_data, u_char *gpreg, u_char *gpcntl)
/* WRITE a byte to the NVRAM and then get an ACK to see it was accepted OK, GPIO0 must already be set as an output  */
static void S24C16_write_byte(struct sym_device *np, u_char *ack_data, u_char write_data, u_char *gpreg, u_char *gpcntl)
{
	int x;
	for (x = 0; x < 8; x++)
		S24C16_do_bit(np, NULL, (write_data >> (7 - x)) & 0x01, gpreg);
	S24C16_read_ack(np, ack_data, gpreg, gpcntl);
}