Skip to content

Commit

Permalink
Merge pull request piface#28 from psytester/patch-1
Browse files Browse the repository at this point in the history
spi_ioc_transfer structure with tx_nbits/rx_nbits and smaller pad
  • Loading branch information
Thomas Preston authored Jan 14, 2019
2 parents f81ae8e + b28b157 commit 006bca1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pifacecommon/linux_spi_spidev.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ class spi_ioc_transfer(ctypes.Structure):
("delay_usecs", ctypes.c_uint16),
("bits_per_word", ctypes.c_uint8),
("cs_change", ctypes.c_uint8),
("pad", ctypes.c_uint32)]
("tx_nbits", ctypes.c_uint8),
("rx_nbits", ctypes.c_uint8),
("pad", ctypes.c_uint16)]

__slots__ = [name for name, type in _fields_]

Expand Down

0 comments on commit 006bca1

Please sign in to comment.