/*
  ******************************************************************************
  * @file    APP.h
  * @author  PJ
  * @version V1.0.0
  * @date    2021
  * @brief   I2C Slave demo Header file.
  ******************************************************************************
*/
#ifndef __APP_H__
#define __APP_H__

#include "acm32g103_coreboard.h" 
#include "bsp_i2c.h" 

#define SLAVE_ADDRESS    (0xA6U)
#define BUFFER_LENGTH    (256)

typedef enum
{
    TEST_SLAVE_POLLING,
    TEST_SLAVE_INTERRUPT,
    TEST_SLAVE_DMA,
}enum_TEST_MODE_t;

extern I2C_Handler_t hi2c;

/* Function : I2C_Slave_Test */
void I2C_Slave_Test(enum_TEST_MODE_t fu8_Mode);

#endif
