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; }
int commandAvailable(void) { return com_QueryRxQueue(Serial); }