1.3.7.3 1.5.6.3 1.29.7.3 DIVAS_DivUnsigned Function
C
uint32_t DIVAS_DivUnsigned( uint32_t numerator, uint32_t denominator)
Summary
This function uses the DIVAS peripheral to performs a unsigned 32-bit division.
Description
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
Precondition
The peripheral should have been initialized by calling the DIVAS_Initialize() function once.
Parameters
Param | Description |
---|---|
numerator | This should contain the unsigned dividend. |
denominator | This should contain the unsigned divisor. |
Returns
Returns quotient
Example
uint32_t dividend; uint32_t divisor; uint32_t quotient; dividend = 10000; divisor = 2000; quotient = DIVAS_DivUnsigned(dividend, divisor)
Remarks
None.