IRC Helicopter "HonyBee" Propo decode test program
これは、赤外線コントロールヘリコプター"HonyBee"のPropoからの送信データを解析して、PCに表示させるテストプログラムです。 詳しくは、 http://suupen-make.blogspot.jp/2013/06/irc-helicopter-honybeembedtest-program.html を参照してください。
Diff: CodecIRPropoHonyBee/DecodeHonyBee.h
- Revision:
- 0:f9e49220c97a
diff -r 000000000000 -r f9e49220c97a CodecIRPropoHonyBee/DecodeHonyBee.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/CodecIRPropoHonyBee/DecodeHonyBee.h Sun Jun 23 07:28:06 2013 +0000 @@ -0,0 +1,63 @@ +/** + * Decode IR Propo HonyBee class + * Version 0.0 130623 + * + * Writer:suupen + */ + +#ifndef _DECODEHonyBee_H_ +#define _DECODEHonyBee_H_ + +#include <mbed.h> +#include "CodecHonyBee.h" + + +/** + * Decode class. + */ +class DecodeHonyBee { +public: + + +/** + * Constructor + */ + DecodeHonyBee(); + +/** + * Destructor. + */ + ~DecodeHonyBee(); + +/** + * Get HonyBee propo analysis data. + * + * @param data IR recive data + * + * @param HonyBee Pointer to HonyBee. + * + * @return receive answer : ture:recive ok false:recive ng. + */ + bool decode(uint8_t *data, CodecHonyBee::honyBeePropo_t *HonyBee); + +/** + * Normalize HonyBee data. + * + * @param buf Pointer to propo recive data. + * + * @param propo normalize propo data. + * + * @return receive answer : ture:recive ok false:recive ng. + */ +bool normalize(uint8_t *buf, CodecHonyBee::normalizePropo_t *propo); + +private: + + + + +}; + +#endif + +