nbus_slave.h 719 B

12345678910111213141516171819202122232425262728
  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. void setErrorResponse(nBus_TypeDef *nbus, uint8_t code);
  12. // nBusCommandType_t get_request_type();
  13. #if MODULE_SLAVE == 1
  14. void nbus_slave_unicastToSensorGet(nBus_TypeDef *nbus);
  15. void nbus_slave_unicastToModuleGet(nBus_TypeDef *nBus);
  16. void nbus_slave_unicastToSensorSet(nBus_TypeDef *nbus);
  17. void nbus_slave_unicastToModuleSet(nBus_TypeDef *nBus);
  18. void nbus_slave_broadcast(nBus_TypeDef *nBus, nBusCommandType_t request_type);
  19. void sensor_store_param(nBus_TypeDef *nbus, uint8_t sensor_index, uint8_t param_name);
  20. #endif
  21. #endif