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