void PrintW(const char *pString) { GIE_CHECK(); GET_MUTEX(); WriteTxBuffer(pString); GIVE_MUTEX(); }
/* 120 us - 90 us = 33 us */ void PrintC(char Char) { GIE_CHECK(); GET_MUTEX(); WRITE_UART(Char); GIVE_MUTEX(); }
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(); }
/* 120 us - 90 us = 33 us */ void PrintC(char Char) { GIE_CHECK(); GET_MUTEX(); if (Char >= ASCII_BEGIN && Char <= ASCII_END) WRITE_UART(Char); GIVE_MUTEX(); }
/* 120 us - 90 us = 33 us */ void PrintCharacter(char Character) { GIE_CHECK(); GET_MUTEX(); WriteTxBuffer((tString *)&Character); GIVE_MUTEX(); }
void PrintR(void) { GIE_CHECK(); GET_MUTEX(); WRITE_UART(CR); WRITE_UART(LN); GIVE_MUTEX(); }
void PrintString(const tString * pString) { GIE_CHECK(); GET_MUTEX(); WriteTxBuffer(pString); GIVE_MUTEX(); }
void PrintS(const char *pString) { GIE_CHECK(); GET_MUTEX(); WriteTxBuffer(pString); WRITE_UART(CR); WRITE_UART(LN); GIVE_MUTEX(); }
void PrintDecimal(unsigned int Value) { GIE_CHECK(); GET_MUTEX(); ToDecimalString(Value,ConversionString); WriteTxBuffer(ConversionString); GIVE_MUTEX(); }
void PrintString2(const tString * pString1, const tString * pString2) { GIE_CHECK(); GET_MUTEX(); WriteTxBuffer(pString1); WriteTxBuffer(pString2); GIVE_MUTEX(); }
void PrintTimeStamp(void) { GIE_CHECK(); GET_MUTEX(); IntToHexString(RTCPS,ConversionString); WriteTxBuffer(ConversionString); WriteTxBuffer(SPACE); GIVE_MUTEX(); }
void PrintHex(unsigned char Value) { GIE_CHECK(); GET_MUTEX(); ByteToHexString(Value,ConversionString); WriteTxBuffer(ConversionString); WriteTxBuffer(SPACE); GIVE_MUTEX(); }
void PrintStringAndHexByte(tString * const pString,unsigned char Value) { GIE_CHECK(); GET_MUTEX(); WriteTxBuffer(pString); ByteToHexString(Value,ConversionString); WriteTxBuffer(ConversionString); WriteTxBuffer(CR); GIVE_MUTEX(); }
void PrintStringAndDecimal(const tString * pString, unsigned int Value) { GIE_CHECK(); GET_MUTEX(); WriteTxBuffer(pString); ToDecimalString(Value,ConversionString); WriteTxBuffer(ConversionString); WriteTxBuffer(CR); GIVE_MUTEX(); }
void PrintH(unsigned char Value) { unsigned char MSB = Value >> 4; unsigned char LSB = Value & 0x0F; MSB += MSB > 9 ? 'A' - 10 : '0'; LSB += LSB > 9 ? 'A' - 10 : '0'; GIE_CHECK(); GET_MUTEX(); WRITE_UART(MSB); WRITE_UART(LSB); WRITE_UART(SPACE); GIVE_MUTEX(); }
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(); }
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(); }