// // General I/O support routines // // History: Created on May 1st by Stephane Gauthier. // Function Name: PrintString() // // Description: Output a character string stored in FLASH. // // void PrintString(const char * s); // Function Name: _GetChar() // // Description: Get a character from serial port and echo it back. // // unsigned char _GetChar(void); // Function Name: GetHexWord() // // Description: Get a Hex Word from serial port. // // unsigned int GetHexWord(void); // Function Name: GetHexByte() // // Description: Get a Hex Byte from serial port. // // unsigned char GetHexByte(void); // Function Name: GetHexChar() // // Description: Get a single Hex digit from serial port. // // unsigned char GetHexChar(void); // Function Name: _GetHex() // // Description: Get the specified number of Hex digit from serial port. // // unsigned int _GetHex(unsigned char digits); // Function Name: PutHexLong() // // Description: Format and output Long (32bits) Word to serial port. // // void PutHexLong(unsigned long data); // Function Name: PutHexWord() // // Description: Format and output Hex Word to serial port. // // void PutHexWord(unsigned int data); // Function Name: PutHexByte() // // Description: Format and output Hex Byte to serial port. // // void PutHexByte(unsigned char data); // Function Name: PutHexChar() // // Description: Format and output a single Hex digit to serial port. // // void PutHexChar(unsigned char data); // Function Name: _PutHex() // // Description: Format and output specified number of Hex byte to serial port. // // void _PutHex(unsigned int data, unsigned char size); // Function Name: PutCRLF() // // Description: Bring terminal cursor to beginning of next line // // void PutCRLF(void); // Function Name: GetDecWord() // // Description: Reads in a 3 digit decimal number from the serial port // // unsigned int GetDecWord(void); // Function Name: PutDecWord() // // Description: This function will format and send a Word to the serial port in a decimal format. (eg. 0x0041 = 65) // // void PutDecWord(unsigned int value); // Function Name: PutDecSignedByte() // // Description: This function will format and send a SIGNED BYTE to the serial port in a decimal format. (eg. 0x41 = +65) // // void PutDecSignedByte(signed char value); // Function Name: PutDecSignedWord() // // Description: This function will format and send a SIGNED BYTE to the serial port in a decimal format. (eg. 0x41 = +65) // // void PutDecSignedWord(signed int value); // Function Name: abs_byte() // // Description: This function will return the absolute of the passed signed byte // // unsigned char abs_byte(signed char x); // Function Name: abs_word() // // Description: This function will return the absolute of the passed signed word // // unsigned int abs_word(signed int x); // Function Name: PutBin() // // Description: This function will format and send a byte to the serial port in a binary format. (eg. 0x41 = 00100001b) // // void PutBin(unsigned char value); // Function Name: PutDecByte() // // Description: This function will format and send a BYTE to the serial port in a decimal format. (eg. 0x41 = 65) // // void PutDecByte(unsigned char value); // Function Name: asciify() // // Description: Convert low nibble to character. Returns ? on error. // // unsigned char asciify(unsigned char value); // Function Name: GetDecSignedWord() // // Description: Reads in a signed 3 digit decimal number from the serial port // // int GetDecSignedWord(void);