no-OS
Functions
basic_example.c File Reference

Functions

int32_t pqm_init (struct pqm_desc **desc, struct pqm_init_para *param)
 Initialize pqm descriptor. More...
 
int32_t pqm_remove (struct pqm_desc *desc)
 Remove pqm descriptor. More...
 
int32_t update_pqm_channels (void *dev, uint32_t mask)
 active pqm channels More...
 
int32_t close_pqm_channels (void *dev)
 close all channels More...
 
int basic_pqm_firmware ()
 PQM example main execution. More...
 

Function Documentation

◆ basic_pqm_firmware()

int basic_pqm_firmware ( )

PQM example main execution.

Returns
If working correctly, will execute continuously function iio_app_run and will not return.
Here is the caller graph for this function:

◆ close_pqm_channels()

int32_t close_pqm_channels ( void *  dev)

close all channels

Parameters
dev- physical instance of an pqm device
Returns
0 in case of success.

◆ pqm_init()

int32_t pqm_init ( struct pqm_desc **  desc,
struct pqm_init_para param 
)

Initialize pqm descriptor.

Parameters
descObject descriptor
paramInitializing paramters
Returns
Return 0 on success, different from 0 otherwise
Here is the caller graph for this function:

◆ pqm_remove()

int32_t pqm_remove ( struct pqm_desc desc)

Remove pqm descriptor.

Parameters
descFrees up memory space allocated for descriptor
Returns
Return 0 on success, different from 0 otherwise

◆ update_pqm_channels()

int32_t update_pqm_channels ( void *  dev,
uint32_t  mask 
)

active pqm channels

Parameters
dev- descriptor for the pqm
mask- active channels mask
Returns
0 in case of success, -1 otherwise.