예제 #1
0
uint8_t Vortex86CAN::requestFrom(void)
{
	RxIndex = RxSize = 0;
	
	if (can == NULL)
		;
	else if (com_QueryRxQueue(can) > 0)
	{
		com_ReadCAN(can, &RxFrame);
		_remoteID = RxFrame.identifier;
		_remoteExt = RxFrame.type;
		RxSize = RxFrame.length;
	}
	
	return RxSize;
}
예제 #2
0
int commandAvailable(void)
{
  return com_QueryRxQueue(Serial);
}