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.
Dependencies: CRC16
Fork of SWSPI by
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
Generated on Wed Jul 13 2022 22:01:08 by
1.7.2
