📄 can2isrxready.c
字号:
#include "can.h"
#if defined(__dsPIC30F__)
#ifdef _C2IF
/****************************************************************************
* Function Name : CAN2IsRXReady
* Description : This function returns RXFUL bit status which indicates
* whether the receive buffer contains any received message
* Parameters : char: buffno
* Return Value : char:RXFUL bit status
*****************************************************************************/
char CAN2IsRXReady(char buffno)
{
switch(buffno)
{
case 0:
return(C2RX0CONbits.RXFUL);
case 1:
return(C2RX1CONbits.RXFUL);
}
return 0;
}
#else
#warning "Does not build on this target"
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -