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