code: func (d *adxl345DataFormat) toByte() (bits uint8) {
  	bits = 0x00
  	bits = bits | (d.selfTest << 7)
  	bits = bits | (d.spi << 6)
  	bits = bits | (d.intInvert << 5)
  	bits = bits | (d.fullRes << 3)
  	bits = bits | (d.justify << 2)
  	bits = bits | d.sensorRange
  
  	return bits
  }
docs: // toByte returns a byte from the dataFormat configuration