The MKM34Z256VLx7 bare metal software drivers defines several macros for conversion double precision 64-bit floating point values to various fractional data types and vice versa. These macros are defined in the C header file common.h
.
|
#define | FRAC16(x) |
| Converts double precision 64-bit floating point value to Qn.15 fractional value. More...
|
|
#define | F16TODBL(x) |
| Converts Qn.15 fractional value to double precision 64-bit floating point value. More...
|
|
#define | FRAC24(x) |
| Converts double precision 64-bit floating point value to Qn.23 fractional value. More...
|
|
#define | F24TODBL(x) |
| Converts Qn.23 fractional value to double precision 64-bit floating point value. More...
|
|
#define | FRAC32(x) |
| Converts double precision 64-bit floating point value to Qn.31 fractional value. More...
|
|
#define | F32TODBL(x) |
| Converts Qn.31 fractional value to double precision 64-bit floating point value. More...
|
|
#define | FRAC48(x) |
| Converts double precision 64-bit floating point value to Qn.47 fractional value. More...
|
|
#define | F48TODBL(x) |
| Converts Qn.47 fractional value to double precision 64-bit floating point value. More...
|
|
#define | FRAC64(x) |
| Converts double precision 64-bit floating point value to Q0.63 fractional value. More...
|
|
#define | F64TODBL(x) |
| Converts Q0.63 fractional value to double precision 64-bit floating point value. More...
|
|
This macro converts double precision 64-bit floating point value to Qn.15 fractional value.
- Parameters
-
x | Double precision 64-bit floating point value. |
- Note
- Implemented as an inline macro.
- See also
- F16TODBL
This macro converts Qn.15 fractional value to double precision 64-bit floating point value.
- Parameters
-
- Note
- Implemented as an inline macro.
- See also
- FRAC16
This macro converts double precision 64-bit floating point value to Qn.23 fractional value.
- Parameters
-
x | Double precision 64-bit floating point value. |
- Note
- Implemented as an inline macro.
- See also
- F24TODBL
This macro converts Qn.23 fractional value to double precision 64-bit floating point value.
- Parameters
-
- Note
- Implemented as an inline macro.
- See also
- FRAC24
This macro converts double precision 64-bit floating point value to Qn.31 fractional value.
- Parameters
-
x | Double precision 64-bit floating point value. |
- Note
- Implemented as an inline macro.
- See also
- F32TODBL
This macro converts Qn.31 fractional value to double precision 64-bit floating point value.
- Parameters
-
- See also
- FRAC32
This macro converts double precision 64-bit floating point value to Qn.47 fractional value.
- Parameters
-
x | Double precision 64-bit floating point value. |
- Note
- Implemented as an inline macro.
- See also
- F24TODBL
This macro converts Qn.47 fractional value to double precision 64-bit floating point value.
- Parameters
-
- Note
- Implemented as an inline macro.
- See also
- FRAC48
This macro converts double precision 64-bit floating point value to the Q0.63 fractional value.
- Parameters
-
x | Double precision 64-bit floating point value. |
- Note
- Note that this macro doesn't work correctly for floating point values close to 1.0 and -1.0. Implemented as an inline macro.
- See also
- F64TODBL
This macro converts Q0.63 fractional value to double precision 64-bit floating point value.
- Parameters
-
- Note
- Implemented as an inline macro.
- See also
- FRAC64