- Main Page
- Modules
- Data Structures
- Files

Typedefs | Enumerations
SPI Enumerated Data Types
SPI

## Typedefs
typedef enum SPI_Command | SPI_Command
| SPI Command.
## Enumerations
enum | SPI_HwMode { SPI_CS_NUM_0, SPI_CS_NUM_1, SPI_CS_NUM_2, SPI_CS_NUM_3, SPI_CS_NUM_INVALID }
| SPI chip select. More...
enum | SPI_WordLen { SPI_WORD_LENGTH_1 = 0, SPI_WORD_LENGTH_2, SPI_WORD_LENGTH_3, SPI_WORD_LENGTH_4, SPI_WORD_LENGTH_5, SPI_WORD_LENGTH_6, SPI_WORD_LENGTH_7, SPI_WORD_LENGTH_8, SPI_WORD_LENGTH_9, SPI_WORD_LENGTH_10, SPI_WORD_LENGTH_11, SPI_WORD_LENGTH_12, SPI_WORD_LENGTH_13, SPI_WORD_LENGTH_14, SPI_WORD_LENGTH_15, SPI_WORD_LENGTH_16, SPI_WORD_LENGTH_17, SPI_WORD_LENGTH_18, SPI_WORD_LENGTH_19, SPI_WORD_LENGTH_20, SPI_WORD_LENGTH_21, SPI_WORD_LENGTH_22, SPI_WORD_LENGTH_23, SPI_WORD_LENGTH_24, SPI_WORD_LENGTH_25, SPI_WORD_LENGTH_26, SPI_WORD_LENGTH_27, SPI_WORD_LENGTH_28, SPI_WORD_LENGTH_29, SPI_WORD_LENGTH_30, SPI_WORD_LENGTH_31, SPI_WORD_LENGTH_32, SPI_MAX_WORD_LEN }
| SPI word length. More...
enum | SPI_WordCntEnb { SPI_WORD_IRQ_DISABLE, SPI_WORD_IRQ_ENABLE }
| SPI word intrupt. More...
enum | SPI_FrameCntEnb { SPI_FRAME_IRQ_DISABLE, SPI_FRAME_IRQ_ENABLE }
| SPI frame intrupt. More...
enum | SPI_Command { SPI_RSVD_CMD = 0, SPI_READ, SPI_WRITE, SPI_RSVD1_CMD }
| SPI Command. More...
enum | SPI_DataDly { SPI_DATA_DLY_0 = 0, SPI_DATA_DLY_1, SPI_DATA_DLY_2, SPI_DATA_DLY_3, SPI_DATA_DLY_UNKNOWN }
| SPI data delay. More...
enum | SPI_ClkPolarity { SPI_CLKP_LOW_AT_IDLE = 0, SPI_CLKP_HIGH_AT_IDLE }
| SPI clock polarity. More...
enum | SPI_ChipSelPol { SPI_CSP_ACTIVE_LOW = 0, SPI_CSP_ACTIVE_HIGH }
| SPI chip select polarity. More...
enum | SPI_ClkPh { SPI_CLK_PH_FALL_EDGE = 0, SPI_CLK_PH_RISE_EDGE }
| SPI clock phase. More...
enum | SPI_OperMode { SPI_POLLING_MODE, SPI_INTERRUPT_MODE }
| SPI Operation mode. More...

## Typedef Documentation

typedef enum SPI_Command SPI_Command

SPI Command.

SPI data read and write command.

## Enumeration Type Documentation

enum SPI_ChipSelPol

SPI chip select polarity.

SPI chip select polarity high or low at active mode.

Enumerator:

  SPI_CSP_ACTIVE_LOW | SPI chip select polarity low
  SPI_CSP_ACTIVE_HIGH | SPI chip select polarity high

enum SPI_ClkPh

SPI clock phase.

SPI clock phase falling or rising.

Enumerator:

  SPI_CLK_PH_FALL_EDGE | SPI clock phase falling
  SPI_CLK_PH_RISE_EDGE | SPI clock phase resing

enum SPI_ClkPolarity

SPI clock polarity.

SPI clock polarity high or low at idle mode.

Enumerator:

  SPI_CLKP_LOW_AT_IDLE | SPI clock polarity low
  SPI_CLKP_HIGH_AT_IDLE | SPI clock polarity high

enum SPI_Command

SPI Command.

SPI data read and write command.

Enumerator:

  SPI_RSVD_CMD | SPI reserve command
  SPI_READ | SPI read command
  SPI_WRITE | SPI write command
  SPI_RSVD1_CMD | SPI reserve1 command

enum SPI_DataDly

SPI data delay.

SPI supports four data delay.

Enumerator:

  SPI_DATA_DLY_0 | SPI data delay 0
  SPI_DATA_DLY_1 | SPI data delay 1
  SPI_DATA_DLY_2 | SPI data delay 2
  SPI_DATA_DLY_3 | SPI data delay 3
  SPI_DATA_DLY_UNKNOWN | SPI data delay unknowen

enum SPI_FrameCntEnb

SPI frame intrupt.

SPI frame intrupt enable or disable.

Enumerator:

  SPI_FRAME_IRQ_DISABLE | SPI frame intrupt disable
  SPI_FRAME_IRQ_ENABLE | SPI frame intrupt enable

enum SPI_HwMode

SPI chip select.

SPI support four chip select.

Enumerator:

  SPI_CS_NUM_0 | SPI device chip select 1
  SPI_CS_NUM_1 | SPI device chip select 2
  SPI_CS_NUM_2 | SPI device chip select 3
  SPI_CS_NUM_3 | SPI device chip select 4
  SPI_CS_NUM_INVALID | SPI device chip select Invalid

enum SPI_OperMode

SPI Operation mode.

SPI operation mode .

Enumerator:

  SPI_POLLING_MODE | SPI Polling mode
  SPI_INTERRUPT_MODE | SPI Intrrupt mode

enum SPI_WordCntEnb

SPI word intrupt.

SPI word intrupt enable or disable.

Enumerator:

  SPI_WORD_IRQ_DISABLE | SPI Word intrupt disable
  SPI_WORD_IRQ_ENABLE | SPI Word intrupt enable

enum SPI_WordLen

SPI word length.

SPI support maximum 32 bit word length.

Enumerator:

  SPI_WORD_LENGTH_1 | SPI Word length 1
  SPI_WORD_LENGTH_2 | SPI Word length 2
  SPI_WORD_LENGTH_3 | SPI Word length 3
  SPI_WORD_LENGTH_4 | SPI Word length 4
  SPI_WORD_LENGTH_5 | SPI Word length 5
  SPI_WORD_LENGTH_6 | SPI Word length 6
  SPI_WORD_LENGTH_7 | SPI Word length 7
  SPI_WORD_LENGTH_8 | SPI Word length 8
  SPI_WORD_LENGTH_9 | SPI Word length 9
  SPI_WORD_LENGTH_10 | SPI Word length 10
  SPI_WORD_LENGTH_11 | SPI Word length 11
  SPI_WORD_LENGTH_12 | SPI Word length 12
  SPI_WORD_LENGTH_13 | SPI Word length 13
  SPI_WORD_LENGTH_14 | SPI Word length 14
  SPI_WORD_LENGTH_15 | SPI Word length 15
  SPI_WORD_LENGTH_16 | SPI Word length 16
  SPI_WORD_LENGTH_17 | SPI Word length 17
  SPI_WORD_LENGTH_18 | SPI Word length 18
  SPI_WORD_LENGTH_19 | SPI Word length 19
  SPI_WORD_LENGTH_20 | SPI Word length 20
  SPI_WORD_LENGTH_21 | SPI Word length 21
  SPI_WORD_LENGTH_22 | SPI Word length 22
  SPI_WORD_LENGTH_23 | SPI Word length 23
  SPI_WORD_LENGTH_24 | SPI Word length 24
  SPI_WORD_LENGTH_25 | SPI Word length 25
  SPI_WORD_LENGTH_26 | SPI Word length 26
  SPI_WORD_LENGTH_27 | SPI Word length 27
  SPI_WORD_LENGTH_28 | SPI Word length 28
  SPI_WORD_LENGTH_29 | SPI Word length 29
  SPI_WORD_LENGTH_30 | SPI Word length 30
  SPI_WORD_LENGTH_31 | SPI Word length 31
  SPI_WORD_LENGTH_32 | SPI Word length 32
  SPI_MAX_WORD_LEN | SPI Word length invalid