| LPCOpen Platform v1.03 LPCOpen Platform for NXP LPC Microcontrollers

- Main Page
- Modules
- Data Structures
- Files
- Related Pages

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
spi_17xx_40xx.h File Reference

Go to the source code of this file.

## Data Structures
struct | CHIP_SPI_CONFIG_FORMAT_T
struct | CHIP_SPI_DATA_SETUP_T
| SPI data setup structure. More...

## Macros
#define | CHIP_SPI_CLOCK_MODE_T IP_SPI_CLOCK_MODE_T
#define | CHIP_SPI_MODE_T IP_SPI_MODE_T
#define | CHIP_SPI_DATA_ORDER_T IP_SPI_DATA_ORDER_T
#define | CHIP_SPI_BITS_T IP_SPI_BITS_T

## Typedefs
typedef void(* | CHIP_SPI_CALLBACK_T )(void)

## Functions
STATIC INLINE uint32_t | Chip_SPI_GetStatus (LPC_SPI_T *pSPI)
| Get the current status of SPI controller.
void | Chip_SPI_Int_FlushData (LPC_SPI_T *pSPI)
| Clean all data in RX FIFO of SPI.
Status | Chip_SPI_Int_RWFrames8Bits (LPC_SPI_T *pSPI, CHIP_SPI_DATA_SETUP_T *xf_setup)
| SPI Interrupt Read/Write with 8-bit frame width.
Status | Chip_SPI_Int_RWFrames16Bits (LPC_SPI_T *pSPI, CHIP_SPI_DATA_SETUP_T *xf_setup)
| SPI Interrupt Read/Write with 16-bit frame width.
uint32_t | Chip_SPI_RWFrames_Blocking (LPC_SPI_T *pSPI, CHIP_SPI_DATA_SETUP_T *pXfSetup)
| SPI Polling Read/Write in blocking mode.
uint32_t | Chip_SPI_WriteFrames_Blocking (LPC_SPI_T *pSPI, uint8_t *buffer, uint32_t buffer_len)
| SPI Polling Write in blocking mode.
uint32_t | Chip_SPI_ReadFrames_Blocking (LPC_SPI_T *pSPI, uint8_t *buffer, uint32_t buffer_len)
| SPI Polling Read in blocking mode.
void | Chip_SPI_Init (LPC_SPI_T *pSPI)
| Initialize the SPI.
void | Chip_SPI_DeInit (LPC_SPI_T *pSPI)
| Deinitialise the SPI.
STATIC INLINE void | Chip_SPI_SetMode (LPC_SPI_T *pSPI, CHIP_SPI_MODE_T mode)
| Set the SPI operating modes, master or slave.
void | Chip_SPI_SetBitRate (LPC_SPI_T *pSPI, uint32_t bitRate)
| Set the clock frequency for SPI interface.
STATIC INLINE void | Chip_SPI_SetFormat (LPC_SPI_T *pSPI, CHIP_SPI_CONFIG_FORMAT_T *format)
| Set up the SPI frame format.
STATIC INLINE void | Chip_SPI_Int_Enable (LPC_SPI_T *pSPI)
| Enable SPI interrupt.
STATIC INLINE void | Chip_SPI_Int_Disable (LPC_SPI_T *pSPI)
| Disable SPI interrupt.