Initial Fork
Dependencies: CRC16
Fork of SWSPI by
HC05.h
- Committer:
- Throwbot
- Date:
- 2014-10-05
- Revision:
- 2:c13831ca234c
- Parent:
- 1:faa9f74488ba
File content as of revision 2:c13831ca234c:
#ifndef HC05_H #define HC05_H #include "mbed.h" #include "rtos.h" #include "MODSERIAL.h" #include "CRC16.h" #define BUFFER_SIZE 512 class HC05 : public MODSERIAL, public Mutex, public CRC16 { private: public: char buffer[BUFFER_SIZE]; DigitalOut on_switch; HC05(PinName tx_pin, PinName rx_pin, PinName en_pin); int printfCRC( const char * format, ... ); void printBufferCRC(); void start(); void stop(); }; #endif