no-OS
Public Attributes | List of all members
mykonosFloatPntFrmt_t Struct Reference

Data structure to hold floating point formatter settings for the floating point number generation. More...

#include <t_mykonos_gpio.h>

Public Attributes

uint8_t roundMode
 
uint8_t dataFormat
 
uint8_t encNan
 
uint8_t expBits
 
uint8_t leading
 

Detailed Description

Data structure to hold floating point formatter settings for the floating point number generation.

Member Data Documentation

◆ dataFormat

uint8_t mykonosFloatPntFrmt_t::dataFormat

These parameter sets the format of the 16-bit output on the JESD interface: Setting this to 1 then the format is from MSB to LSB to {sign, significand, exponent}. Clearing this bit sets the format to {sign, exponent, significand}.

◆ encNan

uint8_t mykonosFloatPntFrmt_t::encNan

if this parameter is set to 1 then the floating point formatter reserves the highest value of exponent for NaN to be compatible to the IEEE754 specification. Clearing this parameter increases the range of the exponent by one.

◆ expBits

uint8_t mykonosFloatPntFrmt_t::expBits

These parameter is used to indicate the number of exponent bits in the floating point number according to the following settings:

expBits Round type
0 2 bit exponent, 13 bit significand, 1 bit sign
1 3 bit exponent, 12 bit significand, 1 bit sign
2 4 bit exponent, 11 bit significand, 1 bit sign
3 5 bit exponent, 10 bit significand, 1 bit sign

◆ leading

uint8_t mykonosFloatPntFrmt_t::leading

Setting this parameter hides the leading one in the the significand to be compatible to the IEEE754 specification. Clearing this parameter causes the leading one to be at the MSB of the significand.

◆ roundMode

uint8_t mykonosFloatPntFrmt_t::roundMode

These parameter set the round modes for the significand. The following settings are defined in the IEEE754 specification:

roundMode Round type
0 RoundTiesToEven
1 RoundTowardsPositive
2 RoundTowardsNegative
3 RoundTowardsZero
4 RoundTiesToAway

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