Example #1
0
File: spi.go Project: xqbumu/goPi
// Write custom SPI message
func SPI_IOC_MESSAGE(n uintptr) uintptr {
	return ioctl.IOW(SPI_IOC_MAGIC, 0, uintptr(SPI_MESSAGE_SIZE(n)))
}
Example #2
0
File: spi.go Project: xqbumu/goPi
// Write SPI device default max speed hz
func SPI_IOC_WR_MAX_SPEED_HZ() uintptr {
	return ioctl.IOW(SPI_IOC_MAGIC, 4, 4)
}
Example #3
0
File: spi.go Project: xqbumu/goPi
// Write SPI bit justification
func SPI_IOC_WR_LSB_FIRST() uintptr {
	return ioctl.IOW(SPI_IOC_MAGIC, 2, 1)
}
Example #4
0
File: spi.go Project: xqbumu/goPi
// Write SPI device word length (1..N)
func SPI_IOC_WR_BITS_PER_WORD() uintptr {
	return ioctl.IOW(SPI_IOC_MAGIC, 3, 1)
}
Example #5
0
File: spi.go Project: xqbumu/goPi
// Write of SPI mode (SPI_MODE_0..SPI_MODE_3)
func SPI_IOC_WR_MODE() uintptr {
	return ioctl.IOW(SPI_IOC_MAGIC, 1, 1)
}