3.3.4 SAFE_PLIB_DIVAS
Set of safe functions for setting up and controlling the DIVAS peripheral.
#define DIVAS_TIMEOUT (10000)
#define DIVAS_ERROR_CALLBACK_NOT_REGISTERED (0x1U)
#define DIVAS_ERROR_INVALID_PARAMETER (0x2U)
#define DIVAS_ERROR_TIMEOUT (0x3U)
// *****************************************************************************
// *****************************************************************************
// Section: Data Types
// *****************************************************************************
// *****************************************************************************
void DIVAS_Initialize(void);
/* 32-bit Signed division, return quotient */
int32_t DIVAS_DivSigned(int32_t numerator, int32_t denominator);
/* 32-bit Unsigned division, return quotient */
uint32_t DIVAS_DivUnsigned(uint32_t numerator, uint32_t denominator);
/* 32-bit Unsigned division, return quotient and remainder as 64-bit result */
uint64_t DIVAS_DivmodUnsigned(uint32_t numerator, uint32_t denominator);
/* 32-bit Square Root */
uint32_t DIVAS_SquareRoot (uint32_t number);
