no-OS
Macros | Functions
ad9208_reg.c File Reference

Contains AD9208 APIs for ADC Register Configuration and Control. More...

#include "ad9208_api.h"
#include "ad9208_reg.h"
#include "api_errors.h"
Include dependency graph for ad9208_reg.c:

Macros

#define IN_OUT_BUFF_SZ   3
 

Functions

int ad9208_register_write (ad9208_handle_t *h, const uint16_t address, const uint8_t data)
 Perform SPI register write access to AD9208 Device. More...
 
int ad9208_register_read (ad9208_handle_t *h, const uint16_t address, uint8_t *data)
 Perform SPI register read access to AD9208 Device. More...
 
int ad9208_register_read_block (ad9208_handle_t *h, const uint16_t address, uint8_t *data, uint32_t count)
 
int ad9208_register_write_tbl (ad9208_handle_t *h, struct adi_reg_data *tbl, uint32_t count)
 
int ad9208_is_sync_spi_update_enabled (ad9208_handle_t *h, uint8_t *enabled)
 
int ad9208_register_chip_transfer (ad9208_handle_t *h)
 

Detailed Description

Contains AD9208 APIs for ADC Register Configuration and Control.

Release 1.0.x

Copyright(c) 2017 Analog Devices, Inc. All Rights Reserved. This software is proprietary to Analog Devices, Inc. and its licensors. By using this software you agree to the terms of the associated Analog Devices Software License Agreement.

Macro Definition Documentation

◆ IN_OUT_BUFF_SZ

#define IN_OUT_BUFF_SZ   3

Function Documentation

◆ ad9208_is_sync_spi_update_enabled()

int ad9208_is_sync_spi_update_enabled ( ad9208_handle_t h,
uint8_t *  enabled 
)
Here is the caller graph for this function:

◆ ad9208_register_chip_transfer()

int ad9208_register_chip_transfer ( ad9208_handle_t h)
Here is the caller graph for this function:

◆ ad9208_register_read()

int ad9208_register_read ( ad9208_handle_t h,
const uint16_t  address,
uint8_t *  data 
)

Perform SPI register read access to AD9208 Device.

Parameters
hPointer to the AD9208 device reference handle.
addressAD9208 Device SPI address from which the value of data parameter shall be read,
dataPointer to an 8-bit variable to which the value of the SPI register at the address defined by address parameter shall be stored.
Return values
API_ERROR_OKAPI Completed Successfully
API_ERROR_INVALID_HANDLE_PTRInvalid reference handle.
API_ERROR_INVALID_XFER_PTRSPI Access Failed
API_ERROR_SPI_XFERSPI XFER Function Failed
Here is the caller graph for this function:

◆ ad9208_register_read_block()

int ad9208_register_read_block ( ad9208_handle_t h,
const uint16_t  address,
uint8_t *  data,
uint32_t  count 
)

◆ ad9208_register_write()

int ad9208_register_write ( ad9208_handle_t h,
const uint16_t  address,
const uint8_t  data 
)

Perform SPI register write access to AD9208 Device.

Parameters
hPointer to the AD9208 device reference handle.
addressAD9208 Device SPI address to which the value of data parameter shall be written
data8-bit value to be written to SPI register defined by the address parameter.
Return values
API_ERROR_OKAPI Completed Successfully
API_ERROR_INVALID_HANDLE_PTRInvalid reference handle.
API_ERROR_INVALID_XFER_PTRSPI Access Failed
API_ERROR_SPI_XFERSPI XFER Function Failed
Here is the caller graph for this function:

◆ ad9208_register_write_tbl()

int ad9208_register_write_tbl ( ad9208_handle_t h,
struct adi_reg_data tbl,
uint32_t  count 
)
Here is the caller graph for this function: