no-OS
|
Contains AD9208 APIs for ADC Register Configuration and Control. More...
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) |
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.
#define IN_OUT_BUFF_SZ 3 |
int ad9208_is_sync_spi_update_enabled | ( | ad9208_handle_t * | h, |
uint8_t * | enabled | ||
) |
int ad9208_register_chip_transfer | ( | ad9208_handle_t * | h | ) |
int ad9208_register_read | ( | ad9208_handle_t * | h, |
const uint16_t | address, | ||
uint8_t * | data | ||
) |
Perform SPI register read access to AD9208 Device.
h | Pointer to the AD9208 device reference handle. |
address | AD9208 Device SPI address from which the value of data parameter shall be read, |
data | Pointer to an 8-bit variable to which the value of the SPI register at the address defined by address parameter shall be stored. |
API_ERROR_OK | API Completed Successfully |
API_ERROR_INVALID_HANDLE_PTR | Invalid reference handle. |
API_ERROR_INVALID_XFER_PTR | SPI Access Failed |
API_ERROR_SPI_XFER | SPI XFER Function Failed |
int ad9208_register_read_block | ( | ad9208_handle_t * | h, |
const uint16_t | address, | ||
uint8_t * | data, | ||
uint32_t | count | ||
) |
int ad9208_register_write | ( | ad9208_handle_t * | h, |
const uint16_t | address, | ||
const uint8_t | data | ||
) |
Perform SPI register write access to AD9208 Device.
h | Pointer to the AD9208 device reference handle. |
address | AD9208 Device SPI address to which the value of data parameter shall be written |
data | 8-bit value to be written to SPI register defined by the address parameter. |
API_ERROR_OK | API Completed Successfully |
API_ERROR_INVALID_HANDLE_PTR | Invalid reference handle. |
API_ERROR_INVALID_XFER_PTR | SPI Access Failed |
API_ERROR_SPI_XFER | SPI XFER Function Failed |
int ad9208_register_write_tbl | ( | ad9208_handle_t * | h, |
struct adi_reg_data * | tbl, | ||
uint32_t | count | ||
) |