HAL_DIV.h 669 B

123456789101112131415161718192021222324
  1. #ifndef _HAL_DIV_H_
  2. #define _HAL_DIV_H_
  3. #include "ACM32Fxx_HAL.h"
  4. /************************************************************************
  5. * function : hardwareNN_Div_q32
  6. * Description: Computes q = b div c and a = b mod c.
  7. cDigits must be 1, and *c < 0xffffffff
  8. * input : UINT32 *b -- input b databuffer
  9. UINT32 *c -- input c databuffer
  10. * output: UINT32 *q -- quotient of result
  11. UINT32 *a -- remainder of result
  12. * return: none
  13. ************************************************************************/
  14. void HAL_DIV_Q32(UINT32 *q,UINT32 *a,UINT32 *b,UINT32 bDigits,UINT32 *c,UINT32 cDigits);
  15. #endif