Updated license headers

This commit is contained in:
Gunnar Skjold
2024-07-11 14:03:00 +02:00
parent 8a4efd0047
commit b122fae04c
7 changed files with 30 additions and 20 deletions

View File

@@ -12,6 +12,5 @@
uint16_t crc16(const uint8_t* p, int len);
uint16_t crc16_x25(const uint8_t* p, int len);
uint16_t crc16_1021(const uint8_t* p, int len);
#endif

View File

@@ -33,22 +33,3 @@ uint16_t crc16 (const uint8_t *p, int len) {
return crc;
}
uint16_t crc16_1021(const uint8_t *p, int len) {
uint32_t crc = 0x0000;
for(int i = 0; i < len; i++) {
int mask = 0x80;
while(mask > 0) {
crc <<= 1;
if (p[i] & mask){
crc |= 1;
}
mask>>=1;
if (crc & 0x10000) {
crc &= 0xffff;
crc ^= 0x1021;
}
}
}
return crc;
}

View File

@@ -1,3 +1,9 @@
/**
* @copyright Utilitech AS 2023
* License: Fair Source
*
*/
#ifndef _IMPULSEAMSDATA_H
#define _IMPULSEAMSDATA_H

View File

@@ -1,3 +1,9 @@
/**
* @copyright Utilitech AS 2023
* License: All rights reserved
*
*/
#pragma once
#include <Stream.h>

View File

@@ -1,3 +1,9 @@
/**
* @copyright Utilitech AS 2023
* License: Fair Source
*
*/
#include "ImpulseAmsData.h"
#include "Uptime.h"

View File

@@ -1,3 +1,9 @@
/**
* @copyright Utilitech AS 2023
* License: Fair Source
*
*/
#include "KmpCommunicator.h"
#include "Uptime.h"
#include "crc.h"

View File

@@ -1,3 +1,9 @@
/**
* @copyright Utilitech AS 2023
* License: Fair Source
*
*/
#include "PulseMeterCommunicator.h"
#include "Uptime.h"