#include "spi_engine.h"
#include "no_os_pwm.h"
#include "no_os_gpio.h"
Go to the source code of this file.
◆ ad7980_read_data()
int32_t ad7980_read_data |
( |
struct adaq7980_dev * |
dev, |
|
|
uint16_t * |
buf, |
|
|
uint16_t |
samples |
|
) |
| |
Read from device. Enter register mode to read/write registers.
- Parameters
-
[in] | dev | - adaq7980_dev device handler. |
[out] | buf | - data buffer. |
[in] | samples | - sample number. |
- Returns
- 0 in case of success, -1 otherwise.
◆ adaq7980_setup()
Initialize the device.
- Parameters
-
device | - The device structure. |
init_param | - The structure that contains the device initial parameters. |
- Returns
- 0 in case of success, negative error code otherwise.