#include <otAD8318.h>
Public Member Functions | |
| otAD8318 () | |
| void | init (float adc, U32 histCount=32) |
| void | close () |
| void | setFrequencyIndex (U8 f) |
| U8 | frequencyIndex () |
| void | setAttenuationIndex (U8 a) |
| U8 | attenuationIndex () |
| void | setUserAttenuation (float a) |
| float | userAttenuation () |
| float | currentAttenuation () |
| float | currentFrequency () |
| float | actualPower () |
| float | peakEnvelope () |
| float | dBmToMilliWatt (float dBm) |
| float | mWtoDbm (float mw) |
| float | dBmToVolt (float dBm) |
| float | voltToDbm (float voltage) |
| float | valueTodBm (int value) |
| S32 | evaluate (S32 min_value, S32 max_value, F32 average) |
|
|
Create the class |
|
|
Return the value of measured power as dBm
|
|
|
Read used attenuation index
|
|
|
Close the library and free all allocated memory |
|
|
Get the current selected attenuation.
|
|
|
Get used frequency as MHz
|
|
|
Convert a value from dBM to mW
|
|
|
Convert a value from dBm to Volt
|
|
||||||||||||||||
|
Perform the signal evaluation starting from minimum, maximum and average.
|
|
|
Return set frequency selction
|
|
||||||||||||
|
Init the class
|
|
|
Convert a value from mW to dBm
|
|
|
Return measured current peak envelope power in dBm
|
|
|
Set attenuation index from known values: |
|
|
Frequency selection from known values:
|
|
|
Set a user attenuation as dBm. Used when no attenuator profile is selected.
|
|
|
Read user attenuation
|
|
|
Convert a raw value (from ADC) to dBm
|
|
|
Convert a value from Volt to dBm
|