Example #1
0
File: spi.go Project: xqbumu/goPi
// Read SPI device default max speed hz
func SPI_IOC_RD_MAX_SPEED_HZ() uintptr {
	return ioctl.IOR(SPI_IOC_MAGIC, 4, 4)
}
Example #2
0
File: spi.go Project: xqbumu/goPi
// Read SPI bit justification
func SPI_IOC_RD_LSB_FIRST() uintptr {
	return ioctl.IOR(SPI_IOC_MAGIC, 2, 1)
}
Example #3
0
File: spi.go Project: xqbumu/goPi
// Read SPI device word length (1..N)
func SPI_IOC_RD_BITS_PER_WORD() uintptr {
	return ioctl.IOR(SPI_IOC_MAGIC, 3, 1)
}
Example #4
0
File: spi.go Project: xqbumu/goPi
// Read of SPI mode (SPI_MODE_0..SPI_MODE_3)
func SPI_IOC_RD_MODE() uintptr {
	return ioctl.IOR(SPI_IOC_MAGIC, 1, 1)
}