nbus_app.h 486 B

123456789101112131415161718192021222324
  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. #include "nbus_impl.h"
  11. #include "nbus_cmd.h"
  12. void nbus_init(Peripheral_typeDef *periph);
  13. void nbus_cb_UART_RX(UART_HandleTypeDef *huart);
  14. void nbus_cb_TIM_periodElapsed(TIM_HandleTypeDef *htim);
  15. void nbus_cb_TIM_periodElapsed_base(TIM_HandleTypeDef *htim);
  16. void receiveOneByte();
  17. void process_request();
  18. void nbus_stack(void);
  19. #endif