no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
basic_example.h File Reference
#include "common_data.h"
#include "no_os_error.h"
Include dependency graph for basic_example.h:

Go to the source code of this file.

Functions

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

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
Here is the caller graph for this function:

◆ 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.