|
int8_t | ad9833_init (struct ad9833_dev **device, struct ad9833_init_param init_param) |
| Initialize the SPI communication with the device. More...
|
|
int32_t | ad9833_remove (struct ad9833_dev *dev) |
| Free the resources allocated by ad9833_init(). More...
|
|
void | ad9833_tx_spi (struct ad9833_dev *dev, int16_t value) |
| Transmits 16 bits on SPI. More...
|
|
int8_t | ad9833_out_mode (struct ad9833_dev *dev, uint8_t out_mode) |
| Selects the type of output. More...
|
|
void | ad9833_sleep_mode (struct ad9833_dev *dev, uint8_t sleep_mode) |
| Enable / Disable the sleep function. More...
|
|
void | ad9833_set_freq (struct ad9833_dev *dev, uint8_t register_number, uint32_t frequency_value) |
| Loads a frequency value in a register. More...
|
|
void | ad9833_set_phase (struct ad9833_dev *dev, uint8_t register_number, float phase_value) |
| Loads a phase value in a register. More...
|
|
void | ad9833_select_freq_reg (struct ad9833_dev *dev, uint8_t freq_reg) |
| Select the frequency register to be used. More...
|
|
void | ad9833_select_phase_reg (struct ad9833_dev *dev, uint8_t phase_reg) |
| Select the phase register to be used. More...
|
|
void | ad9834_select_prog_method (struct ad9833_dev *dev, uint8_t value) |
| Sets the programming method. (only for AD9834 & AD9838) More...
|
|
void | ad9834_logic_output (struct ad9833_dev *dev, uint8_t opbiten, uint8_t signpib, uint8_t div2) |
| Configures the control register for logic output. (only for AD9834 & AD9838) More...
|
|
Implementation of ad9833 Driver for Microblaze processor.
- Author
- Lucian Sin (Lucia.nosp@m.n.Si.nosp@m.n@ana.nosp@m.log..nosp@m.com)
Copyright 2013(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.