IPC@CHIP® RTOS-LNX – API Documentation

Header image

Main page


Macros
SPI Defines

Detailed Description

The following SPI defines can be ORed to set the SPI mode in spiInit().

Macros

#define SPI_MODE0   0x0000
 SPI mode 0, CPOL=0 CPHA=0. More...
 
#define SPI_MODE1   0x0001
 SPI mode 1, CPOL=0 CPHA=1. More...
 
#define SPI_MODE2   0x0002
 SPI mode 2, CPOL=1 CPHA=0. More...
 
#define SPI_MODE3   0x0003
 SPI mode 3, CPOL=1 CPHA=1. More...
 
#define SPI_SHIFT1   0x0020
 SPI shift count = 1. More...
 
#define SPI_SHIFT2   0x0040
 SPI shift count = 2. More...
 
#define SPI_SHIFT3   0x0060
 SPI shift count = 3. More...
 
#define SPI_SHIFT4   0x0080
 SPI shift count = 4. More...
 
#define SPI_SHIFT5   0x00A0
 SPI shift count = 5. More...
 
#define SPI_SHIFT6   0x00C0
 SPI shift count = 6. More...
 
#define SPI_SHIFT7   0x00E0
 SPI shift count = 7. More...
 
#define SPI_SHIFT8   0x0000
 SPI shift count = 8. More...
 





Top of page | Main page

Copyright © 2018 Beck IPC GmbH
Generated on Fri Feb 9 2018 17:44:50 by Doxygen 1.8.13