nbus_app.h 599 B

123456789101112131415161718192021222324252627282930
  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. void nbus_init(nBusAppInterface_t *interface, nBusPlatformInterface_t *hw);
  18. void nbus_init_app(void *hw_interface, void *hw_config);
  19. void nbus_stack(void);
  20. void nbus_init_memory_driver(nBus_MemoryDriver *memDriver, uint16_t capacity);
  21. void nbus_cb_UART_RX(void);
  22. void nbus_cb_TIM_periodElapsed(void);
  23. #endif