Beispiel #1
0
void PrintStringAndThreeDecimals(tString * const pString1,
                                 unsigned int Value1,
                                 tString * const pString2,
                                 unsigned int Value2,
                                 tString * const pString3,
                                 unsigned int Value3)
{
  GIE_CHECK();
  GET_MUTEX();
  WriteTxBuffer(pString1);  
  ToDecimalString(Value1,ConversionString);
  WriteTxBuffer(ConversionString);
  WriteTxBuffer(SPACE);
  
  WriteTxBuffer(pString2);  
  ToDecimalString(Value2,ConversionString);
  WriteTxBuffer(ConversionString);
  WriteTxBuffer(SPACE);
  
  WriteTxBuffer(pString3);  
  ToDecimalString(Value3,ConversionString);
  WriteTxBuffer(ConversionString);
  WriteTxBuffer(CR);
  GIVE_MUTEX();
  
}
Beispiel #2
0
void PrintStringSpaceAndTwoDecimals(tString * const pString1,
                                    unsigned int Value1,
                                    unsigned int Value2)
{
  WriteTxBuffer(pString1);  
  WriteTxBuffer(" ");
  ToDecimalString(Value1,ConversionString);
  WriteTxBuffer(ConversionString);
  WriteTxBuffer(" ");
  ToDecimalString(Value2,ConversionString);
  WriteTxBuffer(ConversionString);
  WriteTxBuffer("\r\n");
}
void PrintStringSpaceAndTwoDecimals(signed char * const pString1,
                                    unsigned int Value1,
                                    unsigned int Value2)
{
  xSemaphoreTake(UartMutex,portMAX_DELAY);
  WriteTxBuffer(pString1);  
  WriteTxBuffer(" ");
  ToDecimalString(Value1,ConversionString);
  WriteTxBuffer(ConversionString);
  WriteTxBuffer(" ");
  ToDecimalString(Value2,ConversionString);
  WriteTxBuffer(ConversionString);
  WriteTxBuffer("\r\n");
  xSemaphoreGive(UartMutex); 
}
Beispiel #4
0
void PrintStringAndDecimal(tString * const pString,unsigned int Value)
{
  WriteTxBuffer(pString);  
  ToDecimalString(Value,ConversionString);
  WriteTxBuffer(ConversionString);
  WriteTxBuffer("\r\n");
}
void PrintDecimal(unsigned int Value)
{
  xSemaphoreTake(UartMutex,portMAX_DELAY);
  ToDecimalString(Value,ConversionString);
  WriteTxBuffer(ConversionString);  
  xSemaphoreGive(UartMutex);
}
Beispiel #6
0
void PrintStringSpaceAndTwoDecimals(tString * const pString1,
                                    unsigned int Value1,
                                    unsigned int Value2)
{
  GIE_CHECK();
  GET_MUTEX();
  WriteTxBuffer(pString1);  
  WriteTxBuffer(SPACE);
  ToDecimalString(Value1,ConversionString);
  WriteTxBuffer(ConversionString);
  WriteTxBuffer(SPACE);
  ToDecimalString(Value2,ConversionString);
  WriteTxBuffer(ConversionString);
  WriteTxBuffer(CR);
  GIVE_MUTEX();
  
}
Beispiel #7
0
void PrintDecimal(unsigned int Value)
{
  GIE_CHECK();
  GET_MUTEX();
  ToDecimalString(Value,ConversionString);
  WriteTxBuffer(ConversionString);  
  GIVE_MUTEX();
  
}
void PrintStringAndDecimal(signed char * const pString,unsigned int Value)
{
  xSemaphoreTake(UartMutex,portMAX_DELAY);
  WriteTxBuffer(pString);  
  ToDecimalString(Value,ConversionString);
  WriteTxBuffer(ConversionString);
  WriteTxBuffer("\r\n");
  xSemaphoreGive(UartMutex);
}
Beispiel #9
0
void PrintSignedDecimalAndNewline(signed int Value)
{
  if ( Value < 0 )
  {
    Value = ~Value + 1;
    WriteTxBuffer("-");
  }
  ToDecimalString(Value,ConversionString);
  WriteTxBuffer(ConversionString);
  WriteTxBuffer("\r\n");  
}
Beispiel #10
0
void PrintStringAndDecimal(const tString * pString, unsigned int Value)
{
  GIE_CHECK();
  GET_MUTEX();
  WriteTxBuffer(pString);  
  ToDecimalString(Value,ConversionString);
  WriteTxBuffer(ConversionString);
  WriteTxBuffer(CR);
  GIVE_MUTEX();
  
}
Beispiel #11
0
void PrintStringAndThreeDecimals(tString * const pString1,
                                 unsigned int Value1,
                                 tString * const pString2,
                                 unsigned int Value2,
                                 tString * const pString3,
                                 unsigned int Value3)
{
  WriteTxBuffer(pString1);  
  ToDecimalString(Value1,ConversionString);
  WriteTxBuffer(ConversionString);
  WriteTxBuffer(" ");
  
  WriteTxBuffer(pString2);  
  ToDecimalString(Value2,ConversionString);
  WriteTxBuffer(ConversionString);
  WriteTxBuffer(" ");
  
  WriteTxBuffer(pString3);  
  ToDecimalString(Value3,ConversionString);
  WriteTxBuffer(ConversionString);
  WriteTxBuffer("\r\n");
}
void PrintSignedDecimalAndNewline(signed int Value)
{
  xSemaphoreTake(UartMutex,portMAX_DELAY);
  if ( Value < 0 )
  {
    Value = ~Value + 1;
  }
  ToDecimalString(Value,ConversionString);
  WriteTxBuffer("-");
  WriteTxBuffer(ConversionString);
  WriteTxBuffer("\r\n");  
  xSemaphoreGive(UartMutex);
}
Beispiel #13
0
void PrintSignedDecimalAndNewline(signed int Value)
{
  GIE_CHECK();
  GET_MUTEX();
  if ( Value < 0 )
  {
    Value = ~Value + 1;
    WriteTxBuffer("-");
  }
  ToDecimalString(Value,ConversionString);
  WriteTxBuffer(ConversionString);
  WriteTxBuffer(CR);  
  GIVE_MUTEX();
  
}
Beispiel #14
0
void PrintDecimalAndNewline(unsigned int Value)
{
  ToDecimalString(Value,ConversionString);
  WriteTxBuffer(ConversionString);
  WriteTxBuffer("\r\n");  
}
Beispiel #15
0
void PrintDecimal(unsigned int Value)
{
  ToDecimalString(Value,ConversionString);
  WriteTxBuffer(ConversionString);  
}