module Spi
Defined in:
spi.cr
Constant Summary
-
IOC_MAGIC =
'k'
-
IOC_RD_BITS_PER_WORD =
IOCTL._IOR(IOC_MAGIC, 3, sizeof(UInt8))
-
IOC_RD_LSB_FIRST =
IOCTL._IOR(IOC_MAGIC, 2, sizeof(UInt8))
-
IOC_RD_MAX_SPEED_HZ =
IOCTL._IOR(IOC_MAGIC, 4, sizeof(UInt32))
-
IOC_RD_MODE =
IOCTL._IOR(IOC_MAGIC, 1, sizeof(UInt8))
-
IOC_RD_MODE32 =
IOCTL._IOR(IOC_MAGIC, 5, sizeof(UInt32))
-
IOC_WR_BITS_PER_WORD =
IOCTL._IOW(IOC_MAGIC, 3, sizeof(UInt8))
-
IOC_WR_LSB_FIRST =
IOCTL._IOW(IOC_MAGIC, 2, sizeof(UInt8))
-
IOC_WR_MAX_SPEED_HZ =
IOCTL._IOW(IOC_MAGIC, 4, sizeof(UInt32))
-
IOC_WR_MODE =
IOCTL._IOW(IOC_MAGIC, 1, sizeof(UInt8))
-
IOC_WR_MODE32 =
IOCTL._IOW(IOC_MAGIC, 5, sizeof(UInt32))
-
MODE_USER_MASK =
(1_u64 << 17) - 1
-
VERSION =
{{ (`shards version /srv/crystaldoc.info/github-SleepingInsomniac-Spi-master/src`).chomp.stringify }}
Class Method Summary
Class Method Detail
def self.
ioc_message(n)
#
def self.
message_size(n)
#