rfmeter 2.0.0.0
|
Functions | |
void | rfmeter_cfg_setup (rfmeter_cfg_t *cfg) |
Config Object Initialization function. | |
RFMETER_RETVAL | rfmeter_init (rfmeter_t *ctx, rfmeter_cfg_t *cfg) |
Initialization function. | |
uint16_t | rfmeter_read_data (rfmeter_t *ctx) |
Data read function. | |
uint16_t | rfmeter_get_raw_data (rfmeter_t *ctx) |
Get raw data function. | |
float | rfmeter_get_voltage (rfmeter_t *ctx) |
Get voltage function. | |
float | rfmeter_get_signal_strenght (rfmeter_t *ctx, float slope, float intercept) |
Get signal strenght function. | |
void rfmeter_cfg_setup | ( | rfmeter_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint16_t rfmeter_get_raw_data | ( | rfmeter_t * | ctx | ) |
Get raw data function.
ctx | Click object. |
Function is used to read raw data value from output register.
float rfmeter_get_signal_strenght | ( | rfmeter_t * | ctx, |
float | slope, | ||
float | intercept ) |
Get signal strenght function.
ctx | Click object. |
slope | float value that represents slope |
intercept | float value that represents intercept |
Function is used to calculate radio frequency signal strenght in a vicinity.
float rfmeter_get_voltage | ( | rfmeter_t * | ctx | ) |
Get voltage function.
ctx | Click object. |
Function is used to read raw voltage value from output register.
RFMETER_RETVAL rfmeter_init | ( | rfmeter_t * | ctx, |
rfmeter_cfg_t * | cfg ) |
Initialization function.
rfmeter | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
uint16_t rfmeter_read_data | ( | rfmeter_t * | ctx | ) |
Data read function.
ctx | Click object. |
Function is used to read data from output register.