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/i2c/i2c_non_blocking/master/main.c File Reference
#include <stdio.h>
#include "board.h"
#include "fsl_os_abstraction.h"
#include "fsl_i2c_master_driver.h"
#include "fsl_debug_console.h"

Macros

#define DATA_LENGTH
 

Functions

bool i2c_compare (uint8_t *txBuff, uint8_t *rxBuff, uint32_t count)
 compare the data received with data sent. More...
 
int main (void)
 The i2c master The function send array to slave, then receive a array from slave Then compare whether the two buffers are same. More...
 

Variables

uint8_t txBuff [DATA_LENGTH]
 
uint8_t rxBuff [DATA_LENGTH]
 

Macro Definition Documentation

#define DATA_LENGTH

Function Documentation

bool i2c_compare ( uint8_t *  txBuff,
uint8_t *  rxBuff,
uint32_t  count 
)
Parameters
sourceThe pointer to send buffer
sinkThe pointer to received buffer
countThe number of bytes to be compared
Returns
true or false
int main ( void  )

Function prototype for main function.

Parameters
receiveBuffBuffer used to hold received data

Return code from each SSD function

Address of the target location

Return protection status

Number of longword or phrase to be verified

0=normal, 1=user, 2=factory - margin read for reading

Indicate LED is brighter or dimmer

Variable Documentation

uint8_t rxBuff[DATA_LENGTH]
uint8_t txBuff[DATA_LENGTH]