/**
  *********************************************************************************
  *
  * @file    hal_calc.h
  * @brief   Header file of CALC module driver.
  *
  * @version V1.0
  * @date    04 Dec 2017
  * @author  AE Team
  * @note
  *
  * Copyright (C) Shanghai Eastsoft Microelectronics Co. Ltd. All rights reserved.
  *
  ********************************************************************************
  */

#ifndef __HAL_CALC_H__
#define __HAL_CALC_H__

#ifdef __cplusplus
extern "C" {
#endif

#include "utils.h"


/** @addtogroup ES32FXXX_HAL
  * @{
  */

/** @addtogroup CALC
  * @{
  */

/** @addtogroup CALC_Public_Functions
  * @{
  */
extern uint32_t calc_sqrt(uint32_t data);
extern uint32_t calc_div(uint32_t dividend, uint32_t divisor, uint32_t *remainder);
extern int32_t calc_div_sign(int32_t dividend, int32_t divisor, int32_t *remainder);
extern flag_status_t calc_get_dz_status(void);
/**
  * @}
  */

/**
  * @}
  */

/**
  * @}
  */
#ifdef __cplusplus
}
#endif

#endif /* __HAL_CALC_H__ */
