/*
 * Copyright 2020-2025 Yuntu Microelectronics Co., Ltd.
 * All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 * 
 * @file i2c_config.c
 * @brief 
 * 
 */


#include <stddef.h>
#include "i2c_config.h"

/* I2C master */
/* I2C slave */
/*I2C_SlaveConfig0*/
i2c_slave_state_t I2C_SlaveConfig0_State;
extern void I2C0_SlaveRxCpltCallback(i2c_slave_event_t event, void *userData);


const i2c_slave_user_config_t I2C_SlaveConfig0 = {
    .slaveAddress=0x3AU,
    .is10bitAddr=false,
    .operatingMode=I2C_STANDARD_MODE,
    .slaveListening=false,
    .transferType=I2C_USING_DMA,
    .dmaChannel=1,
    .slaveCallback=I2C0_SlaveRxCpltCallback,
    .callbackParam=NULL,
};

