![]() |
NUC472_NUC442_BSP V3.03.003
The Board Support Package for NUC472/NUC442
|

Macros | |
| #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... | |
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... | |
| void | CAN_Close (CAN_T *tCAN) |
| The function is used to disable all CAN interrupt. More... | |
Variables | |
| uint32_t | STR_CANMSG_T::IdType |
| uint32_t | STR_CANMSG_T::FrameType |
| uint32_t | STR_CANMSG_T::Id |
| uint8_t | STR_CANMSG_T::DLC |
| uint8_t | STR_CANMSG_T::Data [8] |
| uint8_t | STR_CANMASK_T::u8Xtd |
| uint8_t | STR_CANMASK_T::u8Dir |
| uint32_t | STR_CANMASK_T::u32Id |
| uint8_t | STR_CANMASK_T::u8IdType |
| #define CAN_DISABLE_WAKEUP | ( | can | ) |
| #define CAN_ENABLE_WAKEUP | ( | can | ) |
| #define CAN_GET_INT_PENDING_STATUS | ( | can | ) |
| #define CAN_GET_INT_STATUS | ( | can | ) |
| #define CAN_GET_NEW_DATA_IN_BIT | ( | can, | |
| u32MsgNum | |||
| ) |
| void CAN_Close | ( | CAN_T * | tCAN | ) |
| void CAN_CLR_INT_PENDING_BIT | ( | CAN_T * | tCAN, |
| uint8_t | u32MsgNum | ||
| ) |
| void CAN_DisableInt | ( | CAN_T * | tCAN, |
| uint32_t | u32Mask | ||
| ) |
Disable CAN interrupt.
| [in] | tCAN | The base address of can module. |
| [in] | u32Mask | Interrupt Mask. ( CAN_CON_IE_Msk / CAN_CON_SIE_Msk / CAN_CON_EIE_Msk) |
Definition at line 707 of file can.c.

| void CAN_EnableInt | ( | CAN_T * | tCAN, |
| uint32_t | u32Mask | ||
| ) |
Enable CAN interrupt.
| [in] | tCAN | The base address of can module. |
| [in] | u32Mask | Interrupt Mask. ( CAN_CON_IE_Msk / CAN_CON_SIE_Msk / CAN_CON_EIE_Msk) |
| 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.
| [in] | tCAN | The base address of can module |
| [in] | u32BaudRate | The target CAN baud-rate. The range of u32BaudRate is 1~1000KHz |
| [in] | u32Mode | The CAN operation mode. ( CAN_NORMAL_MODE / CAN_BASIC_MODE) |
Definition at line 589 of file can.c.

| int32_t CAN_Receive | ( | CAN_T * | tCAN, |
| uint32_t | u32MsgNum, | ||
| STR_CANMSG_T * | pCanMsg | ||
| ) |
Gets the message, if received.
| [in] | tCAN | The base address of can module. |
| [in] | u32MsgNum | Specifies the Message object number, from 0 to 31 |
| [out] | pCanMsg | Pointer to the message structure where received data is copied. |
| HIDDEN_SYMBOLS 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.
| [in] | tCAN | The base address of can module |
| [in] | u32BaudRate | The target CAN baud-rate. The range of u32BaudRate is 1~1000KHz |
Definition at line 479 of file can.c.


| 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.
| [in] | tCAN | The base address of can module. |
| [in] | u32MsgNum | The starting MSG RAM number. (0 ~ 31) |
| [in] | u32MsgCount | the number of MSG RAM of the FIFO. |
| [in] | u32IDType | Specifies the identifier type of the frames that will be transmitted. ( CAN_STD_ID / CAN_EXT_ID) |
| [in] | u32ID | Specifies the identifier used for acceptance filtering. |
| 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.
| [in] | tCAN | The base address of can module. |
| [in] | u32MsgNum | Specifies the Message object number, from 0 to 31 |
| [in] | u32IDType | Specifies the identifier type of the frames that will be transmitted. ( CAN_STD_ID / CAN_EXT_ID) |
| [in] | u32ID | Specifies the identifier used for acceptance filtering. |
| int32_t CAN_SetTxMsg | ( | CAN_T * | tCAN, |
| uint32_t | u32MsgNum, | ||
| STR_CANMSG_T * | pCanMsg | ||
| ) |
The function is used to configure a transmit object.
| [in] | tCAN | The base address of can module. |
| [in] | u32MsgNum | Specifies the Message object number, from 0 to 31 |
| [in] | pCanMsg | Pointer to the message structure where received data is copied. |
Definition at line 614 of file can.c.

| int32_t CAN_Transmit | ( | CAN_T * | tCAN, |
| uint32_t | u32MsgNum, | ||
| STR_CANMSG_T * | pCanMsg | ||
| ) |
Send CAN message.
| [in] | tCAN | The base address of can module. |
| [in] | u32MsgNum | Specifies the Message object number, from 0 to 31 |
| [in] | pCanMsg | Pointer to the message structure where received data is copied. |
Definition at line 793 of file can.c.

| int32_t CAN_TriggerTxMsg | ( | CAN_T * | tCAN, |
| uint32_t | u32MsgNum | ||
| ) |