precision-converters-firmware
Functions
ad355xr_support.c File Reference

AD3552r No-OS driver support file. More...

#include "app_config.h"
#include "ad355xr_support.h"
#include "no_os_util.h"
Include dependency graph for ad355xr_support.c:

Functions

int32_t ad355xr_write_one_sample_all_ch (struct ad3552r_desc *desc, uint16_t *data)
 Writes one sample to all the dac channels. More...
 
int32_t ad355xr_write_one_sample_one_ch (struct ad3552r_desc *desc, uint16_t *data, uint8_t ch_num)
 Writes one sample to a dac channel. More...
 

Detailed Description

AD3552r No-OS driver support file.

Copyright (c) 2023-2024 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.

Function Documentation

◆ ad355xr_write_one_sample_all_ch()

int32_t ad355xr_write_one_sample_all_ch ( struct ad3552r_desc *  desc,
uint16_t *  data 
)

Writes one sample to all the dac channels.

Parameters
desc[in]-Pointer to ad3552r device descriptor
data[in]-data to be written
Returns
0 in case of success, negative error code otherwise

◆ ad355xr_write_one_sample_one_ch()

int32_t ad355xr_write_one_sample_one_ch ( struct ad3552r_desc *  desc,
uint16_t *  data,
uint8_t  ch_num 
)

Writes one sample to a dac channel.

Parameters
desc[in]-Pointer to ad3552r device descriptor
data[in]-data to be written
ch_num[in]-channel number
Returns
0 in case of success, negative error code otherwise