Implementation of adis16607.h.
More...
Implementation of adis16607.h.
- Author
- Radu Sabau (radu..nosp@m.saba.nosp@m.u@ana.nosp@m.log..nosp@m.com)
Copyright 2026(c) Analog Devices, Inc.
SPDX-License-Identifier: BSD-3-Clause
◆ ADIS16607_DATA_CNTR_EN_MASK
| #define ADIS16607_DATA_CNTR_EN_MASK NO_OS_BIT(14) |
◆ ADIS16607_DATA_READY_GPIO_MASK
◆ ADIS16607_DIAG_STAT_REG
| #define ADIS16607_DIAG_STAT_REG 0x05 |
◆ ADIS16607_GPIO_FUNC_NO_OFFSET
| #define ADIS16607_GPIO_FUNC_NO_OFFSET |
( |
| x, |
|
|
| y ) |
◆ ADIS16607_I2C_ADDRESS_DOUTHIGH_SCLKHIGH
| #define ADIS16607_I2C_ADDRESS_DOUTHIGH_SCLKHIGH 0x3B |
◆ ADIS16607_I2C_ADDRESS_DOUTHIGH_SCLKLOW
| #define ADIS16607_I2C_ADDRESS_DOUTHIGH_SCLKLOW 0x3A |
◆ ADIS16607_I2C_ADDRESS_DOUTLOW_SCLKHIGH
| #define ADIS16607_I2C_ADDRESS_DOUTLOW_SCLKHIGH 0x39 |
◆ ADIS16607_I2C_ADDRESS_DOUTLOW_SCLKLOW
| #define ADIS16607_I2C_ADDRESS_DOUTLOW_SCLKLOW 0x38 |
◆ ADIS16607_ID_NO_OFFSET
| #define ADIS16607_ID_NO_OFFSET |
( |
| x | ) |
|
Value:
@ ADIS16607_2
Definition adis.h:75
◆ ADIS16607_RESET_GPIO_MASK
◆ ADIS16607_SELF_TEST_DELAY_MS
| #define ADIS16607_SELF_TEST_DELAY_MS 10 |
◆ ADIS16607_SYNC_GPIO_MASK
◆ ADIS16607_USER_DATA_CFG_REG
| #define ADIS16607_USER_DATA_CFG_REG 0x34 |
◆ ADIS16607_USER_GPIO_CFG_REG
| #define ADIS16607_USER_GPIO_CFG_REG 0x2F |
◆ ADIS16607_USER_SYNC_REG
| #define ADIS16607_USER_SYNC_REG 0x33 |
◆ adis16607_fifo_enable()
| int adis16607_fifo_enable |
( |
struct adis_dev * | adis, |
|
|
bool | enable, |
|
|
uint16_t | thr, |
|
|
bool | burst32 ) |
Enable or disable FIFO mode.
- Parameters
-
| adis | - The adis device. |
| enable | - True to enable FIFO, false to disable. |
| thr | - FIFO watermark threshold (1-1024). Ignored if enable is false. |
| burst32 | - True for 32-bit burst mode, false for 16-bit. Ignored if enable is false. |
- Returns
- 0 in case of success, error code otherwise.
◆ adis16607_fifo_pop()
Pop one sample from the FIFO.
- Parameters
-
| adis | - The adis device. |
| data | - The burst read data structure to be populated. |
- Returns
- 0 in case of success, error code otherwise.
For I2C and SPI Half-Duplex: uses burst read with FIFO_DATA command. For SPI Full-Duplex: issues repeated read commands to FIFO_DATA register. Note: burst32 mode is configured via adis16607_fifo_enable().
◆ adis16607_chip_info