| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- /*
- * AppBridge.h
- *
- * Created on: Mar 3, 2025
- * Author: juraj
- */
- #ifndef SRC_APPSLAVE_H_
- #define SRC_APPSLAVE_H_
- #include "inttypes.h"
- #include "dataframe.h"
- #include "NbusCommunicator.h"
- /** Adresa slave modulu, bez špecifikácie adresy konktrétneho senzora. */
- #define SLAVE_ADDRESS_MODULE 0
- class NbusSlave {
- private:
- uint8_t _address;
- NbusCommunicator* _communicator;
- Nbus_pdu _pdu;
- uint8_t sensor_cache[16];
- public:
- NbusSlave(uint8_t, NbusCommunicator*);
- DataFrame* nbus_echo();
- virtual ~NbusSlave();
- };
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- #ifdef __cplusplus
- }
- #endif
- #endif /* SRC_APPSLAVE_H_ */
|