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.
RS485_usrlib.h@0:bc8a5f269990, 2017-02-26 (annotated)
- Committer:
- WakoTakeru
- Date:
- Sun Feb 26 09:53:19 2017 +0000
- Revision:
- 0:bc8a5f269990
- Child:
- 1:1cd6941022b3
First commit
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| WakoTakeru | 0:bc8a5f269990 | 1 | |
| WakoTakeru | 0:bc8a5f269990 | 2 | #ifndef __RS485_usrlib_H__ |
| WakoTakeru | 0:bc8a5f269990 | 3 | #define __RS485_usrlib_H__ |
| WakoTakeru | 0:bc8a5f269990 | 4 | #include "mbed.h" |
| WakoTakeru | 0:bc8a5f269990 | 5 | #include "Serial.h" |
| WakoTakeru | 0:bc8a5f269990 | 6 | |
| WakoTakeru | 0:bc8a5f269990 | 7 | extern void onInterrupt(); |
| WakoTakeru | 0:bc8a5f269990 | 8 | |
| WakoTakeru | 0:bc8a5f269990 | 9 | class RS485{ |
| WakoTakeru | 0:bc8a5f269990 | 10 | private: |
| WakoTakeru | 0:bc8a5f269990 | 11 | Serial _serial; |
| WakoTakeru | 0:bc8a5f269990 | 12 | DigitalOut _rede; |
| WakoTakeru | 0:bc8a5f269990 | 13 | public: |
| WakoTakeru | 0:bc8a5f269990 | 14 | int buffer[5]; |
| WakoTakeru | 0:bc8a5f269990 | 15 | RS485(PinName,PinName,PinName); |
| WakoTakeru | 0:bc8a5f269990 | 16 | void Transmit_data(int,int *); |
| WakoTakeru | 0:bc8a5f269990 | 17 | int getc(); |
| WakoTakeru | 0:bc8a5f269990 | 18 | }; |
| WakoTakeru | 0:bc8a5f269990 | 19 | #endif |