#include <stdio.h>
#include "board.h"
#include "fsl_i2c_slave_driver.h"
#include "fsl_debug_console.h"
|
static void | i2c_slave_callback (uint8_t instance, i2c_slave_event_t i2cEvent, void *callParam) |
| slave event callback. More...
|
|
int | main (void) |
| The i2c slave The function runs i2c slave with interrupt passive mode. Slave receive data from master and echo back to master. More...
|
|
Data Fields |
uint8_t * |
pRxBuff |
|
uint8_t * |
pTxBuff |
|
uint32_t |
rxSize |
|
uint32_t |
txSize |
|
static void i2c_slave_callback |
( |
uint8_t |
instance, |
|
|
i2c_slave_event_t |
i2cEvent, |
|
|
void * |
callParam |
|
) |
| |
|
static |
This callback function is used by the I2C slave IRQ handler to process an event
- Parameters
-
instance | I2C instance |
i2cEvent | The event type |
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
volatile uint8_t i2cState |
volatile bool isDataValid |