can.h.bak 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /* USER CODE BEGIN Header */
  2. /**
  3. ******************************************************************************
  4. * @file can.h
  5. * @brief This file contains all the function prototypes for
  6. * the can.c file
  7. ******************************************************************************
  8. * @attention
  9. *
  10. * Copyright (c) 2023 STMicroelectronics.
  11. * All rights reserved.
  12. *
  13. * This software is licensed under terms that can be found in the LICENSE file
  14. * in the root directory of this software component.
  15. * If no LICENSE file comes with this software, it is provided AS-IS.
  16. *
  17. ******************************************************************************
  18. */
  19. /* USER CODE END Header */
  20. /* Define to prevent recursive inclusion -------------------------------------*/
  21. #ifndef __CAN_H__
  22. #define __CAN_H__
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26. /* Includes ------------------------------------------------------------------*/
  27. #include "main.h"
  28. /* USER CODE BEGIN Includes */
  29. /* USER CODE END Includes */
  30. extern CAN_HandleTypeDef hcan1;
  31. /* USER CODE BEGIN Private defines */
  32. /* USER CODE END Private defines */
  33. void MX_CAN1_Init(void);
  34. /* USER CODE BEGIN Prototypes */
  35. extern CAN_FilterTypeDef CAN1_sFilterConfig;
  36. extern CAN_TxHeaderTypeDef CAN1_TxHeader;
  37. extern CAN_RxHeaderTypeDef CAN1_RxHeader;
  38. extern uint8_t CAN1_TxData[8];
  39. extern uint8_t CAN1_RxData[8];
  40. extern uint32_t CAN1_TxMailbox;
  41. extern uint8_t CAN1_RX_EndFlag;
  42. extern uint8_t CAN1_TX_BusyFlag;
  43. /* USER CODE END Prototypes */
  44. #ifdef __cplusplus
  45. }
  46. #endif
  47. #endif /* __CAN_H__ */