SPI_CFG_Type Struct Reference
[SPI_Public_Types]
SPI configuration structure.
More...
#include <lpc17xx_spi.h>
Data Fields | |
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 160 of file lpc17xx_spi.h.
Field Documentation
uint32_t ClockRate |
Data order, should be:
- SPI_DATA_MSB_FIRST: MSB first
- SPI_DATA_LSB_FIRST: LSB first
Definition at line 175 of file lpc17xx_spi.h.
uint32_t CPHA |
Databit number, should be SPI_DATABIT_x, where x is in range from 8 - 16
Definition at line 163 of file lpc17xx_spi.h.
uint32_t CPOL |
Clock phase, should be:
- SPI_CPHA_FIRST: first clock edge
- SPI_CPHA_SECOND: second clock edge
Definition at line 166 of file lpc17xx_spi.h.
uint32_t Databit |
Definition at line 161 of file lpc17xx_spi.h.
uint32_t DataOrder |
SPI mode, should be:
- SPI_MASTER_MODE: Master mode
- SPI_SLAVE_MODE: Slave mode
Definition at line 172 of file lpc17xx_spi.h.
uint32_t Mode |
Clock polarity, should be:
- SPI_CPOL_HI: high level
- SPI_CPOL_LO: low level
Definition at line 169 of file lpc17xx_spi.h.
The documentation for this struct was generated from the following file:
- C:/nxpdrv/LPC1700CMSIS/Drivers/include/lpc17xx_spi.h
Generated on Mon Feb 8 10:01:56 2010 for LPC1700CMSIS Standard Peripheral Firmware Library by 1.5.9