![]() ![]() ![]() ![]() |
|
The SPI kernel device drivers provide access to the BCM2835 spi interface.
In common with many other device drivers it makes 'files' available in the /dev/ folder of your system that you can write to and read from using ioctl commands.
The module HiPi::Device::SPI supports communication with SPI devices using the kernel device driver.
The device drivers are configured and loaded at system startup as described in the Loading Device Drivers Topic.
Users who are members of the group 'spi' can access the SPI devices. By default, user 'pi' is a member of the spi group.
The kernel drivers in Raspbian provide access to the SPI0 peripheral by default. The Raspberry Pi GPIO provides 2 SPI cable select pins and the device driver works by providing a different file for each cable select. You therefore get two device files created for the SPI0 peripheral:
/dev/spidev0.0 /dev/spidev0.1