| MINI55_BSP V3.03.000 The Board Support Package for Mini55 Series MCU

Functions
HDIV Exported Functions
MINI55 Device Driver » HDIV Driver
Collaboration diagram for HDIV Exported Functions:

## Functions
static __INLINE int32_t | HDIV_Div (int32_t x, int16_t y)
| Division function to calculate (x/y) More...
static __INLINE int16_t | HDIV_Mod (int32_t x, int16_t y)
| To calculate the remainder of x/y, i.e., the result of x mod y. More...

## Detailed Description

## Function Documentation

## ◆ HDIV_Div()

static __INLINE int32_t HDIV_Div | ( | int32_t | x,
|  | int16_t | y
| ) |  |
| static

Division function to calculate (x/y)

Parameters

  [in] | x | the dividend of the division
  [in] | y | the divisor of the division

Returns
  The result of (x/y)

This is a division function to calculate x/y

Definition at line 45 of file hdiv.h.

## ◆ HDIV_Mod()

static __INLINE int16_t HDIV_Mod | ( | int32_t | x,
|  | int16_t | y
| ) |  |
| static

To calculate the remainder of x/y, i.e., the result of x mod y.

Parameters

  [in] | x | the dividend of the division
  [in] | y | the divisor of the division

Returns
  The remainder of (x/y)

This function is used to calculate the remainder of x/y.

Definition at line 66 of file hdiv.h.