usapack public
Dependents: optWingforHAPS_Eigen hexaTest_Eigen
Diff: UsaPack.hpp
- Revision:
- 7:bc00f60af715
- Parent:
- 6:43078601fc5c
- Child:
- 8:2c3cdcf1ae3a
diff -r 43078601fc5c -r bc00f60af715 UsaPack.hpp --- a/UsaPack.hpp Mon May 24 04:31:24 2021 +0000 +++ b/UsaPack.hpp Mon May 31 16:40:55 2021 +0000 @@ -3,20 +3,21 @@ #include "mbed.h" +#define receive_size 256 +#define package_types 64 +#define send_size 256 + class UsaPack { private: Serial serial; - const int receive_size = 256; char receive_buffer[receive_size]; volatile int receive_index; - const int package_types = 64; volatile int package_index; volatile int package_address[package_types]; volatile int package_size[package_types]; void* package_object[package_types]; - const int send_size = 256; char send_buffer[send_size]; volatile int send_index; volatile int send_end_index;