/*====================================================================================================*/ void RS232_SendNum( StrType Type, uint8_t NumLen, int32_t SendData ) { char TrData[32] = {0}; char *pWord = TrData; Str_NumToChar(Type, NumLen, TrData, SendData); while(*pWord != '\0') { UART_SendByte(UARTx, (uint8_t*)pWord++); } }
/*====================================================================================================*/ void RS232_SendNum( StrType Type, uint8_t NumLen, int32_t SendData ) { int8_t TrData[32] = {0}; int8_t *pWord = TrData; Str_NumToChar(Type, NumLen, TrData, SendData); while(*pWord != '\0') { UART_SendByte(USARTx, pWord); pWord++; } }
/*====================================================================================================*/ void RS232_SendNum( u8 Type, u8 NumLen, s32 SendData ) { u8 TrData[32] = {0}; u8 *pWord = TrData; Str_NumToChar(Type, NumLen, TrData, SendData); while(*pWord != '\0') { UART_SendByte(USARTx, *pWord); pWord++; } }