You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
370 B

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. #include <stdint.h>
  2. namespace iflytop {
  3. class Hardware {
  4. public:
  5. typedef enum { kcan, kuart } from_where_t;
  6. int32_t m_device_id = 0;
  7. public:
  8. void initialize(int deviceId);
  9. int32_t process_rx_packet(from_where_t fromwhere, uint8_t *packet, int32_t len, uint8_t *receipt, int32_t &receiptsize, bool &matching);
  10. void loop();
  11. };
  12. } // namespace iflytop