uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
SPI_CFG_Type Struct Reference

SPI configuration structure. More...

#include <lpc17xx_spi.h>

Public Attributes

uint32_t Databit
 
uint32_t CPHA
 
uint32_t CPOL
 
uint32_t Mode
 
uint32_t DataOrder
 
uint32_t ClockRate
 

Detailed Description

SPI configuration structure.

Definition at line 232 of file lpc17xx_spi.h.

Member Data Documentation

uint32_t SPI_CFG_Type::ClockRate
Data order, should be:
  • SPI_DATA_MSB_FIRST: MSB first
  • SPI_DATA_LSB_FIRST: LSB first

Definition at line 247 of file lpc17xx_spi.h.

uint32_t SPI_CFG_Type::CPHA
Databit number, should be SPI_DATABIT_x,

where x is in range from 8 - 16

Definition at line 235 of file lpc17xx_spi.h.

uint32_t SPI_CFG_Type::CPOL
Clock phase, should be:
  • SPI_CPHA_FIRST: first clock edge
  • SPI_CPHA_SECOND: second clock edge

Definition at line 238 of file lpc17xx_spi.h.

uint32_t SPI_CFG_Type::Databit

Definition at line 233 of file lpc17xx_spi.h.

uint32_t SPI_CFG_Type::DataOrder
SPI mode, should be:
  • SPI_MASTER_MODE: Master mode
  • SPI_SLAVE_MODE: Slave mode

Definition at line 244 of file lpc17xx_spi.h.

uint32_t SPI_CFG_Type::Mode
Clock polarity, should be:
  • SPI_CPOL_HI: high level
  • SPI_CPOL_LO: low level

Definition at line 241 of file lpc17xx_spi.h.


The documentation for this struct was generated from the following file: