/*!
 * @file        gpio_i2c.h
 *
 * @brief       This file contains the headers of the interrupt handlers
 *
 * @version     V1.0.0
 *
 * @date        2026-02-25
 *
 * @attention
 *
 *  Copyright (C) 2026 Geehy Semiconductor
 *
 *  You may not use this file except in compliance with the
 *  GEEHY COPYRIGHT NOTICE (Geehy Semiconductor Software License Agreement).
 *
 *  The program is only for reference, which is distributed in the hope
 *  that it will be useful and instructional for customers to develop
 *  their software. Unless required by applicable law or agreed to in
 *  writing, the program is distributed on an "AS IS" BASIS, WITHOUT
 *  ANY WARRANTY OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the Geehy Semiconductor Software License Agreement for the governing permissions
 *  and limitations under the License.
 */

/* Define to prevent recursive inclusion */
#ifndef I2C_SLAVE_EXAM_H
#define I2C_SLAVE_EXAM_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes */
#include "g32a10xx.h"

extern volatile uint8_t recevieBuffer[256];
extern volatile uint8_t recevieBufLen;
extern volatile uint8_t sendBuffer[256];
extern volatile uint8_t sendBufLen;

/** @addtogroup Examples
  @{
  */

/** @addtogroup I2C_Examples
  @{
  */

/** @addtogroup GPIO_I2C_SLAVE
  @{
  */

/** @defgroup GPIO_I2C_SLAVE_Enumerations Enumerations
  @{
  */

/**
 * @brief   I2C slave status
 */
typedef enum {
    I2C_SLAVE_WAIT_START = 0,   /* I2C slave status is wait start */
    I2C_SLAVE_START             /* I2C slave status is start */
}I2c_SlaveStateType;

/**@} end of group GPIO_I2C_SLAVE_Enumerations */

/** @defgroup GPIO_I2C_SLAVE_Functions Functions
  @{
  */
void I2c_InitSlaveGpio(void);
void I2c_Slave_Poll(void);

#ifdef __cplusplus
}
#endif

#endif /*I2C_SLAVE_EXAM_H */

/**@} end of group GPIO_I2C_SLAVE_Functions */
/**@} end of group GPIO_I2C_SLAVE */
/**@} end of group I2C_Examples */
/**@} end of group Examples */

