Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
RFID_125KHz_Grove.h
- Committer:
- sergeynikitin
- Date:
- 2015-02-22
- Revision:
- 0:f28689b8d158
- Child:
- 1:8d16a97fe85e
File content as of revision 0:f28689b8d158:
#ifndef RFID_125KHZ_GROVE_H #define RFID_125KHZ_GROVE_H #include "mbed.h" class RfidGrove { public: /** * RfidGrove constructor * * @param tx TX pin * @param rx RX pin * @param buff0 - char[64] work buffer * @param bufflen - work buffer length */ RfidGrove(PinName tx, PinName rx , char* buff0, int bufflen ); /** * RfidGrove destructor */ ~RfidGrove(); int Available(); void ClearBuffer(); int GetCharCount(); private: Serial _rfid; Timer _t; int _available; int _waittime; char * _buff; int _bufferlen; int _cnt; void Callback(); }; #endif