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: mbed
Diff: scrp_slave.hpp
- Revision:
- 9:9f43b2ead060
- Parent:
- 8:82727add54ce
- Child:
- 10:25af94dd1668
--- a/scrp_slave.hpp Wed Feb 24 12:34:27 2021 +0000 +++ b/scrp_slave.hpp Thu Feb 25 05:37:29 2021 +0000 @@ -55,8 +55,8 @@ ScrpSlave(PinName TX1,PinName RX1,PinName TX2,PinName RX2,uint32_t addr);//RedePinなし、2ポート ScrpSlave(PinName TX1,PinName RX1,PinName REDE1,PinName TX2,PinName RX2,uint32_t addr);//RedePinあり、1ポート+RedePinなし、1ポート ~ScrpSlave(); - Serial port1; - Serial port2; + RawSerial port1; + RawSerial port2; void addCMD(uint8_t cmd, bool (*proc)(int rx_data,int& tx_data)); bool send1(uint8_t id,uint8_t cmd,int16_t tx_data);//返り値 成功:true 失敗:false bool send2(uint8_t id,uint8_t cmd,int16_t tx_data); @@ -65,7 +65,7 @@ private: DigitalOut *rede_; FlashIAP *flash_; - Serial *serial_[2]; + RawSerial *serial_[2]; uint8_t send_data_[2][8]; uint8_t mode_; uint8_t my_id_;