can1receivemessage.c
来自「Mplab C30编译器」· C语言 代码 · 共 28 行
C
28 行
#include <ecan.h>
#ifdef _C1TXIF
/*************************************************************************
* Function Name : CAN1ReceiveMessage
* Description : This function reads the data from the receive buffer
* into an array.
* Parameters : unsigned char*: data pointer
* unsigned char: data length
* unsigned char: pointer to DMA buffer
* Return Value : void
**************************************************************************/
void CAN1ReceiveMessage (unsigned char * data, unsigned char datalen,
unsigned char *DMAptr)
{
int i;
for (i = 0; i<datalen; i++)
{
data[i] = *(DMAptr + i);
}
}
#else
#warning "Does not build on this target"
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?