3.3.4.4 DIVAS_DivmodUnsigned
This function uses the DIVAS peripheral to performs a unsigned 32-bit division, and returns both the quotient and remainder as 64-bit number.
This function uses the DIVAS peripheral to perform a unsigned 32-bit division. The function takes a unsigned divisor and dividend as input, and returns quotient and remainder as 64-bit number
uint64_t
DIVAS_DivmodUnsigned
(
uint32_t numerator,
uint32_t denominator
);
Precondition
- The peripheral should have been initialized by calling the DIVAS_Initialize() function once.
Parameters
- numerator - this should contain the unsigned dividend
- denominator - This should contain the unsigned divisor
Returns
- returns quotient and remainder as 64-bit number (32-bit LSB is quotient and 32-bit MSB is remainder)
