PMX 1.0.0
読み取り中…
検索中…
一致する文字列を見つけられません
PmxCRC.h
[詳解]
1
11#ifndef __Pmx_CRC_h__
12#define __Pmx_CRC_h__
13
14//#include "Arduino.h"
15
16
18{
19 public:
20 //PMXのCRCを計算する
21 static unsigned int getCrc16(unsigned char data[], int length);
22
23
24 //PMXのデータにCRCを追加する
25 static void setCrc16(unsigned char data[]);
26
27 //PMXの受信データのCRCをチェックする
28 static bool checkCrc16(unsigned char data[]);
29};
30
31#endif
Definition: PmxCRC.h:18
static void setCrc16(unsigned char data[])
PMXの送信データにCRCを付け加える関数
Definition: PmxCRC.cpp:101
static unsigned int getCrc16(unsigned char data[], int length)
PMXの送信/受信データの配列を取得し、CRCを計算するライブラリ
Definition: PmxCRC.cpp:79
static bool checkCrc16(unsigned char data[])
受信したデータのCRCがあっているかどうかの確認する関数
Definition: PmxCRC.cpp:124