nbus_slave.h 776 B

1234567891011121314151617181920212223242526272829303132
  1. /**
  2. * @file nbus_impl.h
  3. *
  4. * @brief Zakladna implementacia prikazov nBus protokolu.
  5. *
  6. */
  7. #ifndef __NBUS_IMPL_H__
  8. #define __NBUS_IMPL_H__
  9. #include "nbus_cmd.h"
  10. #include "nbus_types.h"
  11. #if defined(ESP32) || defined(NRF)
  12. #include <inttypes.h>
  13. #include <stddef.h>
  14. #endif
  15. void setErrorResponse(nBus_TypeDef *nbus, uint8_t code);
  16. // nBusCommandType_t get_request_type();
  17. void nbus_slave_unicastToSensorGet(nBus_TypeDef *nbus);
  18. void nbus_slave_unicastToModuleGet(nBus_TypeDef *nBus);
  19. void nbus_slave_unicastToSensorSet(nBus_TypeDef *nbus);
  20. void nbus_slave_unicastToModuleSet(nBus_TypeDef *nBus);
  21. void nbus_slave_broadcast(nBus_TypeDef *nBus, nBusCommandType_t request_type);
  22. void sensor_store_param(nBus_TypeDef *nbus, uint8_t sensor_index, uint8_t param_name);
  23. #endif