NbusSlave.h 533 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * AppBridge.h
  3. *
  4. * Created on: Mar 3, 2025
  5. * Author: juraj
  6. */
  7. #ifndef SRC_APPSLAVE_H_
  8. #define SRC_APPSLAVE_H_
  9. #include "inttypes.h"
  10. #include "dataframe.h"
  11. #include "NbusCommunicator.h"
  12. class NbusSlave {
  13. private:
  14. uint8_t _address;
  15. NbusCommunicator* _communicator;
  16. Nbus_pdu _pdu;
  17. uint8_t sensor_cache[16];
  18. public:
  19. NbusSlave(uint8_t, NbusCommunicator*);
  20. DataFrame* nbus_echo();
  21. virtual ~NbusSlave();
  22. };
  23. #ifdef __cplusplus
  24. extern "C"
  25. {
  26. #endif
  27. #ifdef __cplusplus
  28. }
  29. #endif
  30. #endif /* SRC_APPSLAVE_H_ */