COSA
An Object-Oriented Platform for Arduino Programming
|
#include "Cosa/Types.h"
Go to the source code of this file.
Functions | |
uint8_t | to_binary (uint8_t value) |
uint8_t | to_bcd (uint8_t value) |
void | to_binary (uint8_t *buf, size_t size) |
void | to_bcd (uint8_t *buf, size_t size) |
Copyright (C) 2012-2015, Mikael Patel
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
Simple two digit BCD convertion functions.
Handles only two digit BCD numbers (0..99).
[1] AVR204: BCD Arithmetics, Atmel Corporation, 0938B–AVR–01/03.
This file is part of the Arduino Che Cosa project.
Definition in file BCD.h.
|
inline |
|
inline |
|
inline |