Miosix  2.01
miosix::TimeConversionFactor Class Reference

#include <timeconversion.h>

Public Member Functions

 TimeConversionFactor ()
 
 TimeConversionFactor (unsigned int i, unsigned int f)
 
unsigned int integerPart () const
 
unsigned int fractionalPart () const
 

Detailed Description

This class holds a 32.32 fixed point number used for time conversion

Constructor & Destructor Documentation

miosix::TimeConversionFactor::TimeConversionFactor ( )
inline

Default constructor. Leaves the factors unintialized.

miosix::TimeConversionFactor::TimeConversionFactor ( unsigned int  i,
unsigned int  f 
)
inline

Constructor

Parameters
iinteger part
ffractional part

Member Function Documentation

unsigned int miosix::TimeConversionFactor::fractionalPart ( ) const
inline
Returns
the fractional part of the fixed point number
unsigned int miosix::TimeConversionFactor::integerPart ( ) const
inline
Returns
the integer part of the fixed point number

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