Jump to content

SPI Mode3


brettcoupe.

Recommended Posts

Hi

Armbian for Orange Pi Pc.

how can I set the SPI mode to 3.

 

When I try 

#include <linux/spi/spidev.h>    //Needed for SPI port

#define SPI_INTERFACE "/dev/spidev0.0"

 

 

uint8_t    mode,

 mode |= SPI_CPHA;
 mode |= SPI_CPOL;

 ioctl(file, SPI_IOC_WR_MODE, &mode)

 

returns not allowed.

 

Thanks

Brett

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines