qireceiver 2.0.0.0
|
Functions | |
void | qireceiver_cfg_setup (qireceiver_cfg_t *cfg) |
Config Object Initialization function. | |
QIRECEIVER_RETVAL | qireceiver_init (qireceiver_t *ctx, qireceiver_cfg_t *cfg) |
Initialization function. | |
void | qireceiver_generic_write (qireceiver_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | qireceiver_generic_read (qireceiver_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
float | qireceiver_read_voltage (qireceiver_t *ctx) |
Read Voltage function. | |
float | qireceiver_read_current (qireceiver_t *ctx) |
Read Current function. | |
float | qireceiver_read_freq (qireceiver_t *ctx) |
Read Frequency function. | |
void | qireceiver_dev_enable (qireceiver_t *ctx) |
Device enable function. | |
void qireceiver_cfg_setup | ( | qireceiver_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void qireceiver_dev_enable | ( | qireceiver_t * | ctx | ) |
Device enable function.
ctx | Click object. |
Function is used to enable the device.
void qireceiver_generic_read | ( | qireceiver_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic read function.
ctx | Click object. |
reg | Register address. |
@description This function reads data from the desired register.
void qireceiver_generic_write | ( | qireceiver_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic write function.
ctx | Click object. |
reg | Register address. |
data_buf | Data buf to be written. |
len | Number of the bytes in data buf. |
@description This function writes data to the desired register.
QIRECEIVER_RETVAL qireceiver_init | ( | qireceiver_t * | ctx, |
qireceiver_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
float qireceiver_read_current | ( | qireceiver_t * | ctx | ) |
Read Current function.
ctx | Click object. |
@description Function is used to measure current amperage in mA.
float qireceiver_read_freq | ( | qireceiver_t * | ctx | ) |
Read Frequency function.
ctx | Click object. |
@description Function is used to measure current frequency in hertz.
float qireceiver_read_voltage | ( | qireceiver_t * | ctx | ) |
Read Voltage function.
ctx | Click object. |
@description Function is used to measure current voltage in volt.