#include <stdio.h>
#include "board.h"
#include "fsl_os_abstraction.h"
#include "fsl_i2c_hal.h"
#include "fsl_i2c_master_driver.h"
#include "fsl_clock_manager.h"
#include "fsl_debug_console.h"
|
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...
|
|
bool i2c_compare |
( |
uint8_t * |
txBuff, |
|
|
uint8_t * |
rxBuff, |
|
|
uint32_t |
count |
|
) |
| |
- Parameters
-
source | The pointer to send buffer |
sink | The pointer to received buffer |
count | The number of bytes to be compared |
- Returns
- true or false
Function prototype for main function.
- Parameters
-
receiveBuff | Buffer 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