| 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
Macros | Functions
ssp_18xx_43xx.c File Reference
`#include "chip.h"`

Go to the source code of this file.

## Macros
#define | SSP_Write2BFifo(pSSP, xf_setup)
#define | SSP_Write1BFifo(pSSP, xf_setup)
#define | SSP_Read2BFifo(pSSP, xf_setup, rDat)
#define | SSP_Read1BFifo(pSSP, xf_setup, rDat)

## Functions
uint32_t | Chip_SSP_RWFrames_Blocking (LPC_SSP_T *pSSP, Chip_SSP_DATA_SETUP_T *xf_setup)
| SSP Polling Read/Write in blocking mode.
uint32_t | Chip_SSP_WriteFrames_Blocking (LPC_SSP_T *pSSP, uint8_t *buffer, uint32_t buffer_len)
| SSP Polling Write in blocking mode.
uint32_t | Chip_SSP_ReadFrames_Blocking (LPC_SSP_T *pSSP, uint8_t *buffer, uint32_t buffer_len)
| Note here.
void | Chip_SSP_Int_FlushData (LPC_SSP_T *pSSP)
| Clean all data in RX FIFO of SSP.
Status | Chip_SSP_Int_RWFrames8Bits (LPC_SSP_T *pSSP, Chip_SSP_DATA_SETUP_T *xf_setup)
| SSP Interrupt Read/Write with 8-bit frame width.
Status | Chip_SSP_Int_RWFrames16Bits (LPC_SSP_T *pSSP, Chip_SSP_DATA_SETUP_T *xf_setup)
| SSP Interrupt Read/Write with 16-bit frame width.
void | Chip_SSP_SetMaster (LPC_SSP_T *pSSP, bool master)
| Set the SSP operating modes, master or slave.
void | Chip_SSP_SetBitRate (LPC_SSP_T *pSSP, uint32_t bitRate)
| Set the clock frequency for SSP interface.
void | Chip_SSP_Init (LPC_SSP_T *pSSP)
| Initialize the SSP.
void | Chip_SSP_DeInit (LPC_SSP_T *pSSP)
| Shutdown the SSP.

## Macro Definition Documentation

#define SSP_Read1BFifo | ( |  | pSSP,
|  |  | xf_setup,
|  |  | rDat
| ) |  |

Value:
while (IP_SSP_GetStatus(pSSP, \
SSP_STAT_RNE) == SET && xf_setup->rx_cnt < xf_setup->length) { \
rDat = IP_SSP_ReceiveFrame(pSSP); \
if (xf_setup->rx_data) { \
*(uint8_t *) ((uint32_t) xf_setup->rx_data + xf_setup->rx_cnt) = rDat; \
} \
xf_setup->rx_cnt++; \
}

SSP macro: read 2 bytes from FIFO buffer

Definition at line 65 of file ssp_18xx_43xx.c.

#define SSP_Read2BFifo | ( |  | pSSP,
|  |  | xf_setup,
|  |  | rDat
| ) |  |

Value:
while (IP_SSP_GetStatus(pSSP, \
SSP_STAT_RNE) == SET && xf_setup->rx_cnt < xf_setup->length) { \
rDat = IP_SSP_ReceiveFrame(pSSP); \
if (xf_setup->rx_data) { \
*(uint16_t *) ((uint32_t) xf_setup->rx_data + xf_setup->rx_cnt) = rDat; \
} \
xf_setup->rx_cnt += 2; \
}

SSP macro: read 1 bytes from FIFO buffer

Definition at line 54 of file ssp_18xx_43xx.c.

#define SSP_Write1BFifo | ( |  | pSSP,
|  |  | xf_setup
| ) |  |

Value:
if (xf_setup->tx_data) {IP_SSP_SendFrame(pSSP, \
(*(uint8_t *) ((uint32_t) xf_setup->tx_data \
+ xf_setup->tx_cnt))); } \
else {IP_SSP_SendFrame(pSSP, 0xFF); } \
xf_setup->tx_cnt++;

SSP macro: write 1 bytes to FIFO buffer

Definition at line 46 of file ssp_18xx_43xx.c.

#define SSP_Write2BFifo | ( |  | pSSP,
|  |  | xf_setup
| ) |  |

Value:
if (xf_setup->tx_data) {IP_SSP_SendFrame(pSSP, \
(*(uint16_t *) ((uint32_t) xf_setup->tx_data \
+ xf_setup->tx_cnt))); } \
else {IP_SSP_SendFrame(pSSP, 0xFFFF); } \
xf_setup->tx_cnt += 2;

SSP macro: write 2 bytes to FIFO buffer

Definition at line 38 of file ssp_18xx_43xx.c.