NXP's driver library for LPC17xx, ported to mbed's online compiler. Not tested! I had to fix a lot of warings and found a couple of pretty obvious bugs, so the chances are there are more. Original: http://ics.nxp.com/support/documents/microcontrollers/zip/lpc17xx.cmsis.driver.library.zip

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

SPI_DATA_SETUP_Type Struct Reference

SPI_DATA_SETUP_Type Struct Reference
[SPI_Public_Types]

SPI Data configuration structure definitions. More...

#include <lpc17xx_spi.h>

Data Fields

void * tx_data
 Pointer to transmit data.
void * rx_data
 Pointer to transmit data.
uint32_t length
 Length of transfer data.
uint32_t counter
 Data counter index.
uint32_t status
 Current status of SPI activity.
void(* callback )(void)
 Pointer to Call back function when transmission complete used in interrupt transfer mode.

Detailed Description

SPI Data configuration structure definitions.

Definition at line 191 of file lpc17xx_spi.h.


Field Documentation

void(* callback)(void)

Pointer to Call back function when transmission complete used in interrupt transfer mode.

Definition at line 197 of file lpc17xx_spi.h.

uint32_t counter

Data counter index.

Definition at line 195 of file lpc17xx_spi.h.

uint32_t length

Length of transfer data.

Definition at line 194 of file lpc17xx_spi.h.

void* rx_data

Pointer to transmit data.

Definition at line 193 of file lpc17xx_spi.h.

uint32_t status

Current status of SPI activity.

Definition at line 196 of file lpc17xx_spi.h.

void* tx_data

Pointer to transmit data.

Definition at line 192 of file lpc17xx_spi.h.