/*
 * CRC16.h
 *
 *  Created on: 2019. 7. 3.
 *      Author: parkyj
 */

#ifndef CRC16_H_
#define CRC16_H_

#include "main.h"

typedef enum{
    CHECKSUM_ERROR = 0,
    NO_ERROR
}etError;


uint16_t CRC16_Generate(uint8_t *buf_ptr, int32_t len);
etError CRC16_Check(uint8_t *buf_ptr, int32_t len,uint16_t checksum);
#endif /* CRC16_H_ */
