Documentation ¶
Index ¶
- Constants
- func SPI_IOC_MESSAGE(n uintptr) uintptr
- func SPI_IOC_RD_BITS_PER_WORD() uintptr
- func SPI_IOC_RD_LSB_FIRST() uintptr
- func SPI_IOC_RD_MAX_SPEED_HZ() uintptr
- func SPI_IOC_RD_MODE() uintptr
- func SPI_IOC_WR_BITS_PER_WORD() uintptr
- func SPI_IOC_WR_LSB_FIRST() uintptr
- func SPI_IOC_WR_MAX_SPEED_HZ() uintptr
- func SPI_IOC_WR_MODE() uintptr
- func SPI_MESSAGE_SIZE(n uintptr) uintptr
- type SPIDevice
- type SPI_IOC_TRANSFER
Constants ¶
View Source
const ( SPI_HARDWARE_ADDR = 0 SPI_BUS = 0 SPI_CHIP = 0 SPI_DELAY = 0 )
Defaults
View Source
const ( DEFAULT_HARDWARE_ADDR = 0 DEFAULT_BUS = 0 DEFAULT_CHIP = 0 )
Defaults
View Source
const SPIDEV = "/dev/spidev"
View Source
const SPI_HELP_LINK = "http://piface.github.io/pifacecommon/installation.html#enable-the-spi-module"
View Source
const SPI_IOC_MAGIC = 107
Variables ¶
This section is empty.
Functions ¶
func SPI_IOC_RD_BITS_PER_WORD ¶
func SPI_IOC_RD_BITS_PER_WORD() uintptr
Read SPI device word length (1..N)
func SPI_IOC_RD_MAX_SPEED_HZ ¶
func SPI_IOC_RD_MAX_SPEED_HZ() uintptr
Read SPI device default max speed hz
func SPI_IOC_WR_BITS_PER_WORD ¶
func SPI_IOC_WR_BITS_PER_WORD() uintptr
Write SPI device word length (1..N)
func SPI_IOC_WR_MAX_SPEED_HZ ¶
func SPI_IOC_WR_MAX_SPEED_HZ() uintptr
Write SPI device default max speed hz
func SPI_MESSAGE_SIZE ¶
Types ¶
type SPIDevice ¶
func NewSPIDevice ¶
An SPI Device at /dev/spi<bus>.<chip_select>.
func (*SPIDevice) SetBitsPerWord ¶
type SPI_IOC_TRANSFER ¶
type SPI_IOC_TRANSFER struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.