C:/nxpdrv/LPC1700CMSIS/Drivers/source/lpc17xx_spi.c File Reference
: Contains all functions support for SPI firmware library on LPC17xx More...
#include "lpc17xx_spi.h"
#include "lpc17xx_clkpwr.h"
#include "lpc17xx_libcfg_default.h"
Go to the source code of this file.
Data Structures | |
struct | SPI_CFG_T |
SPI device configuration structure type. More... | |
Functions | |
void | SPI_IntHandler (void) |
Standard Private SPI Interrupt handler. | |
void | SPI_SetClock (LPC_SPI_TypeDef *SPIx, uint32_t target_clock) |
Setup clock rate for SPI device. | |
void | SPI_DeInit (LPC_SPI_TypeDef *SPIx) |
De-initializes the SPIx peripheral registers to their default reset values. | |
void | SPI_Init (LPC_SPI_TypeDef *SPIx, SPI_CFG_Type *SPI_ConfigStruct) |
Initializes the SPIx peripheral according to the specified parameters in the UART_ConfigStruct. | |
void | SPI_ConfigStructInit (SPI_CFG_Type *SPI_InitStruct) |
Fills each SPI_InitStruct member with its default value:
| |
void | SPI_SendData (LPC_SPI_TypeDef *SPIx, uint16_t Data) |
Transmit a single data through SPIx peripheral. | |
uint16_t | SPI_ReceiveData (LPC_SPI_TypeDef *SPIx) |
Receive a single data from SPIx peripheral. | |
int32_t | SPI_ReadWrite (LPC_SPI_TypeDef *SPIx, SPI_DATA_SETUP_Type *dataCfg, SPI_TRANSFER_Type xfType) |
SPI Read write data function. | |
void | SPI_IntCmd (LPC_SPI_TypeDef *SPIx, FunctionalState NewState) |
Enable or disable SPIx interrupt. | |
IntStatus | SPI_GetIntStatus (LPC_SPI_TypeDef *SPIx) |
Checks whether the SPI interrupt flag is set or not. | |
void | SPI_ClearIntPending (LPC_SPI_TypeDef *SPIx) |
Clear SPI interrupt flag. | |
uint32_t | SPI_GetStatus (LPC_SPI_TypeDef *SPIx) |
Get current value of SPI Status register in SPIx peripheral. | |
FlagStatus | SPI_CheckStatus (uint32_t inputSPIStatus, uint8_t SPIStatus) |
Checks whether the specified SPI Status flag is set or not via inputSPIStatus parameter. | |
void | SPI_StdIntHandler (void) |
Standard SPI Interrupt handler. |
Detailed Description
: Contains all functions support for SPI firmware library on LPC17xx
- Version:
- : 1.0
- Date:
- : 3. April. 2009
- Author:
- : HieuNguyen
Definition in file lpc17xx_spi.c.
Generated on Mon Feb 8 10:01:42 2010 for LPC1700CMSIS Standard Peripheral Firmware Library by 1.5.9