Kinetis SDK v.1.2 Demo Applications User's Guide  Rev. 0
Freescale Semiconductor, Inc.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
driver_examples/dspi/dspi_non_blocking/master/main.c File Reference
#include <stdio.h>
#include "board.h"
#include "fsl_clock_manager.h"
#include "fsl_os_abstraction.h"
#include "fsl_dspi_master_driver.h"
#include "fsl_debug_console.h"

Macros

#define DSPI_MASTER_INSTANCE
 
#define TRANSFER_SIZE
 
#define TRANSFER_BAUDRATE
 

Functions

int main (void)
 DSPI master non-blocking. More...
 

Variables

uint8_t receiveBuffer [TRANSFER_SIZE]
 
uint8_t sendBuffer [TRANSFER_SIZE]
 

Macro Definition Documentation

#define DSPI_MASTER_INSTANCE
#define TRANSFER_BAUDRATE
#define TRANSFER_SIZE

Function Documentation

int main ( void  )

Function prototype for main function.

Thid function uses DSPI master to send an array to slave and receive the array back from slave, thencompare whether the two buffers are the same.

Parameters
receiveBuffBuffer used to hold received data

Variable Documentation

uint8_t receiveBuffer[TRANSFER_SIZE]

Prototypes

uint8_t sendBuffer[TRANSFER_SIZE]