Arduino-GPIO
General Purpose Input/Output (GPIO) library for Arduino
bcd_t Struct Reference

#include <bcd.h>

Collaboration diagram for bcd_t:
Collaboration graph

Public Member Functions

 bcd_t ()
 
 bcd_t (uint8_t value)
 
 operator uint8_t ()
 

Detailed Description

Binary-Coded Decimal (BCD) to integer conversion handling.

Definition at line 25 of file bcd.h.

Constructor & Destructor Documentation

bcd_t::bcd_t ( )
inline

Default constructor.

Definition at line 29 of file bcd.h.

bcd_t::bcd_t ( uint8_t  value)
inline

Construct bcd value from given value; 0..99 to 0x00..0x99.

Parameters
[in]valueas integer.

Definition at line 35 of file bcd.h.

Member Function Documentation

bcd_t::operator uint8_t ( )
inline

Convert bcd value to integer; 0x00..0x99 to 0..99.

Returns
integer.

Definition at line 50 of file bcd.h.


The documentation for this struct was generated from the following file: