Function to write register with SPI now just takes in a pointer to a ADC register value. Addr is retrieved underneath by looking at the structure entry right above it.