| NUC472_NUC442_BSP V3.04.000 The Board Support Package for NUC472/NUC442

Data Structures | Macros | Enumerations | Functions
can.h File Reference

NUC472/NUC442 CAN driver header file. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Data Structures
struct | STR_CANMSG_T
struct | STR_CANMASK_T

## Macros
#define | ALL_MSG 32
#define | MSG(id) id
#define | CAN_GET_INT_STATUS(can)
| Get interrupt status. More...
#define | CAN_GET_INT_PENDING_STATUS(can)
| Get specified interrupt pending status. More...
#define | CAN_DISABLE_WAKEUP(can)
| Disable Wakeup function. More...
#define | CAN_ENABLE_WAKEUP(can)
| Enable Wakeup function. More...
#define | CAN_GET_NEW_DATA_IN_BIT(can, u32MsgNum)
| Get specified Message Object new data into bit value. More...

## Enumerations
enum | E_CAN_ID_TYPE { CAN_STD_ID = 0 , CAN_EXT_ID = 1 }
enum | E_CAN_FRAME_TYPE { REMOTE_FRAME = 0 , DATA_FRAME = 1 }
enum | CAN_MODE_SELECT { CAN_NORMAL_MODE = 1 , CAN_BASIC_MODE = 2 }

## Functions
uint32_t | CAN_SetBaudRate (CAN_T *tCAN, uint32_t u32BaudRate)
| The function is used to set bus timing parameter according current clock and target baud-rate. More...
uint32_t | CAN_Open (CAN_T *tCAN, uint32_t u32BaudRate, uint32_t u32Mode)
| The function is sets bus timing parameter according current clock and target baud-rate. And set CAN operation mode. More...
int32_t | CAN_Transmit (CAN_T *tCAN, uint32_t u32MsgNum, STR_CANMSG_T *pCanMsg)
| Send CAN message. More...
int32_t | CAN_Receive (CAN_T *tCAN, uint32_t u32MsgNum, STR_CANMSG_T *pCanMsg)
| Gets the message, if received. More...
void | CAN_CLR_INT_PENDING_BIT (CAN_T *tCAN, uint8_t u32MsgNum)
| Clear interrupt pending bit. More...
void | CAN_EnableInt (CAN_T *tCAN, uint32_t u32Mask)
| Enable CAN interrupt. More...
void | CAN_DisableInt (CAN_T *tCAN, uint32_t u32Mask)
| Disable CAN interrupt. More...
int32_t | CAN_SetMultiRxMsg (CAN_T *tCAN, uint32_t u32MsgNum, uint32_t u32MsgCount, uint32_t u32IDType, uint32_t u32ID)
| The function is used to configure several receive message objects. More...
int32_t | CAN_SetRxMsg (CAN_T *tCAN, uint32_t u32MsgNum, uint32_t u32IDType, uint32_t u32ID)
| The function is used to configure a receive message object. More...
int32_t | CAN_SetTxMsg (CAN_T *tCAN, uint32_t u32MsgNum, STR_CANMSG_T *pCanMsg)
| The function is used to configure a transmit object. More...
int32_t | CAN_TriggerTxMsg (CAN_T *tCAN, uint32_t u32MsgNum)
| Set transmit request bit. More...

## Detailed Description

NUC472/NUC442 CAN driver header file.

Version
  V1.00

Revision
  8

Date
  14/09/26 3:38p

Note
  SPDX-License-Identifier: Apache-2.0 Copyright (C) 2013 Nuvoton Technology Corp. All rights reserved.

Definition in file can.h.