LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ssp_001.c File Reference
#include "ssp_001.h"

Go to the source code of this file.

Functions

void IP_SSP_Set_ClockRate (IP_SSP_001_Type *pSSP, uint32_t clk_rate, uint32_t prescale)
 Set up output clocks per bit for SSP bus.
 
void IP_SSP_Set_Format (IP_SSP_001_Type *pSSP, uint32_t bits, uint32_t frameFormat, uint32_t clockFormat)
 Set up the SSP frame format.
 
void IP_SSP_Set_Mode (IP_SSP_001_Type *pSSP, uint32_t mode)
 Set the SSP working as master or slave mode.
 
void IP_SSP_DeInit (IP_SSP_001_Type *pSSP)
 Disable SSP operation.
 
void IP_SSP_Cmd (IP_SSP_001_Type *pSSP, FunctionalState NewState)
 Enable/Disable SSP operation.
 
void IP_SSP_SendFrame (IP_SSP_001_Type *pSSP, uint16_t tx_data)
 Send SSP 16-bit data.
 
uint16_t IP_SSP_ReceiveFrame (IP_SSP_001_Type *pSSP)
 Get received SSP data.
 
void IP_SSP_LoopBackCmd (IP_SSP_001_Type *pSSP, FunctionalState NewState)
 Enable/Disable loopback mode.
 
IntStatus IP_SSP_GetRawIntStatus (IP_SSP_001_Type *pSSP, SSP_Raw_Int_Status_Type RawInt)
 Get the raw interrupt status.
 
uint32_t IP_SSP_GetIntStatus (IP_SSP_001_Type *pSSP)
 Get the masked interrupt status.
 
void IP_SSP_ClearIntPending (IP_SSP_001_Type *pSSP, SSP_Int_Clear_Type IntClear)
 Clear the corresponding interrupt condition(s) in the SSP controller.
 
FlagStatus IP_SSP_GetStatus (IP_SSP_001_Type *pSSP, SSP_Status_Type Stat)
 Get the current status of SSP controller.
 
uint8_t IP_SSP_GetDataSize (IP_SSP_001_Type *pSSP)
 Get the number of bits transferred in each frame.
 
void IP_SSP_Int_Enable (IP_SSP_001_Type *pSSP, SSP_Int_Mask_Type IntType, FunctionalState NewState)
 Enable/Disable interrupt for the SSP.
 
void IP_SSP_DMA_Cmd (IP_SSP_001_Type *pSSP, SSP_DMA_Type ssp_dma_t, FunctionalState NewState)
 Enable/Disable DMA for SSP.