Add chip select control into the hmc5983 write function