stcTxBUF的结构体是怎么样的?麻烦哪位专家有发我一份,小弟第一次接触,怎么找都找不到。这个结构体是干么用的?
void Thread_CAN_TX(uint16 length,uint8 *can_send_txbuf)
{
uint16 i=0,j,k,DLC,m=0,n;
uint32 status=0;
stcTxBUF CTbuf;
uint8 can_frame_txbuf[7]={0x01,0x00,0x00,0x00,0x00,0x28,0x00};
//can_frame_txbuf[5] = AI_ID;
can_frame_txbuf[5] = 40;
k = length;
j = (uint16)((k/8)+1);
for(n=0;n<j;n++)
{
if(k<=4)
{
DLC = k;
CTbuf.TxFrameInfo.Bits.PRIO_BIT = can_frame_txbuf[0]; //CAN通道号
CTbuf.TxFrameInfo.Bits.FF_BIT = (can_frame_txbuf[1]&0x80) >> 7; //帧格式 |