EdgeBotix / HC05

Dependencies:   CRC16

Dependents:   eBot_Firmware_V1

Fork of SWSPI by Dave Van Wagner

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers HC05.h Source File

HC05.h

00001 #ifndef HC05_H
00002 #define HC05_H
00003 
00004 #include "mbed.h"
00005 #include "rtos.h"
00006 #include "MODSERIAL.h"
00007 #include "CRC16.h"
00008 
00009 #define BUFFER_SIZE  512
00010 
00011 class HC05 : public MODSERIAL, public Mutex, public CRC16
00012 {
00013 private:
00014 public:
00015     char buffer[BUFFER_SIZE];
00016     
00017     DigitalOut on_switch;
00018     
00019     HC05(PinName tx_pin, PinName rx_pin, PinName en_pin);
00020     int printfCRC( const char * format, ... );
00021     void printBufferCRC();
00022     void start();
00023     void stop();
00024  
00025 };
00026 
00027 #endif