libbladeRF  2.5.0
Nuand bladeRF library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
Configuration GPIO

Description

These functions provide the ability to read and write the configuration GPIO.

These functions are thread-safe.

Functions

API_EXPORT int CALL_CONV bladerf_config_gpio_read (struct bladerf *dev, uint32_t *val)
 
API_EXPORT int CALL_CONV bladerf_config_gpio_write (struct bladerf *dev, uint32_t val)
 

Function Documentation

API_EXPORT int CALL_CONV bladerf_config_gpio_read ( struct bladerf *  dev,
uint32_t *  val 
)

Read the configuration GPIO register.

Parameters
devDevice handle
[out]valCurrent configuration GPIO value
Returns
0 on success, value from Error codes list on failure
API_EXPORT int CALL_CONV bladerf_config_gpio_write ( struct bladerf *  dev,
uint32_t  val 
)

Write the configuration GPIO register.

Note
Callers should be sure to perform a read-modify-write sequence to avoid accidentally clearing other GPIO bits that may be set by the library internally.
Parameters
devDevice handle
[out]valDesired configuration GPIO value
Returns
0 on success, value from Error codes list on failure