#include <avr/io.h>
#include <avr/interrupt.h>
#include "config.h"
#include <util/delay.h>
#include <util/delay_basic.h>
Go to the source code of this file.
Functions | |
uint8_t | asciitovalue (uint8_t ascii) |
Convert an ASCII character to its numeric equivalent. | |
uint8_t | hex2ascii_h (uint8_t hexval) |
Convert the top nibble of a btye to ASCII. | |
uint8_t | hex2ascii_l (uint8_t hexval) |
Convert the bottom nibble of a btye to ASCII. | |
uint8_t | bcd_to_hex (uint8_t bcd) |
Convert a BCD value in a byte to the correct hex value. | |
uint8_t | get_bcd_switch_setting (void) |
return a value derived from a BCD switch |
uint8_t asciitovalue | ( | uint8_t | ascii | ) |
Convert an ASCII character to its numeric equivalent.
ascii | ASCII character to convert |
uint8_t bcd_to_hex | ( | uint8_t | bcd | ) |
Convert a BCD value in a byte to the correct hex value.
bcd | uint8_t value in BCD |
uint8_t get_bcd_switch_setting | ( | void | ) |
return a value derived from a BCD switch
uint8_t hex2ascii_h | ( | uint8_t | hexval | ) |
Convert the top nibble of a btye to ASCII.
hexval | 8 bit value whose top 4 bits are to be converted to ASCII |
uint8_t hex2ascii_l | ( | uint8_t | hexval | ) |
Convert the bottom nibble of a btye to ASCII.
hexval | 8 bit value whose bottom 4 bits are to be converted to ASCII |