uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
SPI Public Functions

Functions

void SPI_Init (LPC_SPI_TypeDef *SPIx, SPI_CFG_Type *SPI_ConfigStruct)
 
void SPI_DeInit (LPC_SPI_TypeDef *SPIx)
 
void SPI_SetClock (LPC_SPI_TypeDef *SPIx, uint32_t target_clock)
 
void SPI_ConfigStructInit (SPI_CFG_Type *SPI_InitStruct)
 
void SPI_SendData (LPC_SPI_TypeDef *SPIx, uint16_t Data)
 
uint16_t SPI_ReceiveData (LPC_SPI_TypeDef *SPIx)
 
int32_t SPI_ReadWrite (LPC_SPI_TypeDef *SPIx, SPI_DATA_SETUP_Type *dataCfg, SPI_TRANSFER_Type xfType)
 
void SPI_IntCmd (LPC_SPI_TypeDef *SPIx, FunctionalState NewState)
 
IntStatus SPI_GetIntStatus (LPC_SPI_TypeDef *SPIx)
 
void SPI_ClearIntPending (LPC_SPI_TypeDef *SPIx)
 
uint8_t SPI_GetDataSize (LPC_SPI_TypeDef *SPIx)
 
uint32_t SPI_GetStatus (LPC_SPI_TypeDef *SPIx)
 
FlagStatus SPI_CheckStatus (uint32_t inputSPIStatus, uint8_t SPIStatus)
 

Detailed Description

Function Documentation

FlagStatus SPI_CheckStatus ( uint32_t  inputSPIStatus,
uint8_t  SPIStatus 
)
void SPI_ClearIntPending ( LPC_SPI_TypeDef SPIx)
void SPI_ConfigStructInit ( SPI_CFG_Type SPI_InitStruct)
void SPI_DeInit ( LPC_SPI_TypeDef SPIx)
uint8_t SPI_GetDataSize ( LPC_SPI_TypeDef SPIx)
IntStatus SPI_GetIntStatus ( LPC_SPI_TypeDef SPIx)
uint32_t SPI_GetStatus ( LPC_SPI_TypeDef SPIx)
void SPI_Init ( LPC_SPI_TypeDef SPIx,
SPI_CFG_Type SPI_ConfigStruct 
)
void SPI_IntCmd ( LPC_SPI_TypeDef SPIx,
FunctionalState  NewState 
)
int32_t SPI_ReadWrite ( LPC_SPI_TypeDef SPIx,
SPI_DATA_SETUP_Type dataCfg,
SPI_TRANSFER_Type  xfType 
)
uint16_t SPI_ReceiveData ( LPC_SPI_TypeDef SPIx)
void SPI_SendData ( LPC_SPI_TypeDef SPIx,
uint16_t  Data 
)
void SPI_SetClock ( LPC_SPI_TypeDef SPIx,
uint32_t  target_clock 
)