nbus_app.h 671 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. {
  20. #endif
  21. void nbus_init(nBusAppInterface_t *interface, nBusPlatformInterface_t *hw);
  22. void nbus_init_app(void *hw_interface, void *hw_config);
  23. void nbus_stack(void);
  24. void nbus_init_memory_driver(nBus_MemoryDriver *memDriver);
  25. void nbus_cb_UART_RX(int);
  26. void nbus_cb_TIM_periodElapsed(void);
  27. #ifdef __cplusplus
  28. }
  29. #endif
  30. #endif