PmxArdinoLib 1.0.3
読み取り中…
検索中…
一致する文字列を見つけられません
PmxCRC.h
[詳解]
1
11#ifndef __Pmx_CRC_h__
12#define __Pmx_CRC_h__
13
14//#include "Arduino.h"
15
23{
24 public:
25 //PMXのCRCを計算する
26 static unsigned int getCrc16(unsigned char data[], int length);
27
28
29 //PMXのデータにCRCを追加する
30 static void setCrc16(unsigned char data[]);
31
32 //PMXの受信データのCRCをチェックする
33 static bool checkCrc16(unsigned char data[]);
34};
35
36#endif
PMXで使用するCRCの演算
Definition PmxCRC.h:23
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