|
int32_t | ad5933_init (struct ad5933_dev **device, struct ad5933_init_param init_param) |
| Initializes the communication peripheral and the initial Values for AD5933 Board. More...
|
|
int32_t | ad5933_remove (struct ad5933_dev *dev) |
| Free the resources allocated by ad5933_init(). More...
|
|
void | ad5933_set_register_value (struct ad5933_dev *dev, uint8_t register_address, uint32_t register_value, uint8_t bytes_number) |
| Writes data into a register. More...
|
|
uint32_t | ad5933_get_register_value (struct ad5933_dev *dev, uint8_t register_address, uint8_t bytes_number) |
| Reads the value of a register. More...
|
|
void | ad5933_reset (struct ad5933_dev *dev) |
| Resets the device. More...
|
|
void | ad5933_set_system_clk (struct ad5933_dev *dev, int8_t clk_source, uint32_t ext_clk_freq) |
| Selects the source of the system clock. More...
|
|
void | ad5933_set_range_and_gain (struct ad5933_dev *dev, int8_t range, int8_t gain) |
| Selects the range and gain of the device. More...
|
|
float | ad5933_get_temperature (struct ad5933_dev *dev) |
| Reads the temperature from the part and returns the data in degrees Celsius. More...
|
|
void | ad5933_config_sweep (struct ad5933_dev *dev, uint32_t start_freq, uint32_t inc_freq, uint16_t inc_num) |
| Configures the sweep parameters: Start frequency, Frequency increment and Number of increments. More...
|
|
void | ad5933_start_sweep (struct ad5933_dev *dev) |
| Starts the sweep operation. More...
|
|
void | ad5933_get_data (struct ad5933_dev *dev, uint8_t freq_function, short *imag_data, short *real_data) |
| Reads the real and imaginary value from register. More...
|
|
double | ad5933_calculate_gain_factor (struct ad5933_dev *dev, uint32_t calibration_impedance, uint8_t freq_function) |
| Reads the real and the imaginary data and calculates the Gain Factor. More...
|
|
double | ad5933_calculate_impedance (struct ad5933_dev *dev, double gain_factor, uint8_t freq_function) |
| Reads the real and the imaginary data and calculates the Impedance. More...
|
|
void | ad5933_set_settling_time (struct ad5933_dev *dev, uint8_t multiplier, uint16_t number_cycles) |
| Selects the number of settling cycles of the device. More...
|
|
Implementation of AD5933 Driver.
- Author
- DBogdan (drago.nosp@m.s.bo.nosp@m.gdan@.nosp@m.anal.nosp@m.og.co.nosp@m.m)
Copyright 2012(c) Analog Devices, Inc.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.