usapack public
Dependents: optWingforHAPS_Eigen hexaTest_Eigen
Revision 12:11a62ab9bfed, committed 2022-07-05
- Comitter:
- NaotoMorita
- Date:
- Tue Jul 05 02:54:39 2022 +0000
- Parent:
- 9:7d39154143a1
- Commit message:
- serial public
Changed in this revision
UsaPack.hpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 7d39154143a1 -r 11a62ab9bfed UsaPack.hpp --- a/UsaPack.hpp Mon May 31 18:51:56 2021 +0000 +++ b/UsaPack.hpp Tue Jul 05 02:54:39 2022 +0000 @@ -10,7 +10,6 @@ class UsaPack { private: - Serial serial; char receive_buffer[receive_size]; volatile int receive_index; volatile int package_index; @@ -27,6 +26,7 @@ void Decode(); public: + Serial serial; UsaPack(PinName tx, PinName rx, int baud); static void CobsEncode(char data[], int length, char send_data[]); static void CobsDecode(char receive_data[], int length, char data[]);