Contains utilities/functions related to sampling
A static map of SampleRate objects to their WirelessTypes::WirelessSampleRate (eeprom value) equivalent
static SampleRate convertToSampleRate( |
| ) |
Converts a WirelessTypes::WirelessSampleRate enum to its corresponding SampleRate
rate | The WirelessTypes::WirelessSampleRate enum to find the SampleRate of |
A SampleRate corresponding to the passed in rate enum
Error_UnknownSampleRate: The given WirelessTypes::WirelessSampleRate is invalid or unknown.
static SampleRate convertToSampleRate( |
| ) |
Converts a value from eeprom to its corresponding SampleRate
eepromVal uint16 | The value that represents the sample rate in eeprom to convert to a SampleRate |
A SampleRate corresponding to the passed in rate eeprom value
Error_UnknownSampleRate: The given eeprom values does not correspond with a SampleRate.
static WirelessTypes::WirelessSampleRate convertFromSampleRate( |
| ) |
Converts a SampleRate object to its WirelessTypes::WirelessSampleRate (eeprom value) equivalent
rate const SampleRate& | The SampleRate to get the eeprom value for |
The WirelessTypes::WirelessSampleRate that is associated with the given SampleRate
Error_UnknownSampleRate: The given SampleRate does not match a WirelessTypes::WirelessSampleRate.