Пример #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);  
}