DAINCUBE DTP10-L Incendio manuale - Pagina 7

Sfoglia online o scarica il pdf Incendio manuale per Controllore DAINCUBE DTP10-L. DAINCUBE DTP10-L 13. Embedded-based teach pendant optimized for industrial robots, arm cortex-a9 linux system

break;
case 2 :
ui->Btn_LED1->setText("ALL");
i++;
break;
case 3 :
ui->Btn_LED1->setText("OFF");
i = 0;
break;
}
}

2.3. Read from serial port and write ring buffer

Read to serial packet and fill in the ring buffer.
/*
* Function name : Receive_Event
* Description
: This function takes packet and stacks it in the ring buffer.
*/
void Serial_Daemon::Receive_Event()
{
char Receive_Packet[BUFF_MAX];
int temp;
memset(Receive_Packet,0,sizeof(Receive_Packet));
read(fd, Receive_Packet, BUFF_MAX);
m_abyBuffer.WriteBinary(Receive_Packet, BUFF_SIZE); //write ring buffer
if(m_abyBuffer.FindChar(STX, temp)){
if(temp == 10){
return;
}
mThreadKEY->start();
}
}