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.
BusSerial.h@6:496eaf58c584, 2020-11-13 (annotated)
- Committer:
- ttrist
- Date:
- Fri Nov 13 02:02:13 2020 +0000
- Revision:
- 6:496eaf58c584
- Parent:
- 4:3b347fa779b7
"int time_start" -> "uint32_t time_start"
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ttrist | 0:418bb20836bd | 1 | #ifndef BusSerial_H |
ttrist | 0:418bb20836bd | 2 | #define BusSerial_H |
ttrist | 4:3b347fa779b7 | 3 | |
ttrist | 0:418bb20836bd | 4 | #include "mbed.h" |
ttrist | 0:418bb20836bd | 5 | #include "BufferedSerial.h" |
ttrist | 0:418bb20836bd | 6 | |
ttrist | 0:418bb20836bd | 7 | class BusSerial:public BufferedSerial |
ttrist | 0:418bb20836bd | 8 | { |
ttrist | 0:418bb20836bd | 9 | public: |
ttrist | 0:418bb20836bd | 10 | BusSerial(PinName tx, PinName rx,Timer *timer); |
ttrist | 4:3b347fa779b7 | 11 | |
ttrist | 4:3b347fa779b7 | 12 | bool getBusSerial (uint8_t* container, uint8_t head_num, uint8_t data_quantity); |
ttrist | 4:3b347fa779b7 | 13 | bool getTimedBusSerial(uint8_t* container, uint8_t head_num, uint8_t data_quantity, int timeout); |
ttrist | 4:3b347fa779b7 | 14 | bool getBusSerial (uint8_t* container, uint8_t head_num, uint8_t data_quantity, uint8_t footer_num); |
ttrist | 4:3b347fa779b7 | 15 | bool getTimedBusSerial(uint8_t* container, uint8_t head_num, uint8_t data_quantity, uint8_t footer_num, int timeout); |
ttrist | 4:3b347fa779b7 | 16 | |
ttrist | 4:3b347fa779b7 | 17 | void sendBusSerial(uint8_t *send_array, uint8_t size); |
ttrist | 4:3b347fa779b7 | 18 | |
ttrist | 4:3b347fa779b7 | 19 | |
ttrist | 4:3b347fa779b7 | 20 | void GetBusSerial(uint8_t *Argument_Array, int myHead_ID, int RecieveData_sizeof, int BusSerialTimeout); // 旧式関数.今までのやつで使ってたからおす |
ttrist | 0:418bb20836bd | 21 | |
ttrist | 0:418bb20836bd | 22 | private: |
ttrist | 4:3b347fa779b7 | 23 | void deleteBufferData(); |
ttrist | 0:418bb20836bd | 24 | Timer *_timer; |
ttrist | 0:418bb20836bd | 25 | }; |
ttrist | 0:418bb20836bd | 26 | |
ttrist | 0:418bb20836bd | 27 | #endif |