nbus_app.h 666 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /**
  2. * @file nbus_app.h
  3. *
  4. * @brief Zakladna kostra nBus protokolu.
  5. *
  6. */
  7. #ifndef __NBUS_APP_H__
  8. #define __NBUS_APP_H__
  9. #include "nbus_types.h"
  10. #if MODULE_SLAVE == 1
  11. #include "nbus_slave.h"
  12. #endif
  13. #if MODULE_MASTER == 1
  14. #include "nbus_master_module.h"
  15. #endif
  16. #include "nbus_cmd.h"
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. void nbus_init(nBusAppInterface_t *interface, nBusPlatformInterface_t *hw);
  21. void nbus_init_app(void *hw_interface, void *hw_config);
  22. void nbus_stack(void);
  23. void nbus_init_memory_driver(nBus_MemoryDriver *memDriver, uint16_t capacity);
  24. void nbus_cb_UART_RX(int);
  25. void nbus_cb_TIM_periodElapsed(void);
  26. #ifdef __cplusplus
  27. }
  28. #endif
  29. #endif