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.
 

Detailed Description

Function Documentation

◆ qireceiver_cfg_setup()

void qireceiver_cfg_setup ( qireceiver_cfg_t * cfg)

Config Object Initialization function.

Parameters
cfgClick configuration structure.

@description This function initializes click configuration structure to init state.

Note
All used pins will be set to unconnected state.

◆ qireceiver_dev_enable()

void qireceiver_dev_enable ( qireceiver_t * ctx)

Device enable function.

Parameters
ctxClick object.

Function is used to enable the device.

◆ qireceiver_generic_read()

void qireceiver_generic_read ( qireceiver_t * ctx,
uint8_t reg,
uint8_t * data_buf,
uint8_t len )

Generic read function.

Parameters
ctxClick object.
regRegister address.

@description This function reads data from the desired register.

◆ qireceiver_generic_write()

void qireceiver_generic_write ( qireceiver_t * ctx,
uint8_t reg,
uint8_t * data_buf,
uint8_t len )

Generic write function.

Parameters
ctxClick object.
regRegister address.
data_bufData buf to be written.
lenNumber of the bytes in data buf.

@description This function writes data to the desired register.

◆ qireceiver_init()

QIRECEIVER_RETVAL qireceiver_init ( qireceiver_t * ctx,
qireceiver_cfg_t * cfg )

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

@description This function initializes all necessary pins and peripherals used for this click.

◆ qireceiver_read_current()

float qireceiver_read_current ( qireceiver_t * ctx)

Read Current function.

Parameters
ctxClick object.
Returns
result float value of a current amperage

@description Function is used to measure current amperage in mA.

◆ qireceiver_read_freq()

float qireceiver_read_freq ( qireceiver_t * ctx)

Read Frequency function.

Parameters
ctxClick object.
Returns
result float value of a current frequency

@description Function is used to measure current frequency in hertz.

◆ qireceiver_read_voltage()

float qireceiver_read_voltage ( qireceiver_t * ctx)

Read Voltage function.

Parameters
ctxClick object.
Returns
result float value of a current voltage

@description Function is used to measure current voltage in volt.