dBm_to_mW_converter
Define the converter (user-supplied) from dBm to mW.
Source: src/tests/fury_test_qreal_conversions_complex.f90
Dependencies
Contents
Derived Types
dBm_to_mW
Converter (user-supplied) from dBm to mW.
Inheritance
Extends: uom_converter
Type-Bound Procedures
| Name | Attributes | Description |
|---|---|---|
convert | The conversion formulas. Generic: convert_float64, convert_float32 | |
assignment(=) | Overloading = assignment. Generic: assign_converter | |
convert_float128 | nopass | User-supplied conversion formulas from dBm to mW (and viceversa), float128. |
convert_float64 | nopass | User-supplied conversion formulas from dBm to mW (and viceversa), float128. |
convert_float32 | nopass | User-supplied conversion formulas from dBm to mW (and viceversa), float128. |
assign_converter | pass(lhs) | converter = converter assignment. |
Subroutines
assign_converter
converter = converter assignment.
Attributes: pure
fortran
subroutine assign_converter(lhs, rhs)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
lhs | class(dBm_to_mW) | inout | Left hand side. | |
rhs | class(uom_converter) | in | Right hand side. |
Functions
convert_float128
User-supplied conversion formulas from dBm to mW (and viceversa), float128.
Attributes: pure
Returns: real(kind=R16P)
fortran
function convert_float128(magnitude, inverse) result(converted)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
magnitude | real(kind=R16P) | in | Magnitude (of the quantity) to be converted. | |
inverse | logical | in | optional | Activate inverse conversion. |
convert_float64
User-supplied conversion formulas from dBm to mW (and viceversa), float64.
Attributes: pure
Returns: real(kind=R8P)
fortran
function convert_float64(magnitude, inverse) result(converted)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
magnitude | real(kind=R8P) | in | Magnitude (of the quantity) to be converted. | |
inverse | logical | in | optional | Activate inverse conversion. |
convert_float32
User-supplied conversion formulas from dBm to mW (and viceversa), float32.
Attributes: pure
Returns: real(kind=R4P)
fortran
function convert_float32(magnitude, inverse) result(converted)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
magnitude | real(kind=R4P) | in | Magnitude (of the quantity) to be converted. | |
inverse | logical | in | optional | Activate inverse conversion. |