nbus_slave.h 632 B

123456789101112131415161718192021222324252627
  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. #endif
  20. #endif