drv_mcan.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright (c) 2022-2024, Xiaohua Semiconductor Co., Ltd.
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2024-xx-xx CDT first version
  9. */
  10. #ifndef __DRV_MCAN_H__
  11. #define __DRV_MCAN_H__
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. #include "drv_can.h"
  16. /* The arguments of RT command RT_CAN_CMD_SET_CANFD */
  17. #define MCAN_FD_CLASSICAL 0 /* CAN classical */
  18. #define MCAN_FD_ISO_FD_NO_BRS 1 /* ISO CAN FD without BRS */
  19. #define MCAN_FD_ISO_FD_BRS 2 /* ISO CAN FD with BRS */
  20. #define MCAN_FD_NON_ISO_FD_NO_BRS 3 /* non-ISO CAN FD without BRS */
  21. #define MCAN_FD_NON_ISO_FD_BRS 4 /* non-ISO CAN FD with BRS */
  22. #define MCAN_FD_ARG_MIN MCAN_FD_ISO_FD_NO_BRS
  23. #define MCAN_FD_ARG_MAX MCAN_FD_NON_ISO_FD_BRS
  24. #ifdef __cplusplus
  25. }
  26. #endif
  27. #endif /*__DRV_MCAN_H__ */
  28. /************************** end of file ******************/