rtlink_utils.h 511 B

123456789101112131415161718192021
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2021-05-15 Sherman the first version
  9. */
  10. #ifndef __RT_LINK_UTILITIES_H__
  11. #define __RT_LINK_UTILITIES_H__
  12. #include <rtthread.h>
  13. /* Calculate the number of '1' */
  14. int rt_link_utils_num1(rt_uint32_t n);
  15. rt_err_t rt_link_sf_crc32_reset(void);
  16. rt_uint32_t rt_link_sf_crc32(rt_uint8_t *data, rt_size_t len);
  17. #endif /* __RT_LINK_UTILITIES_H__ */