| Kinetis SDK Demo Applications User Guide 1.0.0-beta Freescale Semiconductor, Inc.

- Main Page
- Related Pages
- Demos

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
dspi.c File Reference
`#include "dspi.h"`

## Functions
dspi_status_t | data_source (uint8_t *sourceWord, uint32_t instance)
dspi_status_t | data_sink (uint8_t sinkWord, uint32_t instance)
void | on_error (dspi_status_t error, uint32_t instance)
void | dspi_edma_master_setup (uint8_t instance, uint32_t baudRateHz, uint8_t transferSizeBits)
void | dspi_edma_slave_setup (uint8_t instance, uint8_t transferSizeBits)

## Variables
uint8_t | g_slaveRxBuffer [256]
volatile uint16_t | g_slaveTxCount
volatile uint32_t | g_errorFlag

## Function Documentation

dspi_status_t data_sink | ( | uint8_t | sinkWord,
|  | uint32_t | instance
| ) |  |

dspi_status_t data_source | ( | uint8_t * | sourceWord,
|  | uint32_t | instance
| ) |  |

void dspi_edma_master_setup | ( | uint8_t | instance,
|  | uint32_t | baudRateHz,
|  | uint8_t | transferSizeBits
| ) |  |

void dspi_edma_slave_setup | ( | uint8_t | instance,
|  | uint8_t | transferSizeBits
| ) |  |

void on_error | ( | dspi_status_t | error,
|  | uint32_t | instance
| ) |  |

## Variable Documentation

volatile uint32_t g_errorFlag

uint8_t g_slaveRxBuffer[256]

volatile uint16_t g_slaveTxCount