bugfix for duplicate symbol

Fork of nRF51822 by Nordic Semiconductor

Committer:
rgrover1
Date:
Wed Apr 15 08:59:11 2015 +0100
Revision:
103:138bdc859cc9
Synchronized with git rev fa183c40
Author: Rohit Grover
updating to v7.1 of the Nordic SDK.
Re-organized file layout to match that from the SDK.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
rgrover1 103:138bdc859cc9 1 /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
rgrover1 103:138bdc859cc9 2 *
rgrover1 103:138bdc859cc9 3 * The information contained herein is property of Nordic Semiconductor ASA.
rgrover1 103:138bdc859cc9 4 * Terms and conditions of usage are described in detail in NORDIC
rgrover1 103:138bdc859cc9 5 * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
rgrover1 103:138bdc859cc9 6 *
rgrover1 103:138bdc859cc9 7 * Licensees are granted free, non-transferable use of the information. NO
rgrover1 103:138bdc859cc9 8 * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
rgrover1 103:138bdc859cc9 9 * the file.
rgrover1 103:138bdc859cc9 10 *
rgrover1 103:138bdc859cc9 11 */
rgrover1 103:138bdc859cc9 12
rgrover1 103:138bdc859cc9 13 /** @file
rgrover1 103:138bdc859cc9 14 *
rgrover1 103:138bdc859cc9 15 * @defgroup crc_compute CRC compute
rgrover1 103:138bdc859cc9 16 * @{
rgrover1 103:138bdc859cc9 17 * @ingroup hci_transport
rgrover1 103:138bdc859cc9 18 *
rgrover1 103:138bdc859cc9 19 * @brief This module implements the CRC-16 calculation in the blocks.
rgrover1 103:138bdc859cc9 20 */
rgrover1 103:138bdc859cc9 21
rgrover1 103:138bdc859cc9 22 #ifndef CRC16_H__
rgrover1 103:138bdc859cc9 23 #define CRC16_H__
rgrover1 103:138bdc859cc9 24
rgrover1 103:138bdc859cc9 25 #include <stdint.h>
rgrover1 103:138bdc859cc9 26
rgrover1 103:138bdc859cc9 27 #ifdef __cplusplus
rgrover1 103:138bdc859cc9 28 extern "C" {
rgrover1 103:138bdc859cc9 29 #endif
rgrover1 103:138bdc859cc9 30
rgrover1 103:138bdc859cc9 31 /**@brief Function for calculating CRC-16 in blocks.
rgrover1 103:138bdc859cc9 32 *
rgrover1 103:138bdc859cc9 33 * Feed each consecutive data block into this function, along with the current value of p_crc as
rgrover1 103:138bdc859cc9 34 * returned by the previous call of this function. The first call of this function should pass NULL
rgrover1 103:138bdc859cc9 35 * as the initial value of the crc in p_crc.
rgrover1 103:138bdc859cc9 36 *
rgrover1 103:138bdc859cc9 37 * @param[in] p_data The input data block for computation.
rgrover1 103:138bdc859cc9 38 * @param[in] size The size of the input data block in bytes.
rgrover1 103:138bdc859cc9 39 * @param[in] p_crc The previous calculated CRC-16 value or NULL if first call.
rgrover1 103:138bdc859cc9 40 *
rgrover1 103:138bdc859cc9 41 * @return The updated CRC-16 value, based on the input supplied.
rgrover1 103:138bdc859cc9 42 */
rgrover1 103:138bdc859cc9 43 uint16_t crc16_compute(const uint8_t * p_data, uint32_t size, const uint16_t * p_crc);
rgrover1 103:138bdc859cc9 44
rgrover1 103:138bdc859cc9 45 #ifdef __cplusplus
rgrover1 103:138bdc859cc9 46 }
rgrover1 103:138bdc859cc9 47 #endif
rgrover1 103:138bdc859cc9 48
rgrover1 103:138bdc859cc9 49
rgrover1 103:138bdc859cc9 50 #endif // CRC16_H__
rgrover1 103:138bdc859cc9 51
rgrover1 103:138bdc859cc9 52 /** @} */