Contains functions specific to hardware gain for Wireless Nodes.
static double bitsToGain( |
| ) |
Converts the bits value to Hardware Gain value, based on the nodeType.
bits uint16 | The bits value to convert. |
nodeType | The type of node to use for the conversion. |
The converted gain value.
Error_NotSupported: The hardware gain feature is not supported by this Node.
static uint16 gainToBits( |
| ) |
Converts the gain value to a bits value, based on the nodeType.
gain double | The hardware gain value to convert. |
nodeType | The type of node to use for the conversion. |
The converted bits value.
Error_NotSupported: The hardware gain feature is not supported by this Node.
static double minGain( |
| ) |
Gets the min gain value available for the Node/Channel.
nodeType | The type of node to use for the conversion. |
The min gain value available.
Error_NotSupported: The hardware gain feature is not supported by this Node.
static double maxGain( |
| ) |
Gets the max gain value available for the Node/Channel.
nodeType | The type of node to use for the conversion. |
The max gain value available.
Error_NotSupported: The hardware gain feature is not supported by this Node.
static double normalizeGain( |
| ) |
Normalizes the gain value by putting it within range, and converting to bits and then back to gain.
gain double | The gain value to normalize. |
nodeType | The type of node to use for the conversion. |
The normalized gain value.
Error_NotSupported: The hardware gain feature is not supported by this Node.