示例#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();
  
}
示例#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");
}
示例#3
0
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); 
}
示例#4
0
void PrintStringAndDecimal(tString * const pString,unsigned int Value)
{
  WriteTxBuffer(pString);  
  ToDecimalString(Value,ConversionString);
  WriteTxBuffer(ConversionString);
  WriteTxBuffer("\r\n");
}
示例#5
0
void PrintDecimal(unsigned int Value)
{
  xSemaphoreTake(UartMutex,portMAX_DELAY);
  ToDecimalString(Value,ConversionString);
  WriteTxBuffer(ConversionString);  
  xSemaphoreGive(UartMutex);
}
示例#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();
  
}
示例#7
0
void PrintDecimal(unsigned int Value)
{
  GIE_CHECK();
  GET_MUTEX();
  ToDecimalString(Value,ConversionString);
  WriteTxBuffer(ConversionString);  
  GIVE_MUTEX();
  
}
示例#8
0
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);
}
示例#9
0
void PrintSignedDecimalAndNewline(signed int Value)
{
  if ( Value < 0 )
  {
    Value = ~Value + 1;
    WriteTxBuffer("-");
  }
  ToDecimalString(Value,ConversionString);
  WriteTxBuffer(ConversionString);
  WriteTxBuffer("\r\n");  
}
示例#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();
  
}
示例#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");
}
示例#12
0
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);
}
示例#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();
  
}
示例#14
0
void PrintDecimalAndNewline(unsigned int Value)
{
  ToDecimalString(Value,ConversionString);
  WriteTxBuffer(ConversionString);
  WriteTxBuffer("\r\n");  
}
示例#15
0
void PrintDecimal(unsigned int Value)
{
  ToDecimalString(Value,ConversionString);
  WriteTxBuffer(ConversionString);  
}