base/serial.c
UCHAR* Serial_Scan_Rx_Top()
{
   if(sqRxMessages.ucMessageCount > 0)
   {
      UCHAR ucQueueTop = (sqRxMessages.ucHead - 1) & (SERIAL_QUEUE_RX_SIZE-1);
      //Copy the message content over to a buffer that we can return
      memcpy(aucRxMessageBuffer, sqRxMessages.aucMessages[ucQueueTop].aucBuffer, SERIAL_QUEUE_BUFFER_LENGTH);
      return aucRxMessageBuffer;
   }
   return(NULL);
}
////////////////////////////////////////////////////////////////////////////
// Serial_Scan_Rx_Top
//
// Copies message data from the QUEUE to a buffer. Returns buffer pointer.
//
////////////////////////////////////////////////////////////////////////////
Serial_Scan_Rx_Top
Copies message data from the QUEUE to a buffer. Returns buffer pointer.
Serial_Scan_Rx_Top Copies message data from the QUEUE to a buffer . Returns buffer pointer .
UCHAR* Serial_Scan_Rx_Top()
{
   if(sqRxMessages.ucMessageCount > 0)
   {
      UCHAR ucQueueTop = (sqRxMessages.ucHead - 1) & (SERIAL_QUEUE_RX_SIZE-1);
      memcpy(aucRxMessageBuffer, sqRxMessages.aucMessages[ucQueueTop].aucBuffer, SERIAL_QUEUE_BUFFER_LENGTH);
      return aucRxMessageBuffer;
   }
   return(NULL);
}
UCHAR * Serial_Scan_Rx_Top ( ) { if ( sqRxMessages . ucMessageCount > 0 ) { UCHAR ucQueueTop = ( sqRxMessages . ucHead - 1 ) & ( SERIAL_QUEUE_RX_SIZE - 1 ) ; memcpy ( aucRxMessageBuffer , sqRxMessages . aucMessages [ ucQueueTop ] . aucBuffer , SERIAL_QUEUE_BUFFER_LENGTH ) ; return aucRxMessageBuffer ; } return ( NULL ) ; }
Serial_Scan_Rx_Top
Copies message data from the QUEUE to a buffer.
Serial_Scan_Rx_Top Copies message data from the QUEUE to a buffer .
//Copy the message content over to a buffer that we can return