ButterflyMP3

BCD.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

char CHAR2BCD2 (char input)
 Function name : CHAR2BCD2.

Function Documentation

char CHAR2BCD2 ( char  input)

Function name : CHAR2BCD2.

Returns:
Binary coded decimal value of the input (2 digits)
Parameters:
inputValue between (0-99) to be encoded into BCD

Convert a character into a BCD encoded character. The input must be in the range 0 to 99. The result is byte where the high and low nibbles contain the tens and ones of the input.

Definition at line 37 of file BCD.c.

Referenced by ADC2Temp(), ADC2Volt(), and play_track_number().

 All Files Functions Variables Typedefs Enumerations Enumerator Defines