Arduino Filters master
Filter library for Arduino
Classes | Typedefs | Functions
FixedPoint

Detailed Description

Classes

class  FixedPoint< T, N, T2 >
 Very basic fixed-point integer implementation. More...
 

Typedefs

template<class T >
using DoubleWidthInt_t = typename DoubleWidthInt< T >::type
 Get the integer type that has twice the number of bits as the given type. More...
 

Functions

template<class T , uint8_t N, class T2 >
T2 operator* (T lhs, FixedPoint< T, N, T2 > rhs)
 Multiply normal integer with fixed point integer. More...
 
template<class T , uint8_t N, class T2 >
T2 operator* (T2 lhs, FixedPoint< T, N, T2 > rhs)
 Multiply normal integer with fixed point integer. More...
 
template<class T , uint8_t N, class T2 >
Print & operator<< (Print &os, FixedPoint< T, N, T2 > fp)
 Printing a fixed-point integer. More...
 

Typedef Documentation

◆ DoubleWidthInt_t

using DoubleWidthInt_t = typename DoubleWidthInt<T>::type

Get the integer type that has twice the number of bits as the given type.

Definition at line 50 of file FixedPoint.hpp.

Function Documentation

◆ operator*() [1/2]

T2 operator* ( lhs,
FixedPoint< T, N, T2 >  rhs 
)

Multiply normal integer with fixed point integer.

Definition at line 142 of file FixedPoint.hpp.

◆ operator*() [2/2]

T2 operator* ( T2  lhs,
FixedPoint< T, N, T2 >  rhs 
)

Multiply normal integer with fixed point integer.

Definition at line 148 of file FixedPoint.hpp.

◆ operator<<()

Print & operator<< ( Print &  os,
FixedPoint< T, N, T2 >  fp 
)

Printing a fixed-point integer.

Definition at line 168 of file FixedPoint.hpp.