Infineon Logo AIROC BTSDK v4.8 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Group_PeripheralSpiDriver_enums

Typedefs

typedef enum SPI_MODE SPI_MODE
 
typedef enum SPI_SS_POLARITY SPI_SS_POLARITY
 Slave select polarity (output from master)
 
typedef enum SPI_ENDIAN SPI_ENDIAN
 SPI Endian: Direction of bit data flow (MSB or LSB first). More...
 
typedef enum SPI_SS_MODE SPI_SS_MODE
 Slave Select mode (output from master)
 

Enumerations

enum  { SPI_CS_SHIFT = 24, SPI_CLK_SHIFT = 16, SPI_MOSI_SHIFT = 8, SPI_MISO_SHIFT = 0 }
 
enum  spi_interface_t { SPI1 = 0, SPI2 = 1 }
 SPI Interfaces. More...
 
enum  { SPI_MASTER = 1, SPI_SLAVE = 2 }
 SPI Device Role. More...
 
enum  SPI_MODE { SPI_MODE_0, SPI_MODE_1, SPI_MODE_2, SPI_MODE_3 }
 
enum  SPI_SS_POLARITY { SPI_SS_ACTIVE_LOW, SPI_SS_ACTIVE_HIGH }
 Slave select polarity (output from master) More...
 
enum  SPI_ENDIAN { SPI_MSB_FIRST, SPI_LSB_FIRST }
 SPI Endian: Direction of bit data flow (MSB or LSB first). More...
 
enum  SPI_SS_MODE { SPI_SS_NORMAL, SPI_SS_INACTIVE_BTW_BYTES }
 Slave Select mode (output from master) More...
 
enum  { INPUT_PIN_PULL_UP = 0x0400, INPUT_PIN_PULL_DOWN = 0x0200, INPUT_PIN_FLOATING = 0x0 }
 
enum  SPIFFY_STATUS { SPIFFY_SUCCESS, SPIFFY_SLAVE_NOT_ENOUGH_RX_FIFO_BYTES }
 Return values. More...
 

Detailed Description

Typedef Documentation

typedef enum SPI_ENDIAN SPI_ENDIAN

SPI Endian: Direction of bit data flow (MSB or LSB first).

Enumeration Type Documentation

anonymous enum

SPI Device Role.

Enumerator
SPI_MASTER 

SPI Device in the Master role.

SPI_SLAVE 

SPI Device in the Slave role.

anonymous enum
Enumerator
INPUT_PIN_PULL_UP 

pull up for MISO if master mode, for MOSI if Slave mode

INPUT_PIN_PULL_DOWN 

pull DOWN for MISO if master mode, for MOSI if Slave mode

INPUT_PIN_FLOATING 

FLOAT for MISO if master mode, for MOSI if Slave mode.

enum SPI_ENDIAN

SPI Endian: Direction of bit data flow (MSB or LSB first).

Enumerator
SPI_MSB_FIRST 

Transmit most significant bit first.

SPI_LSB_FIRST 

Transmit least significant bit first.

SPI Interfaces.

Enumerator
SPI1 

SPI1 Interface.

SPI2 

SPI2 Interface.

enum SPI_MODE
Enumerator
SPI_MODE_0 

CPOL = 0, CPHA = 0.

Data read on clock's rising edge, data changed on a falling edge

SPI_MODE_1 

CPOL = 0, CPHA = 1.

Data read on clock's falling edge, data changed on a rising edge

SPI_MODE_2 

CPOL = 1, CPHA = 0.

Data read on clock's falling edge, data changed on a rising edge

SPI_MODE_3 

CPOL = 1, CPHA = 1.

Data read on clock's rising edge, data changed on a falling edge

Slave Select mode (output from master)

Enumerator
SPI_SS_NORMAL 

Slave select normal.

SPI_SS_INACTIVE_BTW_BYTES 

Slave select goes inactive between bytes.

Slave select polarity (output from master)

Enumerator
SPI_SS_ACTIVE_LOW 

Slave select active low.

SPI_SS_ACTIVE_HIGH 

Slave select active high.

Return values.