precision-converters-firmware
|
Functions | |
int | ad7124_get_polarity (struct ad7124_dev *dev, uint8_t chn, enum ad7124_input_polarity *polarity) |
Get the polarity of input channel. More... | |
int | ad7124_single_read (struct ad7124_dev *device, uint8_t id, int32_t *adc_raw_data) |
Perform Single Conversion. More... | |
int | ad7124_read_converted_data (struct ad7124_dev *dev, uint32_t *sd_adc_code) |
Read ADC Converted data. More... | |
int | ad7124_enable_cont_read (struct ad7124_dev *device, bool cont_read_en) |
Enable/Disable continuous read mode. More... | |
int | ad7124_trigger_data_capture (struct ad7124_dev *ad7124_dev_inst) |
Function to prepare the ADC for data capture. More... | |
int | ad7124_stop_data_capture (struct ad7124_dev *ad7124_dev_inst) |
Function to stop data capture. More... | |
int | ad7124_get_3db_frequency (struct ad7124_dev *ad7124_dev_inst, uint8_t chn, uint16_t *frequency) |
Get the 3db cutoff frequency. More... | |
int | ad7124_set_3db_frequency (struct ad7124_dev *ad7124_dev_inst, uint8_t chn, uint16_t frequency) |
Set the 3db cutoff frequency. More... | |
int | ad7124_update_sampling_rate (struct ad7124_dev *ad7124_dev_inst, uint16_t *frequency) |
Update Sampling rate when more than one channel is enabled. More... | |
int ad7124_enable_cont_read | ( | struct ad7124_dev * | device, |
bool | cont_read_en | ||
) |
Enable/Disable continuous read mode.
device[in] | - The AD7124 Device descriptor |
cont_read_en[in] | - Continuous read enable status (True/False) |
int ad7124_get_3db_frequency | ( | struct ad7124_dev * | ad7124_dev_inst, |
uint8_t | chn, | ||
uint16_t * | frequency | ||
) |
Get the 3db cutoff frequency.
ad7124_dev_inst[in] | - AD7124 device instance. |
chn[in] | - Input channel. |
frequency[in,out] | - Frequency. |
int ad7124_get_polarity | ( | struct ad7124_dev * | dev, |
uint8_t | chn, | ||
enum ad7124_input_polarity * | polarity | ||
) |
Get the polarity of input channel.
dev[in] | - AD7124 device instance |
chn[in] | - Input channel |
polarity[in,out] | - Channel polarity |
int ad7124_read_converted_data | ( | struct ad7124_dev * | dev, |
uint32_t * | sd_adc_code | ||
) |
Read ADC Converted data.
dev[in] | - The AD7124 Device descriptor |
sd_adc_code[in,out] | - Converted Sample |
int ad7124_set_3db_frequency | ( | struct ad7124_dev * | ad7124_dev_inst, |
uint8_t | chn, | ||
uint16_t | frequency | ||
) |
Set the 3db cutoff frequency.
ad7124_dev_inst[in] | - AD7124 device instance. |
chn[in] | - Input channel. |
frequency[in] | - Frequency |
int ad7124_single_read | ( | struct ad7124_dev * | device, |
uint8_t | id, | ||
int32_t * | adc_raw_data | ||
) |
Perform Single Conversion.
device[in] | - AD7124 Device Descriptor |
id[in] | - Channel ID (number) requested |
adc_raw_data[out] | ADC Raw Value |
int ad7124_stop_data_capture | ( | struct ad7124_dev * | ad7124_dev_inst | ) |
Function to stop data capture.
ad7124_dev_inst[in] | - AD7124 device instance |
int ad7124_trigger_data_capture | ( | struct ad7124_dev * | ad7124_dev_inst | ) |
Function to prepare the ADC for data capture.
ad7124_dev_inst[in] | - AD7124 device instance |
int ad7124_update_sampling_rate | ( | struct ad7124_dev * | ad7124_dev_inst, |
uint16_t * | frequency | ||
) |
Update Sampling rate when more than one channel is enabled.
ad7124_dev_inst[in] | - AD7124 device instance. |
frequency | - Updated Frequency. |