crc.h 445 B

1234567891011121314151617
  1. /* SPDX-License-Identifier: LGPL-2.1-or-later */
  2. /*
  3. *
  4. * BlueZ - Bluetooth protocol stack for Linux
  5. *
  6. * Copyright (C) 2011-2014 Intel Corporation
  7. * Copyright (C) 2002-2010 Marcel Holtmann <marcel@holtmann.org>
  8. *
  9. *
  10. */
  11. #include <stdint.h>
  12. uint32_t crc24_bit_reverse(uint32_t value);
  13. uint32_t crc24_calculate(uint32_t preset, const uint8_t *data, uint8_t len);
  14. uint32_t crc24_reverse(uint32_t crc, const uint8_t *data, uint8_t len);