| Linduino 1.3.0 Linear Technology Arduino-Compatible Demonstration Board

Macros | Variables
LT_PMBusMath.cpp File Reference
PMBus and SMBus Support Libraries » LT_PMBusMath: Value conversion routines

Library Header File for LT_PMBusMath. More...

## Detailed Description

Library Header File for LT_PMBusMath.

Definition in file LT_PMBusMath.cpp.

Go to the source code of this file.

## Macros
#define | fl32_width 32
#define | fl32_mant_width 23
#define | fl32_exp_bias 127
#define | fl32_NaN_exp 1
#define | lin11_width 16
#define | lin11_mant_width 11
#define | lin16_width 16
#define | lin16_exp_width 5
#define | fl32_exp_width (fl32_width - fl32_mant_width - 1)
#define | fl32_max_exp ((1UL << fl32_exp_width) - 1)
#define | fl32_max_p_exp (fl32_max_exp - fl32_exp_bias - fl32_NaN_exp)
#define | fl32_sign_mask (1UL << (fl32_width - 1))
#define | fl32_exp_mask (((1UL << fl32_exp_width) - 1) << fl32_mant_width)
#define | fl32_mant_mask ((1UL << fl32_mant_width) - 1)
#define | lin11_mant_sign_mask (1UL << (lin11_mant_width - 1))
#define | lin11_mant_mask ((1UL << lin11_mant_width) - 1)
#define | lin11_exp_width (lin11_width - lin11_mant_width)
#define | lin11_exp_sign_mask (1UL << (lin11_exp_width - 1))
#define | lin11_exp_mask ((1UL << lin11_exp_width) - 1)
#define | lin11_ieee_mant_width (lin11_mant_width-2)
#define | lin11_ieee_mant_mask ((1UL << lin11_ieee_mant_width) - 1)
#define | lin11_max_p_exp ((1UL << (lin11_exp_width - 1)) - 1)
#define | lin11_max_n_exp (1UL << (lin11_exp_width - 1))
#define | lin11_bit_mask ((1UL << lin11_width) - 1)
#define | lin11_den_n1 ((1UL<<(lin11_mant_width-1))|(1UL<<(lin11_mant_width-2)))
#define | lin11_norm_n1 ( 1UL<<(lin11_mant_width-1))
#define | lin16_exp_sign_mask (1UL << (lin16_exp_width - 1))
#define | lin16_exp_mask ((1UL << lin16_exp_width) - 1)
#define | lin16_ieee_mant_width (lin16_width-1)
#define | lin16_ieee_mant_mask ((1UL << lin16_ieee_mant_width) - 1)
#define | lin16_max_p_exp ((1UL << (lin16_exp_width - 1)) - 1)
#define | lin16_max_n_exp (1UL << (lin16_exp_width - 1))
#define | lin16_max_value ((1UL << lin16_width) - 1)

## Variables
LT_PMBusMath | math_ = LT_PMBusMath()

## Macro Definition Documentation

## ◆ fl32_exp_bias

#define fl32_exp_bias 127

Definition at line 63 of file LT_PMBusMath.cpp.

## ◆ fl32_exp_mask

#define fl32_exp_mask (((1UL << fl32_exp_width) - 1) << fl32_mant_width)

Definition at line 85 of file LT_PMBusMath.cpp.

## ◆ fl32_exp_width

#define fl32_exp_width (fl32_width - fl32_mant_width - 1)

Definition at line 79 of file LT_PMBusMath.cpp.

## ◆ fl32_mant_mask

#define fl32_mant_mask ((1UL << fl32_mant_width) - 1)

Definition at line 86 of file LT_PMBusMath.cpp.

## ◆ fl32_mant_width

#define fl32_mant_width 23

Definition at line 62 of file LT_PMBusMath.cpp.

## ◆ fl32_max_exp

#define fl32_max_exp ((1UL << fl32_exp_width) - 1)

Definition at line 80 of file LT_PMBusMath.cpp.

## ◆ fl32_max_p_exp

#define fl32_max_p_exp (fl32_max_exp - fl32_exp_bias - fl32_NaN_exp)

Definition at line 81 of file LT_PMBusMath.cpp.

## ◆ fl32_NaN_exp

#define fl32_NaN_exp 1

Definition at line 64 of file LT_PMBusMath.cpp.

## ◆ fl32_sign_mask

#define fl32_sign_mask (1UL << (fl32_width - 1))

Definition at line 84 of file LT_PMBusMath.cpp.

## ◆ fl32_width

#define fl32_width 32

Definition at line 61 of file LT_PMBusMath.cpp.

## ◆ lin11_bit_mask

#define lin11_bit_mask ((1UL << lin11_width) - 1)

Definition at line 102 of file LT_PMBusMath.cpp.

## ◆ lin11_den_n1

#define lin11_den_n1 ((1UL<<(lin11_mant_width-1))|(1UL<<(lin11_mant_width-2)))

Definition at line 105 of file LT_PMBusMath.cpp.

## ◆ lin11_exp_mask

#define lin11_exp_mask ((1UL << lin11_exp_width) - 1)

Definition at line 97 of file LT_PMBusMath.cpp.

## ◆ lin11_exp_sign_mask

#define lin11_exp_sign_mask (1UL << (lin11_exp_width - 1))

Definition at line 96 of file LT_PMBusMath.cpp.

## ◆ lin11_exp_width

#define lin11_exp_width (lin11_width - lin11_mant_width)

Definition at line 95 of file LT_PMBusMath.cpp.

## ◆ lin11_ieee_mant_mask

#define lin11_ieee_mant_mask ((1UL << lin11_ieee_mant_width) - 1)

Definition at line 99 of file LT_PMBusMath.cpp.

## ◆ lin11_ieee_mant_width

#define lin11_ieee_mant_width (lin11_mant_width-2)

Definition at line 98 of file LT_PMBusMath.cpp.

## ◆ lin11_mant_mask

#define lin11_mant_mask ((1UL << lin11_mant_width) - 1)

Definition at line 94 of file LT_PMBusMath.cpp.

## ◆ lin11_mant_sign_mask

#define lin11_mant_sign_mask (1UL << (lin11_mant_width - 1))

Definition at line 93 of file LT_PMBusMath.cpp.

## ◆ lin11_mant_width

#define lin11_mant_width 11

Definition at line 68 of file LT_PMBusMath.cpp.

## ◆ lin11_max_n_exp

#define lin11_max_n_exp (1UL << (lin11_exp_width - 1))

Definition at line 101 of file LT_PMBusMath.cpp.

## ◆ lin11_max_p_exp

#define lin11_max_p_exp ((1UL << (lin11_exp_width - 1)) - 1)

Definition at line 100 of file LT_PMBusMath.cpp.

## ◆ lin11_norm_n1

#define lin11_norm_n1 ( 1UL<<(lin11_mant_width-1))

Definition at line 106 of file LT_PMBusMath.cpp.

## ◆ lin11_width

#define lin11_width 16

Definition at line 67 of file LT_PMBusMath.cpp.

## ◆ lin16_exp_mask

#define lin16_exp_mask ((1UL << lin16_exp_width) - 1)

Definition at line 114 of file LT_PMBusMath.cpp.

## ◆ lin16_exp_sign_mask

#define lin16_exp_sign_mask (1UL << (lin16_exp_width - 1))

Definition at line 113 of file LT_PMBusMath.cpp.

## ◆ lin16_exp_width

#define lin16_exp_width 5

Definition at line 72 of file LT_PMBusMath.cpp.

## ◆ lin16_ieee_mant_mask

#define lin16_ieee_mant_mask ((1UL << lin16_ieee_mant_width) - 1)

Definition at line 116 of file LT_PMBusMath.cpp.

## ◆ lin16_ieee_mant_width

#define lin16_ieee_mant_width (lin16_width-1)

Definition at line 115 of file LT_PMBusMath.cpp.

## ◆ lin16_max_n_exp

#define lin16_max_n_exp (1UL << (lin16_exp_width - 1))

Definition at line 118 of file LT_PMBusMath.cpp.

## ◆ lin16_max_p_exp

#define lin16_max_p_exp ((1UL << (lin16_exp_width - 1)) - 1)

Definition at line 117 of file LT_PMBusMath.cpp.

## ◆ lin16_max_value

#define lin16_max_value ((1UL << lin16_width) - 1)

Definition at line 119 of file LT_PMBusMath.cpp.

## ◆ lin16_width

#define lin16_width 16

Definition at line 71 of file LT_PMBusMath.cpp.

## Variable Documentation

## ◆ math_

LT_PMBusMath math_ = LT_PMBusMath()

Definition at line 460 of file LT_PMBusMath.cpp.