Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:79
uint32_t no_commands
Definition: spi_engine.h:165
Structure containing the init parameters needed by the PWM generator.
Definition: no_os_pwm.h:66
int32_t adaq7980_setup(struct adaq7980_dev **device, struct adaq7980_init_param *init_param)
Definition: adaq7980.c:84
Structure containing the init parameters needed by the adaq7980 device.
Definition: adaq7980.h:50
struct no_os_gpio_init_param * gpio_pd_ldo
Definition: adaq7980.h:58
struct spi_engine_offload_init_param * offload_init_param
Definition: adaq7980.h:54
#define CS_LOW
Definition: spi_engine.h:73
int32_t spi_engine_offload_init(struct no_os_spi_desc *desc, const struct spi_engine_offload_init_param *param)
Initialize the SPI engine's offload module.
Definition: spi_engine.c:763
uint32_t * commands_data
Definition: spi_engine.h:167
Header file of Delay functions.
Structure representing an offload message.
Definition: spi_engine.h:158
Definition: ad9361_util.h:69
@ NO_OS_GPIO_HIGH
Definition: no_os_gpio.h:117
int32_t adaq7980_setup(struct adaq7980_dev **device, struct adaq7980_init_param *init_param)
Definition: adaq7980.c:84
struct no_os_spi_init_param * spi_init
Definition: adaq7980.h:52
#define NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:49
#define WRITE_READ(no_bytes)
Definition: spi_engine.h:65
@ NO_OS_GPIO_LOW
Definition: no_os_gpio.h:115
struct no_os_spi_desc * spi_desc
Definition: adaq7980.h:67
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: aducm3029_delay.c:126
#define CS_HIGH
Definition: spi_engine.h:72
int32_t no_os_pwm_enable(struct no_os_pwm_desc *desc)
Enable PWM signal generation.
Definition: no_os_pwm.c:98
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.
Definition: adaq7980.c:52
struct spi_engine_offload_init_param * offload_init_param
Definition: ad7616.h:205
struct no_os_gpio_desc * gpio_pd_ldo
Definition: adaq7980.h:73
struct no_os_pwm_init_param * trigger_pwm_init
Definition: ad7616.h:207
struct no_os_pwm_init_param * trigger_pwm_init
Definition: adaq7980.h:56
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.
Definition: adaq7980.c:52
Structure holding SPI descriptor.
Definition: no_os_spi.h:192
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:96
uint32_t * commands
Definition: spi_engine.h:163
Structure representing an PWM generator device.
Definition: no_os_pwm.h:93
int32_t no_os_pwm_init(struct no_os_pwm_desc **desc, const struct no_os_pwm_init_param *param)
Initialize the PWM peripheral.
Definition: no_os_pwm.c:51
void * no_os_malloc(size_t size)
Allocate memory and return a pointer to it.
Definition: chibios_alloc.c:43
struct spi_engine_offload_init_param * offload_init_param
Definition: adaq7980.h:71
Header file of PWM Interface.
void no_os_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:69
int32_t no_os_gpio_set_value(struct no_os_gpio_desc *desc, uint8_t value)
Set the value of the specified GPIO.
Definition: no_os_gpio.c:197
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
int32_t spi_engine_offload_transfer(struct no_os_spi_desc *desc, struct spi_engine_offload_message msg, uint32_t no_samples)
Initiate a SPI transfer in offload mode.
Definition: spi_engine.c:809
Structure representing an adaq7980 device.
Definition: adaq7980.h:65
int32_t no_os_spi_remove(struct no_os_spi_desc *desc)
Free the resources allocated by no_os_spi_init().
Definition: no_os_spi.c:116
Structure containing the init parameters needed by the offload module.
Definition: spi_engine.h:143
Header file of GPIO Interface.
int32_t no_os_spi_init(struct no_os_spi_desc **desc, const struct no_os_spi_init_param *param)
Initialize the SPI communication peripheral.
Definition: no_os_spi.c:52
uint32_t rx_addr
Definition: spi_engine.h:171
int32_t no_os_gpio_direction_output(struct no_os_gpio_desc *desc, uint8_t value)
Enable the output direction of the specified GPIO.
Definition: no_os_gpio.c:147
struct no_os_pwm_desc * trigger_pwm_desc
Definition: adaq7980.h:69
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:140
int32_t no_os_gpio_get_optional(struct no_os_gpio_desc **desc, const struct no_os_gpio_init_param *param)
Get the value of an optional GPIO.
Definition: no_os_gpio.c:75