3.3.4.3 DIVAS_DivUnsiged

This function uses the DIVAS peripheral to performs a unsigned 32-bit division.

This function uses the DIVAS peripheral to perform a unsigned 32-bit division. The function takes a unsigned divisor and dividend and returns the quotient

int32_t 
DIVAS_DivUnsigned
(
    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 32-bit quotient